X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;ds=sidebyside;f=bertos%2Fcpu%2Fcortex-m3%2Fio%2Fstm32.h;h=2db09213c7b26eb810e063433f847db53dbd2816;hb=457ded51e2bb0fb6daec2fc4073a0b1fef4f48ae;hp=9c2fe1df610bc4abdbdf6ae34c9eea22dac48734;hpb=c230d1844cc3fd425e175e89fa12e3d1e5f33eb9;p=bertos.git diff --git a/bertos/cpu/cortex-m3/io/stm32.h b/bertos/cpu/cortex-m3/io/stm32.h index 9c2fe1df..2db09213 100644 --- a/bertos/cpu/cortex-m3/io/stm32.h +++ b/bertos/cpu/cortex-m3/io/stm32.h @@ -51,7 +51,12 @@ #include "stm32_i2c.h" #include "stm32_flash.h" -#if CPU_CM3_STM32F103RB +#if CPU_CM3_STM32F101C4 + #define GPIO_USART1_TX_PIN BV(9) + #define GPIO_USART1_RX_PIN BV(10) + #define GPIO_USART2_TX_PIN BV(2) + #define GPIO_USART2_RX_PIN BV(3) +#elif CPU_CM3_STM32F103RB #define GPIO_USART1_TX_PIN BV(9) #define GPIO_USART1_RX_PIN BV(10) #define GPIO_USART2_TX_PIN BV(2) @@ -62,7 +67,10 @@ #error No USART pins are defined for select cpu #endif -#if CPU_CM3_STM32F103RB +#if CPU_CM3_STM32F101C4 + #define GPIO_I2C1_SCL_PIN BV(6) + #define GPIO_I2C1_SDA_PIN BV(7) +#elif CPU_CM3_STM32F103RB #define GPIO_I2C1_SCL_PIN BV(6) #define GPIO_I2C1_SDA_PIN BV(7) #define GPIO_I2C2_SCL_PIN BV(10) @@ -71,7 +79,7 @@ #error No i2c pins are defined for select cpu #endif -#if CPU_CM3_STM32F103RB +#if CPU_CM3_STM32F101C4 || CPU_CM3_STM32F103RB #define FLASH_PAGE_SIZE 1024 #else #error No embedded definition for select cpu