From 4a60ee7c7650170c9e0957b9e7d349b72db7f84e Mon Sep 17 00:00:00 2001 From: Emanuele Di Santo Date: Fri, 20 Jul 2018 11:43:00 +0200 Subject: [PATCH] zephyr: add support for pca10059 This commit adds a project configuration for the upcoming nrf52840_pca10059 board. Signed-off-by: Emanuele Di Santo Signed-off-by: Andrzej Puzdrowski --- boot/zephyr/boards/nrf52840_pca10059.conf | 34 +++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 boot/zephyr/boards/nrf52840_pca10059.conf diff --git a/boot/zephyr/boards/nrf52840_pca10059.conf b/boot/zephyr/boards/nrf52840_pca10059.conf new file mode 100644 index 00000000..f40c6c2f --- /dev/null +++ b/boot/zephyr/boards/nrf52840_pca10059.conf @@ -0,0 +1,34 @@ + +# Needed by CDC ACM +CONFIG_SERIAL=y +CONFIG_UART_NRFX=y +CONFIG_UART_INTERRUPT_DRIVEN=y +CONFIG_UART_LINE_CTRL=y + +# MCUBoot serial +CONFIG_GPIO=y +CONFIG_MCUBOOT_SERIAL=y +CONFIG_BOOT_SERIAL_CDC_ACM=y +CONFIG_BOOT_SERIAL_DETECT_PORT="GPIO_1" +CONFIG_BOOT_SERIAL_DETECT_PIN=6 + +# RTT console +CONFIG_RTT_CONSOLE=y +CONFIG_USB_UART_CONSOLE=n + +# Required by USB +CONFIG_MULTITHREADING=y + +# USB +CONFIG_USB=y +CONFIG_USB_DEVICE_STACK=y +CONFIG_USB_DEVICE_PRODUCT="MCUBOOT" +CONFIG_USB_CDC_ACM=y +CONFIG_USB_COMPOSITE_DEVICE=n +CONFIG_USB_MASS_STORAGE=n + +# Logging +CONFIG_SYS_LOG_DEFAULT_LEVEL=1 +CONFIG_SYS_LOG_USB_CDC_ACM_LEVEL=1 +CONFIG_SYS_LOG_USB_DRIVER_LEVEL=1 +CONFIG_SYS_LOG_USB_DEVICE_LEVEL=1