File tree Expand file tree Collapse file tree 4 files changed +9
-2
lines changed Expand file tree Collapse file tree 4 files changed +9
-2
lines changed Original file line number Diff line number Diff line change 11set (MCU_VARIANT nrf5340_application)
22set (LD_FILE_GNU ${NRFX_DIR} /mdk/nrf5340_xxaa_application.ld)
33
4+ # enable max3421 host driver for this board
5+ set (MAX3421_HOST 1)
6+
47function (update_board TARGET )
58 target_sources (${TARGET} PRIVATE
69 ${NRFX_DIR} /drivers/src/nrfx_usbreg.c
Original file line number Diff line number Diff line change 4242#define BUTTON_STATE_ACTIVE 0
4343
4444// UART
45- #define UART_RX_PIN 32
46- #define UART_TX_PIN 33
45+ #define UART_RX_PIN 22
46+ #define UART_TX_PIN 20
4747
4848// SPI for USB host shield
4949#define MAX3421_SCK_PIN _PINNUM(1, 15)
Original file line number Diff line number Diff line change @@ -2,6 +2,9 @@ CPU_CORE = cortex-m33
22MCU_VARIANT = nrf5340_application
33CFLAGS += -DNRF5340_XXAA -DNRF5340_XXAA_APPLICATION
44
5+ # enable max3421 host driver for this board
6+ MAX3421_HOST = 1
7+
58LD_FILE = hw/mcu/nordic/nrfx/mdk/nrf5340_xxaa_application.ld
69
710SRC_C += hw/mcu/nordic/nrfx/drivers/src/nrfx_usbreg.c
Original file line number Diff line number Diff line change 7676 #define LFCLK_SRC_RC CLOCK_LFCLKSRC_SRC_LFRC
7777 #define VBUSDETECT_Msk USBREG_USBREGSTATUS_VBUSDETECT_Msk
7878 #define OUTPUTRDY_Msk USBREG_USBREGSTATUS_OUTPUTRDY_Msk
79+ #define GPIOTE_IRQn GPIOTE1_IRQn
7980#else
8081 #define LFCLK_SRC_RC CLOCK_LFCLKSRC_SRC_RC
8182 #define VBUSDETECT_Msk POWER_USBREGSTATUS_VBUSDETECT_Msk
You can’t perform that action at this time.
0 commit comments