2020-05-22 21:35:53 +02:00
|
|
|
/*
|
|
|
|
* Copyright (C) 2019 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 STM32WB CPU specific definitions for internal peripheral handling
|
|
|
|
*
|
|
|
|
* @author Francisco Molina <francois-xavier.molina@inria.fr>
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef PERIPH_WB_PERIPH_CPU_H
|
|
|
|
#define PERIPH_WB_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-22 21:35:53 +02:00
|
|
|
#endif /* ndef DOXYGEN */
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif /* PERIPH_WB_PERIPH_CPU_H */
|
|
|
|
/** @} */
|