Skip to content

Commit 22f3472

Browse files
committed
cmsis_uart: use CMSIS UART driver for nrf52820
1 parent 93a4df8 commit 22f3472

File tree

3 files changed

+7
-262
lines changed

3 files changed

+7
-262
lines changed

records/hic_hal/nrf52820.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ common:
2222
- source/hic_hal/nordic/nrf52820
2323
- source/hic_hal/nordic/nrf52820/cmsis
2424
- source/hic_hal/nordic/nrf52820/nrfx/drivers
25+
- source/hic_hal/cmsis-driver/uart
2526

2627
tool_specific:
2728
uvision:

source/hic_hal/nordic/nrf52820/IO_Config.h

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,12 @@ extern uint32_t i2c_sda_pin;
8585
#define UART_TX_PIN uart_tx_pin
8686
#define UART_RX_PIN uart_rx_pin
8787

88+
// cmsis-driver/uart/uart.c configuration
89+
#include "Driver_USART.h"
90+
extern ARM_DRIVER_USART Driver_USART0;
91+
#define CMSIS_UART_INSTANCE (Driver_USART0)
92+
#define CMSIS_UART_IRQ (UARTE0_UART0_IRQn)
93+
8894
// I2C
8995
#define I2C_SCL_PIN i2c_scl_pin
9096
#define I2C_SDA_PIN i2c_sda_pin

source/hic_hal/nordic/nrf52820/uart.c

Lines changed: 0 additions & 262 deletions
This file was deleted.

0 commit comments

Comments
 (0)