Browse Source

nrf/boards/wt51822_s4at: Fixes after nrfx and Pin IRQ introduction

pull/3137/merge
Glenn Ruben Bakke 7 years ago
committed by Damien George
parent
commit
f4382a2885
  1. 10
      ports/nrf/boards/wt51822_s4at/mpconfigboard.h
  2. 14
      ports/nrf/boards/wt51822_s4at/nrf51_hal_conf.h

10
ports/nrf/boards/wt51822_s4at/mpconfigboard.h

@ -41,12 +41,12 @@
#define MICROPY_HW_HAS_LED (0)
// UART config
#define MICROPY_HW_UART1_RX (pin_P1)
#define MICROPY_HW_UART1_TX (pin_P2)
#define MICROPY_HW_UART1_RX (1)
#define MICROPY_HW_UART1_TX (2)
#define MICROPY_HW_UART1_HWFC (0)
// SPI0 config
#define MICROPY_HW_SPI0_NAME "SPI0"
#define MICROPY_HW_SPI0_SCK (pin_P9)
#define MICROPY_HW_SPI0_MOSI (pin_P10)
#define MICROPY_HW_SPI0_MISO (pin_P13)
#define MICROPY_HW_SPI0_SCK (9)
#define MICROPY_HW_SPI0_MOSI (10)
#define MICROPY_HW_SPI0_MISO (13)

14
ports/nrf/boards/wt51822_s4at/nrf51_hal_conf.h

@ -1,14 +0,0 @@
#ifndef NRF51_HAL_CONF_H__
#define NRF51_HAL_CONF_H__
#define HAL_UART_MODULE_ENABLED
#define HAL_SPI_MODULE_ENABLED
#define HAL_TIME_MODULE_ENABLED
#define HAL_RTC_MODULE_ENABLED
#define HAL_TIMER_MODULE_ENABLED
#define HAL_TWI_MODULE_ENABLED
#define HAL_ADC_MODULE_ENABLED
#define HAL_TEMP_MODULE_ENABLED
#define HAL_RNG_MODULE_ENABLED
#endif // NRF51_HAL_CONF_H__
Loading…
Cancel
Save