File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -76,7 +76,7 @@ void uart_init(void)
76
76
77
77
/* start UART */
78
78
79
- #if CONFIG_UART_FORCE_POWERED | CONFIG_UART_RXD_PIN
79
+ #if CONFIG_UART_FORCE_POWERED || defined( CONFIG_UART_RXD_PIN )
80
80
NRF_UART0 -> ENABLE = (UART_ENABLE_ENABLE_Enabled << UART_ENABLE_ENABLE_Pos );
81
81
#else
82
82
NRF_UART0 -> ENABLE = 0 ;
Original file line number Diff line number Diff line change 60
60
#if CONFIG_UART_FAST
61
61
#define CONFIG_UART_BAUDRATE UART_BAUDRATE_BAUDRATE_Baud1M
62
62
#define CONFIG_UART_BUFFER 1024
63
- #define CONFIG_UART_FORCE_POWERED 1
64
63
#else
65
64
#define CONFIG_UART_BAUDRATE UART_BAUDRATE_BAUDRATE_Baud115200
66
65
#endif
67
66
67
+ #define CONFIG_UART_FORCE_POWERED 1
68
+
68
69
#define CONFIG_UART_TXD_PIN 9
69
70
#ifdef CONFIG_UART_RX
70
71
#define CONFIG_UART_RXD_PIN 8
You can’t perform that action at this time.
0 commit comments