diff options
Diffstat (limited to 'hal/stm32.h')
-rw-r--r-- | hal/stm32.h | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/hal/stm32.h b/hal/stm32.h index 41ebbb7..7ddb479 100644 --- a/hal/stm32.h +++ b/hal/stm32.h @@ -57,26 +57,6 @@ struct I2C_t { static I2C_t& I2C1 = *(I2C_t*)0x40005400; static I2C_t& I2C2 = *(I2C_t*)0x40005800; -struct USART_t { - volatile uint32_t SR; - volatile uint32_t DR; - volatile uint32_t BRR; - volatile uint32_t CR1; - volatile uint32_t CR2; - volatile uint32_t CR3; - volatile uint32_t GTPR; -}; - -#if defined(STM32F1) -static USART_t& USART1 = *(USART_t*)0x40013800; -static USART_t& USART2 = *(USART_t*)0x40004400; -static USART_t& USART3 = *(USART_t*)0x40004800; -#elif defined(STM32F4) -static USART_t& USART1 = *(USART_t*)0x40011000; -static USART_t& USART2 = *(USART_t*)0x40004400; -static USART_t& USART3 = *(USART_t*)0x40004800; -#endif - struct TIM_t { volatile uint32_t CR1; volatile uint32_t CR2; |