Rev 4 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
| Rev 4 | Rev 23 | ||
|---|---|---|---|
| Line 13... | Line 13... | ||
| 13 | #include "stm32f1xx_hal.h" |
13 | #include "stm32f1xx_hal.h" |
| 14 | 14 | ||
| 15 | 15 | ||
| 16 | 16 | ||
| 17 | 17 | ||
| 18 | #define TX_USART_BUFF_SIZ 256 |
18 | #define TX_USART_BUFF_SIZ 1024 |
| 19 | #define RX_USART_BUFF_SIZ 4096 |
19 | #define RX_USART_BUFF_SIZ 1024 |
| 20 | 20 | ||
| 21 | typedef struct { |
21 | typedef struct { |
| 22 | USART_TypeDef *Instance; |
22 | USART_TypeDef *Instance; |
| 23 | 23 | ||
| 24 | volatile uint8_t tx_usart_buff[TX_USART_BUFF_SIZ]; |
24 | volatile uint8_t tx_usart_buff[TX_USART_BUFF_SIZ]; |
| Line 34... | Line 34... | ||
| 34 | } usart_ctl; |
34 | } usart_ctl; |
| 35 | 35 | ||
| 36 | 36 | ||
| 37 | extern usart_ctl uc1; |
37 | extern usart_ctl uc1; |
| 38 | extern usart_ctl uc2; |
38 | extern usart_ctl uc2; |
| - | 39 | extern usart_ctl uc3; |
|
| - | 40 | ||
| 39 | 41 | ||
| 40 | 42 | ||
| 41 | 43 | ||
| 42 | 44 | ||
| 43 | /* returns the number of characters received by the Rx USART */ |
45 | /* returns the number of characters received by the Rx USART */ |