Skip to content

Commit

Permalink
boards: arm: reduce the default drivers for the Arduino Zero
Browse files Browse the repository at this point in the history
Now that the SAM0 SOC selects the appropriate SAM0 driver for a class,
reduce the drivers that are compiled in by default on the Arduino
Zero.  This reduces the size of `blink` from ~14 KiB to ~10 KiB.

Also add the supported features to arduino_zero.yaml to get more
coverage in the sanity tests.

Signed-off-by: Michael Hope <mlhx@google.com>
  • Loading branch information
nzmichaelh authored and carlescufi committed Jun 19, 2020
1 parent 5e75b21 commit 8e2c4a4
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 13 deletions.
11 changes: 11 additions & 0 deletions boards/arm/arduino_zero/arduino_zero.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,14 @@ toolchain:
- zephyr
- gnuarmemb
- xtools
supported:
- adc
- counter
- dma
- gpio
- hwinfo
- pinmux
- spi
- uart
- usb_device
- watchdog
15 changes: 2 additions & 13 deletions boards/arm/arduino_zero/arduino_zero_defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -6,19 +6,8 @@ CONFIG_BOARD_ARDUINO_ZERO=y
CONFIG_CORTEX_M_SYSTICK=y
CONFIG_CONSOLE=y
CONFIG_UART_CONSOLE=y
CONFIG_SERIAL=y
CONFIG_UART_SAM0=y
CONFIG_UART_INTERRUPT_DRIVEN=y
CONFIG_GPIO=y
CONFIG_GPIO_SAM0=y
CONFIG_WATCHDOG=y
CONFIG_WDT_SAM0=y
CONFIG_SERIAL=y
CONFIG_PINMUX=y
CONFIG_SOC_ATMEL_SAMD_XOSC32K=y
CONFIG_SOC_ATMEL_SAMD_XOSC32K_AS_MAIN=y
CONFIG_SPI=y
CONFIG_SPI_SAM0=y
CONFIG_SPI_4=y
CONFIG_PINMUX=y
CONFIG_PINMUX_SAM0=y
CONFIG_USB=y
CONFIG_USB_DC_SAM0=y

0 comments on commit 8e2c4a4

Please sign in to comment.