Mercurial > public > ostc4
comparison Discovery/Inc/ostc_hw2.h @ 1036:5865f0aeb438 Puls_Integration
Radio data integration:
Added functionality for displaying radio data as debug message. The USART3 has been configurated for receiption and a function for the visualization of the data has been added to the demo unit (draft implementation). For activation the radio as well as the logger functionality needs to be activated via compile switch. Note that at the moment bluetooth and radio DMA may not be operated in parallel.
| author | Ideenmodellierer |
|---|---|
| date | Sun, 10 Aug 2025 15:28:59 +0200 |
| parents | 5e027b0f7475 |
| children |
comparison
equal
deleted
inserted
replaced
| 1035:5b913cdaa9dc | 1036:5865f0aeb438 |
|---|---|
| 165 #define USART_IR_HUD_RX_GPIO_PORT GPIOD | 165 #define USART_IR_HUD_RX_GPIO_PORT GPIOD |
| 166 #define USART_IR_HUD_RX_GPIO_CLK_ENABLE() __GPIOD_CLK_ENABLE() | 166 #define USART_IR_HUD_RX_GPIO_CLK_ENABLE() __GPIOD_CLK_ENABLE() |
| 167 #define USART_IR_HUD_IRQn USART2_IRQn | 167 #define USART_IR_HUD_IRQn USART2_IRQn |
| 168 // to it directly#define USART_IR_HUD_IRQHandler USART2_IRQHandler | 168 // to it directly#define USART_IR_HUD_IRQHandler USART2_IRQHandler |
| 169 | 169 |
| 170 #define USART_RADIO USART3 | |
| 171 #define USART_RADIO_CLK_ENABLE() __USART3_CLK_ENABLE(); | |
| 172 #define USART_RADIO_FORCE_RESET() __USART3_FORCE_RESET() | |
| 173 #define USART_RADIO_RELEASE_RESET() __USART3_RELEASE_RESET() | |
| 174 //#define USART_IR_HUD_TX_AF GPIO_AF7_USART3 | |
| 175 //#define USART_IR_HUD_TX_PIN GPIO_PIN_5 | |
| 176 //#define USART_IR_HUD_TX_GPIO_PORT GPIOD | |
| 177 //#define USART_IR_HUD_TX_GPIO_CLK_ENABLE() __GPIOD_CLK_ENABLE() | |
| 178 | |
| 179 #define USART_RADIO_RX_AF GPIO_AF7_USART3 | |
| 180 #define USART_RADIO_RX_PIN GPIO_PIN_11 | |
| 181 #define USART_RADIO_RX_GPIO_PORT GPIOB | |
| 182 #define USART_RADIO_RX_GPIO_CLK_ENABLE() __GPIOB_CLK_ENABLE() | |
| 183 #define USART_RADIO_IRQn USART3_IRQn | |
| 184 | |
| 185 | |
| 170 #define TIMx TIM4 | 186 #define TIMx TIM4 |
| 171 #define TIMx_CLK_ENABLE __TIM4_CLK_ENABLE | 187 #define TIMx_CLK_ENABLE __TIM4_CLK_ENABLE |
| 172 #define TIMx_IRQn TIM4_IRQn | 188 #define TIMx_IRQn TIM4_IRQn |
| 173 // to it directly #define TIMx_IRQHandler TIM4_IRQHandler | 189 // to it directly #define TIMx_IRQHandler TIM4_IRQHandler |
| 174 | 190 |
