2020-05-23 17:26:54 +02:00
|
|
|
/*
|
|
|
|
* Copyright (C) 2020 Inria
|
|
|
|
*
|
|
|
|
* This file is subject to the terms and conditions of the GNU Lesser
|
|
|
|
* General Public License v2.1. See the file LICENSE in the top level
|
|
|
|
* directory for more details.
|
|
|
|
*/
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @ingroup cpu_stm32
|
|
|
|
* @{
|
|
|
|
*
|
|
|
|
* @file
|
|
|
|
* @brief STM3G4 CPU specific definitions for internal peripheral handling
|
|
|
|
*
|
|
|
|
* @author Alexandre Abadie <alexandre.abadie@inria.fr>
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef PERIPH_G4_PERIPH_CPU_H
|
|
|
|
#define PERIPH_G4_PERIPH_CPU_H
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef DOXYGEN
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @brief Starting address of the ROM bootloader
|
|
|
|
* see application note AN2606
|
|
|
|
*/
|
|
|
|
#define STM32_BOOTLOADER_ADDR (0x1FFF0000)
|
|
|
|
|
2021-10-12 13:16:57 +02:00
|
|
|
/**
|
|
|
|
* @name Constants for internal VBAT ADC line
|
|
|
|
* @{
|
|
|
|
*/
|
|
|
|
#define VBAT_ADC_RES ADC_RES_12BIT
|
|
|
|
#define VBAT_ADC_MAX 4095
|
|
|
|
/** @} */
|
|
|
|
|
2020-05-23 17:26:54 +02:00
|
|
|
#endif /* ndef DOXYGEN */
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif /* PERIPH_G4_PERIPH_CPU_H */
|
|
|
|
/** @} */
|