File tree Expand file tree Collapse file tree 6 files changed +1859
-8
lines changed Expand file tree Collapse file tree 6 files changed +1859
-8
lines changed Original file line number Diff line number Diff line change 46
46
/** @addtogroup STM32F4xx_System_Private_Includes
47
47
* @{
48
48
*/
49
+ #ifndef STM32F0xx
49
50
#include "stm32_def.h"
50
51
#include "hw_config.h"
51
52
#include "uart.h"
@@ -763,5 +764,5 @@ void HAL_UART_Emul_RxCpltCallback(UART_Emul_HandleTypeDef *huart)
763
764
#ifdef __cplusplus
764
765
}
765
766
#endif
766
-
767
+ #endif
767
768
/************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/
Original file line number Diff line number Diff line change 49
49
50
50
/* Exported types ------------------------------------------------------------*/
51
51
typedef enum {
52
- USART3_E = 0 ,
53
- USART6_E = 1 ,
52
+ #ifdef STM32F0xx
53
+ USART1_E = 0 ,
54
+ USART2_E = 1 ,
55
+ USART4_E = 2 ,
56
+ #else
57
+ USART3_E = 0 ,
58
+ USART6_E = 1 ,
59
+ #endif
54
60
NB_UART_MANAGED ,
55
61
} uart_id_e ;
56
62
@@ -87,8 +93,11 @@ int8_t uart_emul_read(uart_emul_id_e uart_id);
87
93
size_t uart_emul_write (uart_emul_id_e uart_id , uint8_t data );
88
94
int8_t uart_emul_peek (uart_emul_id_e uart_id );
89
95
void uart_emul_flush (uart_emul_id_e uart_id );
96
+ #ifdef STM32F0xx
97
+ void uart_emul_attached_handler (void (* irqHandle )(void ));
98
+ #else
90
99
void uart_emul_attached_handler (stimer_t * obj , void (* irqHandle )(void ));
91
-
100
+ #endif
92
101
#ifdef __cplusplus
93
102
}
94
103
#endif
You can’t perform that action at this time.
0 commit comments