diff options
| author | arturo182 <arturo182@tlen.pl> | 2018-07-08 15:17:06 +0200 |
|---|---|---|
| committer | arturo182 <arturo182@tlen.pl> | 2018-07-08 16:42:04 +0200 |
| commit | 25ece8fb3d96969dffb0726ba57d42cf7ed95b4d (patch) | |
| tree | c830cdceb7548f79a0b90f08efbe6b1ed12efe9f /ports/nrf/nrfx_config.h | |
| parent | c6a2a55bc9593469b8547d4ea9a0833894d5bc12 (diff) | |
nrf: Rewrite the UART HAL using nrfx
Diffstat (limited to 'ports/nrf/nrfx_config.h')
| -rw-r--r-- | ports/nrf/nrfx_config.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/ports/nrf/nrfx_config.h b/ports/nrf/nrfx_config.h index 818931236..f09ca04a3 100644 --- a/ports/nrf/nrfx_config.h +++ b/ports/nrf/nrfx_config.h @@ -21,4 +21,13 @@ #define NRFX_TWIM_DEFAULT_CONFIG_FREQUENCY NRF_TWIM_FREQ_400K #define NRFX_TWIM_DEFAULT_CONFIG_HOLD_BUS_UNINIT 0 +// UART +#define NRFX_UART_ENABLED 1 +#define NRFX_UART0_ENABLED 1 + +#define NRFX_UART_DEFAULT_CONFIG_IRQ_PRIORITY 7 +#define NRFX_UART_DEFAULT_CONFIG_HWFC NRF_UART_HWFC_DISABLED +#define NRFX_UART_DEFAULT_CONFIG_PARITY NRF_UART_PARITY_EXCLUDED +#define NRFX_UART_DEFAULT_CONFIG_BAUDRATE NRF_UART_BAUDRATE_115200 + #endif |
