Skip to content

Commit

Permalink
cmsis_uart: use CMSIS UART driver for nrf52820
Browse files Browse the repository at this point in the history
  • Loading branch information
mbrossard committed Feb 14, 2024
1 parent 402b5ea commit bb5aa72
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 262 deletions.
1 change: 1 addition & 0 deletions records/hic_hal/nrf52820.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ common:
- source/hic_hal/nordic/nrf52820
- source/hic_hal/nordic/nrf52820/cmsis
- source/hic_hal/nordic/nrf52820/nrfx/drivers
- source/hic_hal/cmsis-driver/uart

tool_specific:
uvision:
Expand Down
6 changes: 6 additions & 0 deletions source/hic_hal/nordic/nrf52820/IO_Config.h
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,12 @@ extern uint32_t i2c_sda_pin;
#define UART_TX_PIN uart_tx_pin
#define UART_RX_PIN uart_rx_pin

// cmsis-driver/uart/uart.c configuration
#include "Driver_USART.h"
extern ARM_DRIVER_USART Driver_USART0;
#define CMSIS_UART_INSTANCE (Driver_USART0)
#define CMSIS_UART_IRQ (UARTE0_UART0_IRQn)

// I2C
#define I2C_SCL_PIN i2c_scl_pin
#define I2C_SDA_PIN i2c_sda_pin
Expand Down
262 changes: 0 additions & 262 deletions source/hic_hal/nordic/nrf52820/uart.c

This file was deleted.

0 comments on commit bb5aa72

Please sign in to comment.