diff options
author | Paulo Borges <paulo.borges@openbossa.org> | 2013-12-24 20:44:20 -0300 |
---|---|---|
committer | Paulo Borges <paulo.borges@openbossa.org> | 2013-12-25 23:54:11 -0300 |
commit | 34f98d8eeaf2ce475c7d2e50b7f54a48d8a7525b (patch) | |
tree | 4366f526fc485b4c54408d1e7d1f92f7c4719da8 | |
parent | b1d602512339e1ece45e89a58da358b23e65c63d (diff) |
nrf51822: Change log interrupt level to HIGHEST
This patch changes the log interrupt level to allow put DBG statements
inside others interrupt handlers.
-rw-r--r-- | platform/nrf51822/log.c | 2 | ||||
-rw-r--r-- | platform/nrf51822/nrf51822.h | 7 |
2 files changed, 5 insertions, 4 deletions
diff --git a/platform/nrf51822/log.c b/platform/nrf51822/log.c index 1bcaf78..79e482f 100644 --- a/platform/nrf51822/log.c +++ b/platform/nrf51822/log.c @@ -99,7 +99,7 @@ int16_t log_init(void) UART_BAUDRATE_BAUDRATE_Baud115200 }; - APP_UART_INIT(¶ms, 0, 0, uart_evt_handler, IRQ_PRIORITY_MEDIUM, + APP_UART_INIT(¶ms, 0, 0, uart_evt_handler, IRQ_PRIORITY_HIGHEST, err_code); if (err_code != NRF_SUCCESS) diff --git a/platform/nrf51822/nrf51822.h b/platform/nrf51822/nrf51822.h index c1ccb90..c13b0b8 100644 --- a/platform/nrf51822/nrf51822.h +++ b/platform/nrf51822/nrf51822.h @@ -24,6 +24,7 @@ * SOFTWARE. */ -#define IRQ_PRIORITY_HIGH 0 -#define IRQ_PRIORITY_MEDIUM 1 -#define IRQ_PRIORITY_LOW 2 +#define IRQ_PRIORITY_HIGHEST 0 +#define IRQ_PRIORITY_HIGH 1 +#define IRQ_PRIORITY_MEDIUM 2 +#define IRQ_PRIORITY_LOW 3 |