Changes to the header includes for all STM32 peripherals
to remove variations, redundancies, add missing, fix errors. All c files refer only to the dispatch style headers in /include/stm32. Those headers #include memorymap.h and cm3/common.h. All references to these are removed from the family specific headers. Ethernet untouched as it appears incomplete. Added dummy spi.c for F0/F3. Fix some doxygen anomalies.
This commit is contained in:
parent
0f29fc8b1b
commit
7816501dbc
@ -17,6 +17,9 @@
|
||||
* along with this library. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#include <libopencm3/cm3/common.h>
|
||||
#include <libopencm3/stm32/memorymap.h>
|
||||
|
||||
#if defined(STM32F0)
|
||||
# include <libopencm3/stm32/f0/adc.h>
|
||||
#elif defined(STM32F1)
|
||||
|
@ -17,6 +17,9 @@
|
||||
* along with this library. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#include <libopencm3/cm3/common.h>
|
||||
#include <libopencm3/stm32/memorymap.h>
|
||||
|
||||
#if defined(STM32F0)
|
||||
# include <libopencm3/stm32/f0/cec.h>
|
||||
#else
|
||||
|
@ -35,8 +35,6 @@ specific memorymap.h header before including this header file.*/
|
||||
#ifndef LIBOPENCM3_ADC_COMMON_V1_H
|
||||
#define LIBOPENCM3_ADC_COMMON_V1_H
|
||||
|
||||
#include <libopencm3/cm3/common.h>
|
||||
|
||||
/* --- Convenience macros -------------------------------------------------- */
|
||||
|
||||
/* ADC port base addresses (for convenience) */
|
||||
|
@ -35,8 +35,6 @@ specific memorymap.h header before including this header file.*/
|
||||
|
||||
/**@{*/
|
||||
|
||||
#include <libopencm3/cm3/common.h>
|
||||
|
||||
/*****************************************************************************/
|
||||
/* Module definitions */
|
||||
/*****************************************************************************/
|
||||
|
@ -100,8 +100,6 @@ specific memorymap.h header before including this header file.*/
|
||||
#ifndef LIBOPENCM3_CRYPTO_COMMON_F24_H
|
||||
#define LIBOPENCM3_CRYPTO_COMMON_F24_H
|
||||
|
||||
#include <libopencm3/cm3/common.h>
|
||||
|
||||
/**@{*/
|
||||
|
||||
/* --- CRYP registers ------------------------------------------------------ */
|
||||
|
@ -36,9 +36,6 @@ specific memorymap.h header before including this header file.*/
|
||||
#ifndef LIBOPENCM3_DAC_COMMON_ALL_H
|
||||
#define LIBOPENCM3_DAC_COMMON_ALL_H
|
||||
|
||||
#include <libopencm3/cm3/common.h>
|
||||
|
||||
|
||||
/* --- DAC registers ------------------------------------------------------- */
|
||||
|
||||
/* DAC control register (DAC_CR) */
|
||||
|
@ -38,8 +38,6 @@ specific memorymap.h header before including this header file.*/
|
||||
|
||||
/**@{*/
|
||||
|
||||
#include <libopencm3/cm3/common.h>
|
||||
|
||||
/* --- Convenience macros -------------------------------------------------- */
|
||||
|
||||
/* DMA controller base addresses (for convenience) */
|
||||
|
@ -39,8 +39,6 @@ specific memorymap.h header before including this header file.*/
|
||||
#ifndef LIBOPENCM3_DMA_COMMON_F13_H
|
||||
#define LIBOPENCM3_DMA_COMMON_F13_H
|
||||
|
||||
#include <libopencm3/cm3/common.h>
|
||||
|
||||
/* --- Convenience macros -------------------------------------------------- */
|
||||
|
||||
/* DMA register base adresses (for convenience) */
|
||||
|
@ -29,9 +29,6 @@
|
||||
#define LIBOPENCM3_EXTI_COMMON_ALL_H
|
||||
/**@{*/
|
||||
|
||||
#include <libopencm3/stm32/memorymap.h>
|
||||
#include <libopencm3/cm3/common.h>
|
||||
|
||||
/* --- EXTI registers ------------------------------------------------------ */
|
||||
|
||||
#define EXTI_IMR MMIO32(EXTI_BASE + 0x00)
|
||||
|
@ -29,8 +29,6 @@
|
||||
#define LIBOPENCM3_EXTI_COMMON_F24_H
|
||||
/**@{*/
|
||||
|
||||
#include <libopencm3/stm32/memorymap.h>
|
||||
#include <libopencm3/cm3/common.h>
|
||||
#include <libopencm3/stm32/common/exti_common_all.h>
|
||||
|
||||
/* EXTI number definitions */
|
||||
|
@ -35,7 +35,6 @@
|
||||
#define LIBOPENCM3_FLASH_COMMON_F01_H
|
||||
/**@{*/
|
||||
|
||||
#include <libopencm3/cm3/common.h>
|
||||
/* --- FLASH registers ----------------------------------------------------- */
|
||||
|
||||
#define FLASH_ACR MMIO32(FLASH_MEM_INTERFACE_BASE + 0x00)
|
||||
|
@ -40,8 +40,6 @@
|
||||
#define LIBOPENCM3_FLASH_COMMON_F234_H
|
||||
/**@{*/
|
||||
|
||||
#include <libopencm3/cm3/common.h>
|
||||
|
||||
/* --- FLASH registers ----------------------------------------------------- */
|
||||
|
||||
#define FLASH_ACR MMIO32(FLASH_MEM_INTERFACE_BASE + 0x00)
|
||||
|
@ -40,7 +40,6 @@
|
||||
#define LIBOPENCM3_FLASH_COMMON_F24_H
|
||||
/**@{*/
|
||||
|
||||
#include <libopencm3/cm3/common.h>
|
||||
#include <libopencm3/stm32/common/flash_common_f234.h>
|
||||
|
||||
/* --- FLASH registers ----------------------------------------------------- */
|
||||
|
@ -38,8 +38,6 @@ specific memorymap.h header before including this header file.*/
|
||||
|
||||
/**@{*/
|
||||
|
||||
#include <libopencm3/cm3/common.h>
|
||||
|
||||
/* --- Convenience macros -------------------------------------------------- */
|
||||
|
||||
/* --- GPIO_LCKR values ---------------------------------------------------- */
|
||||
|
@ -38,7 +38,6 @@ specific memorymap.h header before including this header file.*/
|
||||
|
||||
/**@{*/
|
||||
|
||||
#include <libopencm3/stm32/common/gpio_common_all.h>
|
||||
#include <libopencm3/stm32/common/gpio_common_f234.h>
|
||||
|
||||
/* GPIO port base addresses (for convenience) */
|
||||
|
@ -31,8 +31,6 @@
|
||||
#ifndef LIBOPENCM3_HASH_COMMON_F24_H
|
||||
#define LIBOPENCM3_HASH_COMMON_F24_H
|
||||
|
||||
#include <libopencm3/cm3/common.h>
|
||||
|
||||
/* --- Convenience macros -------------------------------------------------- */
|
||||
|
||||
/****************************************************************************/
|
||||
|
@ -32,8 +32,6 @@ specific memorymap.h header before including this header file.*/
|
||||
#ifndef LIBOPENCM3_I2C_COMMON_ALL_H
|
||||
#define LIBOPENCM3_I2C_COMMON_ALL_H
|
||||
|
||||
#include <libopencm3/cm3/common.h>
|
||||
|
||||
/**@{*/
|
||||
|
||||
/* --- Convenience macros -------------------------------------------------- */
|
||||
|
@ -32,8 +32,6 @@ specific memorymap.h header before including this header file.*/
|
||||
#ifndef LIBOPENCM3_IWDG_COMMON_ALL_H
|
||||
#define LIBOPENCM3_IWDG_COMMON_ALL_H
|
||||
|
||||
#include <libopencm3/cm3/common.h>
|
||||
|
||||
/**@{*/
|
||||
|
||||
/* --- IWDG registers ------------------------------------------------------ */
|
||||
|
@ -35,8 +35,6 @@ specific memorymap.h header before including this header file.*/
|
||||
|
||||
/**@{*/
|
||||
|
||||
#include <libopencm3/cm3/common.h>
|
||||
|
||||
/* --- PWR registers ------------------------------------------------------- */
|
||||
|
||||
/* Power control register (PWR_CR) */
|
||||
|
@ -33,6 +33,7 @@
|
||||
|
||||
#ifndef LIBOPENCM3_RCC_COMMON_ALL_H
|
||||
#define LIBOPENCM3_RCC_COMMON_ALL_H
|
||||
|
||||
/**@{*/
|
||||
|
||||
BEGIN_DECLS
|
||||
|
@ -26,9 +26,6 @@ specific memorymap.h header before including this header file.*/
|
||||
#ifndef LIBOPENCM3_RNG_COMMON_F24_H
|
||||
#define LIBOPENCM3_RNG_COMMON_F24_H
|
||||
|
||||
#include <libopencm3/stm32/memorymap.h>
|
||||
#include <libopencm3/cm3/common.h>
|
||||
|
||||
/* --- Random number generator registers ----------------------------------- */
|
||||
|
||||
/* Control register */
|
||||
|
@ -42,9 +42,6 @@ specific memorymap.h header before including this header file.*/
|
||||
|
||||
/**@{*/
|
||||
|
||||
#include <libopencm3/cm3/common.h>
|
||||
#include <libopencm3/stm32/memorymap.h>
|
||||
|
||||
/* RTC time register (RTC_TR) */
|
||||
#define RTC_TR MMIO32(RTC_BASE + 0x00)
|
||||
|
||||
|
@ -32,8 +32,6 @@ specific memorymap.h header before including this header file.*/
|
||||
#ifndef LIBOPENCM3_SPI_COMMON_ALL_H
|
||||
#define LIBOPENCM3_SPI_COMMON_ALL_H
|
||||
|
||||
#include <libopencm3/cm3/common.h>
|
||||
|
||||
/**@{*/
|
||||
|
||||
/* Registers can be accessed as 16bit or 32bit values. */
|
||||
|
@ -34,8 +34,6 @@ specific memorymap.h header before including this header file.*/
|
||||
#define LIBOPENCM3_SYSCFG_COMMON_L1F234_H
|
||||
|
||||
/**@{*/
|
||||
#include <libopencm3/stm32/memorymap.h>
|
||||
|
||||
|
||||
/* --- SYSCFG registers ---------------------------------------------------- */
|
||||
|
||||
|
@ -34,9 +34,6 @@ specific memorymap.h header before including this header file.*/
|
||||
#ifndef LIBOPENCM3_TIMER_COMMON_H
|
||||
#define LIBOPENCM3_TIMER_COMMON_H
|
||||
|
||||
#include <libopencm3/stm32/memorymap.h>
|
||||
#include <libopencm3/cm3/common.h>
|
||||
|
||||
/* --- Convenience macros -------------------------------------------------- */
|
||||
|
||||
/* Timer register base addresses (for convenience) */
|
||||
|
@ -34,8 +34,6 @@ specific memorymap.h header before including this header file.*/
|
||||
#ifndef LIBOPENCM3_USART_COMMON_ALL_H
|
||||
#define LIBOPENCM3_USART_COMMON_ALL_H
|
||||
|
||||
#include <libopencm3/cm3/common.h>
|
||||
|
||||
/* --- Convenience macros -------------------------------------------------- */
|
||||
|
||||
/****************************************************************************/
|
||||
|
@ -35,7 +35,6 @@ specific memorymap.h header before including this header file.*/
|
||||
#ifndef LIBOPENCM3_USART_COMMON_F124_H
|
||||
#define LIBOPENCM3_USART_COMMON_F124_H
|
||||
|
||||
#include <libopencm3/cm3/common.h>
|
||||
#include <libopencm3/stm32/common/usart_common_all.h>
|
||||
|
||||
/* --- USART registers ----------------------------------------------------- */
|
||||
|
@ -17,6 +17,9 @@
|
||||
* along with this library. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#include <libopencm3/cm3/common.h>
|
||||
#include <libopencm3/stm32/memorymap.h>
|
||||
|
||||
#if defined(STM32F0)
|
||||
# include <libopencm3/stm32/f0/comparator.h>
|
||||
#else
|
||||
|
@ -17,6 +17,9 @@
|
||||
* along with this library. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#include <libopencm3/cm3/common.h>
|
||||
#include <libopencm3/stm32/memorymap.h>
|
||||
|
||||
#if defined(STM32F0)
|
||||
# include <libopencm3/stm32/f0/crc.h>
|
||||
#elif defined(STM32F1)
|
||||
|
@ -17,6 +17,9 @@
|
||||
* along with this library. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#include <libopencm3/cm3/common.h>
|
||||
#include <libopencm3/stm32/memorymap.h>
|
||||
|
||||
#if defined(STM32F0)
|
||||
# include <libopencm3/stm32/f0/crs.h>
|
||||
#else
|
||||
|
@ -17,6 +17,9 @@
|
||||
* along with this library. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#include <libopencm3/cm3/common.h>
|
||||
#include <libopencm3/stm32/memorymap.h>
|
||||
|
||||
#if defined(STM32F2)
|
||||
# include <libopencm3/stm32/f2/crypto.h>
|
||||
#elif defined(STM32F4)
|
||||
|
@ -16,6 +16,10 @@
|
||||
* You should have received a copy of the GNU Lesser General Public License
|
||||
* along with this library. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#include <libopencm3/cm3/common.h>
|
||||
#include <libopencm3/stm32/memorymap.h>
|
||||
|
||||
#if defined(STM32F0)
|
||||
# include <libopencm3/stm32/f0/dac.h>
|
||||
#elif defined(STM32F1)
|
||||
|
@ -20,8 +20,8 @@
|
||||
#ifndef LIBOPENCM3_STM32_DBGMCU_H
|
||||
#define LIBOPENCM3_STM32_DBGMCU_H
|
||||
|
||||
#include <libopencm3/stm32/memorymap.h>
|
||||
#include <libopencm3/cm3/common.h>
|
||||
#include <libopencm3/stm32/memorymap.h>
|
||||
|
||||
/* --- DBGMCU registers ---------------------------------------------------- */
|
||||
|
||||
|
@ -20,8 +20,8 @@
|
||||
#ifndef LIBOPENCM3_DESIG_H
|
||||
#define LIBOPENCM3_DESIG_H
|
||||
|
||||
#include <libopencm3/stm32/memorymap.h>
|
||||
#include <libopencm3/cm3/common.h>
|
||||
#include <libopencm3/stm32/memorymap.h>
|
||||
|
||||
/* --- Device Electronic Signature -------------------------------- */
|
||||
|
||||
|
@ -17,6 +17,9 @@
|
||||
* along with this library. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#include <libopencm3/cm3/common.h>
|
||||
#include <libopencm3/stm32/memorymap.h>
|
||||
|
||||
#if defined(STM32F0)
|
||||
# include <libopencm3/stm32/f0/dma.h>
|
||||
#elif defined(STM32F1)
|
||||
|
@ -19,6 +19,9 @@
|
||||
* along with this library. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#include <libopencm3/cm3/common.h>
|
||||
#include <libopencm3/stm32/memorymap.h>
|
||||
|
||||
#if defined(STM32F0)
|
||||
# include <libopencm3/stm32/f0/exti.h>
|
||||
#elif defined(STM32F1)
|
||||
|
@ -33,9 +33,6 @@
|
||||
#ifndef LIBOPENCM3_ADC_H
|
||||
#define LIBOPENCM3_ADC_H
|
||||
|
||||
#include <libopencm3/cm3/common.h>
|
||||
#include <libopencm3/stm32/memorymap.h>
|
||||
|
||||
/*****************************************************************************/
|
||||
/* Module definitions */
|
||||
/*****************************************************************************/
|
||||
|
@ -33,9 +33,6 @@
|
||||
#define LIBOPENCM3_CEC_H
|
||||
/**@{*/
|
||||
|
||||
#include <libopencm3/cm3/common.h>
|
||||
#include <libopencm3/stm32/memorymap.h>
|
||||
|
||||
/*****************************************************************************/
|
||||
/* Module definitions */
|
||||
/*****************************************************************************/
|
||||
|
@ -34,9 +34,6 @@
|
||||
#define LIBOPENCM3_COMP_H
|
||||
/**@{*/
|
||||
|
||||
#include <libopencm3/cm3/common.h>
|
||||
#include <libopencm3/stm32/memorymap.h>
|
||||
|
||||
/*****************************************************************************/
|
||||
/* Module definitions */
|
||||
/*****************************************************************************/
|
||||
|
@ -34,7 +34,6 @@
|
||||
#define LIBOPENCM3_CRC_H
|
||||
/**@{*/
|
||||
|
||||
#include <libopencm3/stm32/memorymap.h>
|
||||
#include <libopencm3/stm32/common/crc_common_all.h>
|
||||
|
||||
/*****************************************************************************/
|
||||
|
@ -33,9 +33,6 @@
|
||||
#define LIBOPENCM3_CRS_H
|
||||
/**@{*/
|
||||
|
||||
#include <libopencm3/cm3/common.h>
|
||||
#include <libopencm3/stm32/memorymap.h>
|
||||
|
||||
/*****************************************************************************/
|
||||
/* Module definitions */
|
||||
/*****************************************************************************/
|
||||
|
@ -33,8 +33,7 @@
|
||||
#ifndef LIBOPENCM3_DAC_H
|
||||
#define LIBOPENCM3_DAC_H
|
||||
|
||||
#include <libopencm3/cm3/common.h>
|
||||
#include <libopencm3/stm32/memorymap.h>
|
||||
#include <libopencm3/stm32/common/dac_common_all.h>
|
||||
|
||||
/*****************************************************************************/
|
||||
/* Module definitions */
|
||||
|
@ -31,7 +31,6 @@
|
||||
#ifndef LIBOPENCM3_DMA_H
|
||||
#define LIBOPENCM3_DMA_H
|
||||
|
||||
#include <libopencm3/stm32/memorymap.h>
|
||||
#include <libopencm3/stm32/common/dma_common_l1f013.h>
|
||||
|
||||
#endif
|
||||
|
@ -34,7 +34,6 @@
|
||||
#define LIBOPENCM3_EXTI_H
|
||||
/**@{*/
|
||||
|
||||
#include <libopencm3/stm32/memorymap.h>
|
||||
#include <libopencm3/stm32/common/exti_common_all.h>
|
||||
/**@}*/
|
||||
|
||||
|
@ -36,7 +36,6 @@
|
||||
#define LIBOPENCM3_FLASH_H
|
||||
/**@{*/
|
||||
|
||||
#include <libopencm3/stm32/memorymap.h>
|
||||
#include <libopencm3/stm32/common/flash_common_f01.h>
|
||||
|
||||
/* --- FLASH_OPTION values ------------------------------------------------- */
|
||||
|
@ -31,7 +31,6 @@
|
||||
#ifndef LIBOPENCM3_GPIO_H
|
||||
#define LIBOPENCM3_GPIO_H
|
||||
|
||||
#include <libopencm3/stm32/memorymap.h>
|
||||
#include <libopencm3/stm32/common/gpio_common_f24.h>
|
||||
|
||||
/*****************************************************************************/
|
||||
|
@ -32,8 +32,6 @@
|
||||
#ifndef LIBOPENCM3_I2C_H
|
||||
#define LIBOPENCM3_I2C_H
|
||||
|
||||
#include <libopencm3/cm3/common.h>
|
||||
|
||||
/*****************************************************************************/
|
||||
/* Module definitions */
|
||||
/*****************************************************************************/
|
||||
|
@ -33,7 +33,6 @@
|
||||
#ifndef LIBOPENCM3_IWDG_H
|
||||
#define LIBOPENCM3_IWDG_H
|
||||
|
||||
#include <libopencm3/stm32/memorymap.h>
|
||||
#include <libopencm3/stm32/common/iwdg_common_all.h>
|
||||
|
||||
/*****************************************************************************/
|
||||
|
@ -31,7 +31,6 @@
|
||||
#ifndef LIBOPENCM3_PWR_H
|
||||
#define LIBOPENCM3_PWR_H
|
||||
|
||||
#include <libopencm3/stm32/memorymap.h>
|
||||
#include <libopencm3/stm32/common/pwr_common_all.h>
|
||||
|
||||
/*****************************************************************************/
|
||||
|
@ -37,9 +37,6 @@ Control</b>
|
||||
#ifndef LIBOPENCM3_RCC_H
|
||||
#define LIBOPENCM3_RCC_H
|
||||
|
||||
#include <libopencm3/stm32/memorymap.h>
|
||||
#include <libopencm3/cm3/common.h>
|
||||
|
||||
/*****************************************************************************/
|
||||
/* Module definitions */
|
||||
/*****************************************************************************/
|
||||
|
@ -31,7 +31,6 @@
|
||||
#ifndef LIBOPENCM3_RTC_H
|
||||
#define LIBOPENCM3_RTC_H
|
||||
|
||||
#include <libopencm3/stm32/memorymap.h>
|
||||
#include <libopencm3/stm32/common/rtc_common_l1f024.h>
|
||||
|
||||
#endif
|
||||
|
@ -31,7 +31,6 @@
|
||||
#ifndef LIBOPENCM3_SPI_H
|
||||
#define LIBOPENCM3_SPI_H
|
||||
|
||||
#include <libopencm3/stm32/memorymap.h>
|
||||
#include <libopencm3/stm32/common/spi_common_f03.h>
|
||||
|
||||
#endif
|
||||
|
@ -36,9 +36,6 @@
|
||||
#define LIBOPENCM3_SYSCFG_H
|
||||
/**@{*/
|
||||
|
||||
#include <libopencm3/cm3/common.h>
|
||||
#include <libopencm3/stm32/memorymap.h>
|
||||
|
||||
/*****************************************************************************/
|
||||
/* Module definitions */
|
||||
/*****************************************************************************/
|
||||
|
@ -29,4 +29,7 @@
|
||||
* along with this library. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#ifndef LIBOPENCM3_TIMER_H
|
||||
#define LIBOPENCM3_TIMER_H
|
||||
|
||||
#endif
|
||||
|
@ -33,9 +33,6 @@
|
||||
#define LIBOPENCM3_TSC_H
|
||||
/**@{*/
|
||||
|
||||
#include <libopencm3/cm3/common.h>
|
||||
#include <libopencm3/stm32/memorymap.h>
|
||||
|
||||
/*****************************************************************************/
|
||||
/* Module definitions */
|
||||
/*****************************************************************************/
|
||||
|
@ -31,9 +31,6 @@
|
||||
#ifndef LIBOPENCM3_USART_H
|
||||
#define LIBOPENCM3_USART_H
|
||||
|
||||
#include <libopencm3/stm32/memorymap.h>
|
||||
#include <libopencm3/cm3/common.h>
|
||||
|
||||
/*****************************************************************************/
|
||||
/* Module definitions */
|
||||
/*****************************************************************************/
|
||||
|
@ -38,8 +38,6 @@ LGPL License Terms @ref lgpl_license
|
||||
#ifndef LIBOPENCM3_ADC_H
|
||||
#define LIBOPENCM3_ADC_H
|
||||
|
||||
#include <libopencm3/cm3/common.h>
|
||||
#include <libopencm3/stm32/memorymap.h>
|
||||
#include <libopencm3/stm32/common/adc_common_v1.h>
|
||||
|
||||
/* --- Convenience macros -------------------------------------------------- */
|
||||
|
@ -20,9 +20,6 @@
|
||||
#ifndef LIBOPENCM3_BKP_H
|
||||
#define LIBOPENCM3_BKP_H
|
||||
|
||||
#include <libopencm3/stm32/memorymap.h>
|
||||
#include <libopencm3/cm3/common.h>
|
||||
|
||||
/* --- BKP registers ------------------------------------------------------- */
|
||||
|
||||
/* Backup data register 1 (BKP_DR1) */
|
||||
|
@ -33,7 +33,6 @@ LGPL License Terms @ref lgpl_license
|
||||
#ifndef LIBOPENCM3_CRC_H
|
||||
#define LIBOPENCM3_CRC_H
|
||||
|
||||
#include <libopencm3/stm32/memorymap.h>
|
||||
#include <libopencm3/stm32/common/crc_common_all.h>
|
||||
|
||||
#endif
|
||||
|
@ -31,7 +31,6 @@ LGPL License Terms @ref lgpl_license
|
||||
#ifndef LIBOPENCM3_DAC_H
|
||||
#define LIBOPENCM3_DAC_H
|
||||
|
||||
#include <libopencm3/stm32/memorymap.h>
|
||||
#include <libopencm3/stm32/common/dac_common_all.h>
|
||||
|
||||
#endif
|
||||
|
@ -31,7 +31,6 @@ LGPL License Terms @ref lgpl_license
|
||||
#ifndef LIBOPENCM3_DMA_H
|
||||
#define LIBOPENCM3_DMA_H
|
||||
|
||||
#include <libopencm3/stm32/memorymap.h>
|
||||
#include <libopencm3/stm32/common/dma_common_l1f013.h>
|
||||
|
||||
#endif
|
||||
|
@ -17,12 +17,12 @@
|
||||
* along with this library. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#include <libopencm3/cm3/common.h>
|
||||
#include <libopencm3/stm32/memorymap.h>
|
||||
|
||||
#ifndef LIBOPENCM3_ETHERNET_H
|
||||
#define LIBOPENCM3_ETHERNET_H
|
||||
|
||||
#include <libopencm3/stm32/memorymap.h>
|
||||
#include <libopencm3/cm3/common.h>
|
||||
|
||||
/* Ethernet MAC registers */
|
||||
#define ETH_MACCR MMIO32(ETHERNET_BASE + 0x00)
|
||||
#define ETH_MACFFR MMIO32(ETHERNET_BASE + 0x04)
|
||||
|
@ -36,7 +36,6 @@
|
||||
#ifndef LIBOPENCM3_EXTI_H
|
||||
#define LIBOPENCM3_EXTI_H
|
||||
|
||||
#include <libopencm3/stm32/memorymap.h>
|
||||
#include <libopencm3/stm32/common/exti_common_all.h>
|
||||
|
||||
#endif
|
||||
|
@ -43,7 +43,6 @@
|
||||
|
||||
/**@{*/
|
||||
|
||||
#include <libopencm3/stm32/memorymap.h>
|
||||
#include <libopencm3/stm32/common/flash_common_f01.h>
|
||||
|
||||
/* --- FLASH_OPTION bytes ------------------------------------------------- */
|
||||
|
@ -36,7 +36,6 @@ LGPL License Terms @ref lgpl_license
|
||||
#ifndef LIBOPENCM3_GPIO_H
|
||||
#define LIBOPENCM3_GPIO_H
|
||||
|
||||
#include <libopencm3/stm32/memorymap.h>
|
||||
#include <libopencm3/stm32/common/gpio_common_all.h>
|
||||
|
||||
/* --- Convenience macros -------------------------------------------------- */
|
||||
|
@ -31,7 +31,6 @@ LGPL License Terms @ref lgpl_license
|
||||
#ifndef LIBOPENCM3_I2C_H
|
||||
#define LIBOPENCM3_I2C_H
|
||||
|
||||
#include <libopencm3/stm32/memorymap.h>
|
||||
#include <libopencm3/stm32/common/i2c_common_all.h>
|
||||
|
||||
#endif
|
||||
|
@ -33,7 +33,6 @@ LGPL License Terms @ref lgpl_license
|
||||
#ifndef LIBOPENCM3_IWDG_H
|
||||
#define LIBOPENCM3_IWDG_H
|
||||
|
||||
#include <libopencm3/stm32/memorymap.h>
|
||||
#include <libopencm3/stm32/common/iwdg_common_all.h>
|
||||
|
||||
#endif
|
||||
|
@ -31,7 +31,6 @@ LGPL License Terms @ref lgpl_license
|
||||
#ifndef LIBOPENCM3_PWR_H
|
||||
#define LIBOPENCM3_PWR_H
|
||||
|
||||
#include <libopencm3/stm32/memorymap.h>
|
||||
#include <libopencm3/stm32/common/pwr_common_all.h>
|
||||
|
||||
#endif
|
||||
|
@ -40,9 +40,6 @@
|
||||
#ifndef LIBOPENCM3_RCC_H
|
||||
#define LIBOPENCM3_RCC_H
|
||||
|
||||
#include <libopencm3/stm32/memorymap.h>
|
||||
#include <libopencm3/cm3/common.h>
|
||||
|
||||
/* Note: Regs/bits marked (**) only exist in "connectivity line" STM32s. */
|
||||
/* Note: Regs/bits marked (XX) do NOT exist in "connectivity line" STM32s. */
|
||||
|
||||
|
@ -40,10 +40,8 @@
|
||||
#define LIBOPENCM3_RTC_H
|
||||
/**@{*/
|
||||
|
||||
#include <libopencm3/stm32/memorymap.h>
|
||||
#include <libopencm3/cm3/common.h>
|
||||
#include <libopencm3/stm32/pwr.h>
|
||||
#include <libopencm3/stm32/f1/rcc.h>
|
||||
#include <libopencm3/stm32/rcc.h>
|
||||
|
||||
/* --- RTC registers ------------------------------------------------------- */
|
||||
|
||||
|
@ -31,7 +31,6 @@ LGPL License Terms @ref lgpl_license
|
||||
#ifndef LIBOPENCM3_SPI_H
|
||||
#define LIBOPENCM3_SPI_H
|
||||
|
||||
#include <libopencm3/stm32/memorymap.h>
|
||||
#include <libopencm3/stm32/common/spi_common_l1f124.h>
|
||||
|
||||
#endif
|
||||
|
@ -31,7 +31,6 @@ LGPL License Terms @ref lgpl_license
|
||||
#ifndef LIBOPENCM3_USART_H
|
||||
#define LIBOPENCM3_USART_H
|
||||
|
||||
#include <libopencm3/stm32/memorymap.h>
|
||||
#include <libopencm3/stm32/common/usart_common_f124.h>
|
||||
|
||||
#endif
|
||||
|
@ -33,7 +33,6 @@ LGPL License Terms @ref lgpl_license
|
||||
#ifndef LIBOPENCM3_CRC_H
|
||||
#define LIBOPENCM3_CRC_H
|
||||
|
||||
#include <libopencm3/stm32/memorymap.h>
|
||||
#include <libopencm3/stm32/common/crc_common_all.h>
|
||||
|
||||
#endif
|
||||
|
@ -31,8 +31,6 @@
|
||||
#ifndef LIBOPENCM3_CRYPTO_H
|
||||
#define LIBOPENCM3_CRYPTO_H
|
||||
|
||||
#include <libopencm3/stm32/memorymap.h>
|
||||
#include <libopencm3/cm3/common.h>
|
||||
#include <libopencm3/stm32/common/crypto_common_f24.h>
|
||||
|
||||
#endif
|
||||
|
@ -31,7 +31,6 @@ LGPL License Terms @ref lgpl_license
|
||||
#ifndef LIBOPENCM3_DAC_H
|
||||
#define LIBOPENCM3_DAC_H
|
||||
|
||||
#include <libopencm3/stm32/memorymap.h>
|
||||
#include <libopencm3/stm32/common/dac_common_all.h>
|
||||
|
||||
#endif
|
||||
|
@ -31,7 +31,6 @@ LGPL License Terms @ref lgpl_license
|
||||
#ifndef LIBOPENCM3_DMA_H
|
||||
#define LIBOPENCM3_DMA_H
|
||||
|
||||
#include <libopencm3/stm32/memorymap.h>
|
||||
#include <libopencm3/stm32/common/dma_common_f24.h>
|
||||
|
||||
#endif
|
||||
|
@ -36,7 +36,6 @@
|
||||
#ifndef LIBOPENCM3_EXTI_H
|
||||
#define LIBOPENCM3_EXTI_H
|
||||
|
||||
#include <libopencm3/stm32/memorymap.h>
|
||||
#include <libopencm3/stm32/common/exti_common_l1f24.h>
|
||||
|
||||
#endif
|
||||
|
@ -31,7 +31,6 @@
|
||||
#ifndef LIBOPENCM3_FLASH_H
|
||||
#define LIBOPENCM3_FLASH_H
|
||||
|
||||
#include <libopencm3/stm32/memorymap.h>
|
||||
#include <libopencm3/stm32/common/flash_common_f24.h>
|
||||
|
||||
#endif
|
||||
|
@ -31,7 +31,6 @@ LGPL License Terms @ref lgpl_license
|
||||
#ifndef LIBOPENCM3_GPIO_H
|
||||
#define LIBOPENCM3_GPIO_H
|
||||
|
||||
#include <libopencm3/stm32/memorymap.h>
|
||||
#include <libopencm3/stm32/common/gpio_common_f24.h>
|
||||
|
||||
#endif
|
||||
|
@ -31,7 +31,6 @@ LGPL License Terms @ref lgpl_license
|
||||
#ifndef LIBOPENCM3_HASH_H
|
||||
#define LIBOPENCM3_HASH_H
|
||||
|
||||
#include <libopencm3/stm32/memorymap.h>
|
||||
#include <libopencm3/stm32/common/hash_common_f24.h>
|
||||
|
||||
#endif
|
||||
|
@ -31,7 +31,6 @@ LGPL License Terms @ref lgpl_license
|
||||
#ifndef LIBOPENCM3_I2C_H
|
||||
#define LIBOPENCM3_I2C_H
|
||||
|
||||
#include <libopencm3/stm32/memorymap.h>
|
||||
#include <libopencm3/stm32/common/i2c_common_f24.h>
|
||||
|
||||
#endif
|
||||
|
@ -33,7 +33,6 @@ LGPL License Terms @ref lgpl_license
|
||||
#ifndef LIBOPENCM3_IWDG_H
|
||||
#define LIBOPENCM3_IWDG_H
|
||||
|
||||
#include <libopencm3/stm32/memorymap.h>
|
||||
#include <libopencm3/stm32/common/iwdg_common_all.h>
|
||||
|
||||
#endif
|
||||
|
@ -33,7 +33,7 @@ LGPL License Terms @ref lgpl_license
|
||||
#ifndef LIBOPENCM3_PWR_F2_H
|
||||
#define LIBOPENCM3_PWR_F2_H
|
||||
|
||||
#include <libopencm3/stm32/pwr.h>
|
||||
#include <libopencm3/stm32/common/pwr_common_all.h>
|
||||
|
||||
/*
|
||||
* This file extends the common STM32 version with definitions only
|
||||
|
@ -43,9 +43,6 @@
|
||||
#ifndef LIBOPENCM3_RCC_H
|
||||
#define LIBOPENCM3_RCC_H
|
||||
|
||||
#include <libopencm3/stm32/memorymap.h>
|
||||
#include <libopencm3/cm3/common.h>
|
||||
|
||||
/* --- RCC registers ------------------------------------------------------- */
|
||||
|
||||
#define RCC_CR MMIO32(RCC_BASE + 0x00)
|
||||
|
@ -18,7 +18,6 @@
|
||||
#ifndef LIBOPENCM3_RNG_H
|
||||
#define LIBOPENCM3_RNG_H
|
||||
|
||||
#include <libopencm3/stm32/memorymap.h>
|
||||
#include <libopencm3/stm32/common/rng_common_f24.h>
|
||||
|
||||
#endif
|
||||
|
@ -31,7 +31,6 @@ LGPL License Terms @ref lgpl_license
|
||||
#ifndef LIBOPENCM3_RTC_H
|
||||
#define LIBOPENCM3_RTC_H
|
||||
|
||||
#include <libopencm3/stm32/memorymap.h>
|
||||
#include <libopencm3/stm32/common/rtc_common_l1f024.h>
|
||||
|
||||
#endif
|
||||
|
@ -31,7 +31,6 @@ LGPL License Terms @ref lgpl_license
|
||||
#ifndef LIBOPENCM3_SPI_H
|
||||
#define LIBOPENCM3_SPI_H
|
||||
|
||||
#include <libopencm3/stm32/memorymap.h>
|
||||
#include <libopencm3/stm32/common/spi_common_f24.h>
|
||||
|
||||
#endif
|
||||
|
@ -37,7 +37,6 @@
|
||||
#ifndef LIBOPENCM3_SYSCFG_H
|
||||
#define LIBOPENCM3_SYSCFG_H
|
||||
|
||||
#include <libopencm3/stm32/memorymap.h>
|
||||
#include <libopencm3/stm32/common/syscfg_common_l1f234.h>
|
||||
|
||||
#endif
|
||||
|
@ -31,7 +31,6 @@ LGPL License Terms @ref lgpl_license
|
||||
#ifndef LIBOPENCM3_USART_H
|
||||
#define LIBOPENCM3_USART_H
|
||||
|
||||
#include <libopencm3/stm32/memorymap.h>
|
||||
#include <libopencm3/stm32/common/usart_common_f24.h>
|
||||
|
||||
#endif
|
||||
|
@ -3,7 +3,7 @@
|
||||
* @brief <b>Defined Constants and Types for the STM32F37x Analog to Digital
|
||||
* converter</b>
|
||||
*
|
||||
* @ingroup STM32F37x_defines
|
||||
* @ingroup STM32F3xx_defines
|
||||
*
|
||||
* @version 1.0.0
|
||||
*
|
||||
@ -34,9 +34,6 @@
|
||||
#ifndef LIBOPENCM3_ADC_H
|
||||
#define LIBOPENCM3_ADC_H
|
||||
|
||||
#include <libopencm3/stm32/memorymap.h>
|
||||
#include <libopencm3/cm3/common.h>
|
||||
|
||||
#define ADC1 ADC1_BASE
|
||||
#define ADC2 ADC2_BASE
|
||||
#define ADC3 ADC3_BASE
|
||||
|
@ -32,7 +32,6 @@
|
||||
#ifndef LIBOPENCM3_CRC_H
|
||||
#define LIBOPENCM3_CRC_H
|
||||
|
||||
#include <libopencm3/stm32/memorymap.h>
|
||||
#include <libopencm3/stm32/common/crc_common_all.h>
|
||||
|
||||
/* --- CRC registers ------------------------------------------------------- */
|
||||
|
@ -31,7 +31,6 @@
|
||||
#ifndef LIBOPENCM3_DAC_H
|
||||
#define LIBOPENCM3_DAC_H
|
||||
|
||||
#include <libopencm3/stm32/memorymap.h>
|
||||
#include <libopencm3/stm32/common/dac_common_all.h>
|
||||
|
||||
#endif
|
||||
|
@ -31,7 +31,6 @@
|
||||
#ifndef LIBOPENCM3_DMA_H
|
||||
#define LIBOPENCM3_DMA_H
|
||||
|
||||
#include <libopencm3/stm32/memorymap.h>
|
||||
#include <libopencm3/stm32/common/dma_common_l1f013.h>
|
||||
|
||||
#endif
|
||||
|
@ -37,7 +37,6 @@
|
||||
#define LIBOPENCM3_EXTI_H
|
||||
/**@{*/
|
||||
|
||||
#include <libopencm3/stm32/memorymap.h>
|
||||
#include <libopencm3/stm32/common/exti_common_all.h>
|
||||
|
||||
/* --- EXTI registers ------------------------------------------------------ */
|
||||
|
@ -32,7 +32,6 @@
|
||||
#define LIBOPENCM3_FLASH_H
|
||||
/**@{*/
|
||||
|
||||
#include <libopencm3/stm32/memorymap.h>
|
||||
#include <libopencm3/stm32/common/flash_common_f234.h>
|
||||
|
||||
/* --- FLASH registers ----------------------------------------------------- */
|
||||
|
@ -32,7 +32,6 @@
|
||||
#ifndef LIBOPENCM3_GPIO_H
|
||||
#define LIBOPENCM3_GPIO_H
|
||||
|
||||
#include <libopencm3/stm32/memorymap.h>
|
||||
#include <libopencm3/stm32/common/gpio_common_f234.h>
|
||||
|
||||
#endif
|
||||
|
@ -31,9 +31,6 @@
|
||||
#ifndef LIBOPENCM3_I2C_H
|
||||
#define LIBOPENCM3_I2C_H
|
||||
|
||||
#include <libopencm3/stm32/memorymap.h>
|
||||
#include <libopencm3/cm3/common.h>
|
||||
|
||||
/**@{*/
|
||||
|
||||
/* --- Convenience macros -------------------------------------------------- */
|
||||
|
@ -33,7 +33,6 @@
|
||||
#ifndef LIBOPENCM3_IWDG_H
|
||||
#define LIBOPENCM3_IWDG_H
|
||||
|
||||
#include <libopencm3/stm32/memorymap.h>
|
||||
#include <libopencm3/stm32/common/iwdg_common_all.h>
|
||||
|
||||
/* --- IWDG registers ------------------------------------------------------ */
|
||||
|
@ -41,7 +41,7 @@
|
||||
#ifndef LIBOPENCM3_PWR_F3_H
|
||||
#define LIBOPENCM3_PWR_F3_H
|
||||
|
||||
#include <libopencm3/stm32/pwr.h>
|
||||
#include <libopencm3/stm32/common/pwr_common_all.h>
|
||||
|
||||
/* --- PWR_CR values ------------------------------------------------------- */
|
||||
|
||||
|
@ -51,9 +51,6 @@
|
||||
#ifndef LIBOPENCM3_RCC_H
|
||||
#define LIBOPENCM3_RCC_H
|
||||
|
||||
#include <libopencm3/stm32/memorymap.h>
|
||||
#include <libopencm3/cm3/common.h>
|
||||
|
||||
/* --- RCC registers ------------------------------------------------------- */
|
||||
|
||||
#define RCC_CR MMIO32(RCC_BASE + 0x00)
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
x
Reference in New Issue
Block a user