File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -115,7 +115,7 @@ void stdio_rtt_init(void)
115
115
116
116
#endif
117
117
118
- #if defined( UART_DEV )
118
+ #ifdef UART_DEV
119
119
static uart_inst_t * uart_inst ;
120
120
#endif
121
121
@@ -148,7 +148,7 @@ void board_init(void)
148
148
#ifndef BUTTON_BOOTSEL
149
149
#endif
150
150
151
- #if defined( UART_DEV )
151
+ #ifdef UART_DEV
152
152
bi_decl (bi_2pins_with_func (UART_TX_PIN , UART_TX_PIN , GPIO_FUNC_UART ));
153
153
uart_inst = uart_get_instance (UART_DEV );
154
154
stdio_uart_init_full (uart_inst , CFG_BOARD_UART_BAUDRATE , UART_TX_PIN , UART_RX_PIN );
@@ -191,7 +191,7 @@ uint32_t board_button_read(void)
191
191
192
192
int board_uart_read (uint8_t * buf , int len )
193
193
{
194
- #if defined( UART_DEV )
194
+ #ifdef UART_DEV
195
195
int count = 0 ;
196
196
while ( (count < len ) && uart_is_readable (uart_inst ) )
197
197
{
@@ -207,7 +207,7 @@ int board_uart_read(uint8_t* buf, int len)
207
207
208
208
int board_uart_write (void const * buf , int len )
209
209
{
210
- #if defined( UART_DEV )
210
+ #ifdef UART_DEV
211
211
char const * bufch = (char const * ) buf ;
212
212
for (int i = 0 ;i < len ;i ++ ) {
213
213
uart_putc (uart_inst , bufch [i ]);
You can’t perform that action at this time.
0 commit comments