projects
/
bertos.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add sam3x dac private funcion to use hight level api.
[bertos.git]
/
bertos
/
cpu
/
cortex-m3
/
io
/
stm32.h
diff --git
a/bertos/cpu/cortex-m3/io/stm32.h
b/bertos/cpu/cortex-m3/io/stm32.h
index 9c2fe1df610bc4abdbdf6ae34c9eea22dac48734..49ee9b1ab183cbdc721f098187dbfc383f3385cc 100644
(file)
--- 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"
#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 || CPU_CM3_STM32F103RE
#define GPIO_USART1_TX_PIN BV(9)
#define GPIO_USART1_RX_PIN BV(10)
#define GPIO_USART2_TX_PIN BV(2)
#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
#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 || CPU_CM3_STM32F103RE
#define GPIO_I2C1_SCL_PIN BV(6)
#define GPIO_I2C1_SDA_PIN BV(7)
#define GPIO_I2C2_SCL_PIN BV(10)
#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
#error No i2c pins are defined for select cpu
#endif
-#if CPU_CM3_STM32F10
3RB
+#if CPU_CM3_STM32F10
1C4 || CPU_CM3_STM32F103RB || CPU_CM3_STM32F103RE
#define FLASH_PAGE_SIZE 1024
#else
#error No embedded definition for select cpu
#define FLASH_PAGE_SIZE 1024
#else
#error No embedded definition for select cpu