Просмотр исходного кода

Merge pull request #1 from hathach/majbthrd-nuc121

Majbthrd nuc121
majbthrd 6 лет назад
Родитель
Сommit
c1934c36c3

+ 4 - 0
CONTRIBUTORS.md

@@ -23,6 +23,10 @@
   * USBTMC class driver support with example
   * Various improvement e.g Zero-length packet, Lint setup 
   * Board support for STM32F070RB Nucleo, STM32F303 Discovery
+
+* **[Peter Lawrence](https://github.com/majbthrd)**
+  * Nuvoton NUC 121, 125, 126 device driver port
+  * Board support for NuTiny NUC121s, NUC125s, NUC126V
   
 * **[Scott Shawcroft](https://github.com/tannewt)**
   * SAMD21 and SAMD51 device driver port

+ 7 - 1
docs/boards.md

@@ -7,7 +7,7 @@ The board support code is only used for self-contained examples and testing. It
  
 ## Supported Boards
 
-This code base already had supported for a handful of following boards
+This code base already had supported for a handful of following boards (sorted alphabetically)
 
 ### MicroChip SAMD
 
@@ -26,6 +26,12 @@ This code base already had supported for a handful of following boards
 - [Nordic nRF52840 Dongle (aka pca10059)](https://www.nordicsemi.com/Software-and-Tools/Development-Kits/nRF52840-Dongle)
 - [Nordic nRF52833 Development Kit (aka pca10100)](https://www.nordicsemi.com/Software-and-Tools/Development-Kits/nRF52833-DK)
 
+### Nuvoton
+
+- [NuTiny NUC121S](https://direct.nuvoton.com/en/nutiny-nuc121s)
+- [NuTiny NUC125S](https://direct.nuvoton.com/en/nutiny-nuc125s)
+- [NuTiny NUC126V](https://direct.nuvoton.com/en/nutiny-nuc126v)
+
 ### NXP iMX RT
 
 - [MIMX RT1010 Evaluation Kit](https://www.nxp.com/design/development-boards/i.mx-evaluation-and-development-boards/i.mx-rt1010-evaluation-kit:MIMXRT1010-EVK)

+ 1 - 0
hw/bsp/nutiny_nuc121s/board.mk

@@ -5,6 +5,7 @@ CFLAGS += \
   -mcpu=cortex-m0 \
   -D__ARM_FEATURE_DSP=0 \
   -DUSE_ASSERT=0 \
+  -DCFG_EXAMPLE_MSC_READONLY \
   -DCFG_TUSB_MCU=OPT_MCU_NUC121
 
 # All source paths should be relative to the top level.

+ 1 - 0
hw/bsp/nutiny_nuc125s/board.mk

@@ -5,6 +5,7 @@ CFLAGS += \
   -mcpu=cortex-m0 \
   -D__ARM_FEATURE_DSP=0 \
   -DUSE_ASSERT=0 \
+  -DCFG_EXAMPLE_MSC_READONLY \
   -DCFG_TUSB_MCU=OPT_MCU_NUC121
 
 # All source paths should be relative to the top level.

+ 0 - 2
hw/bsp/nutiny_nuc126v/board.mk

@@ -20,7 +20,6 @@ SRC_C += \
   hw/mcu/nuvoton/nuc126/StdDriver/src/ebi.c \
   hw/mcu/nuvoton/nuc126/StdDriver/src/fmc.c \
   hw/mcu/nuvoton/nuc126/StdDriver/src/gpio.c \
-  hw/mcu/nuvoton/nuc126/StdDriver/src/i2c.c \
   hw/mcu/nuvoton/nuc126/StdDriver/src/pdma.c \
   hw/mcu/nuvoton/nuc126/StdDriver/src/pwm.c \
   hw/mcu/nuvoton/nuc126/StdDriver/src/rtc.c \
@@ -32,7 +31,6 @@ SRC_C += \
   hw/mcu/nuvoton/nuc126/StdDriver/src/timer_pwm.c \
   hw/mcu/nuvoton/nuc126/StdDriver/src/uart.c \
   hw/mcu/nuvoton/nuc126/StdDriver/src/usbd.c \
-  hw/mcu/nuvoton/nuc126/StdDriver/src/usci_i2c.c \
   hw/mcu/nuvoton/nuc126/StdDriver/src/usci_spi.c \
   hw/mcu/nuvoton/nuc126/StdDriver/src/usci_uart.c \
   hw/mcu/nuvoton/nuc126/StdDriver/src/wdt.c \