Skip to content

Commit

Permalink
UARTE align to new DPPI API
Browse files Browse the repository at this point in the history
  • Loading branch information
e-rk committed Oct 15, 2024
1 parent add05ac commit 70a7f2f
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions drivers/serial/uart_nrfx_uarte.c
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,12 @@ LOG_MODULE_REGISTER(uart_nrfx_uarte, CONFIG_UART_LOG_LEVEL);
#define gppi_channel_enable nrfx_ppi_channel_enable
#elif defined(DPPI_PRESENT)
#include <nrfx_dppi.h>

static nrfx_dppi_t dppi = NRFX_DPPI_INSTANCE(0);

#define gppi_channel_t uint8_t
#define gppi_channel_alloc nrfx_dppi_channel_alloc
#define gppi_channel_enable nrfx_dppi_channel_enable
#define gppi_channel_alloc(x) nrfx_dppi_channel_alloc(&dppi, x)
#define gppi_channel_enable(x) nrfx_dppi_channel_enable(&dppi, x)

Check notice on line 40 in drivers/serial/uart_nrfx_uarte.c

View workflow job for this annotation

GitHub Actions / Run compliance checks on patch series (PR)

You may want to run clang-format on this change

drivers/serial/uart_nrfx_uarte.c:40 -#define gppi_channel_alloc(x) nrfx_dppi_channel_alloc(&dppi, x) +#define gppi_channel_alloc(x) nrfx_dppi_channel_alloc(&dppi, x)
#else
#error "No PPI or DPPI"
#endif
Expand Down

0 comments on commit 70a7f2f

Please sign in to comment.