From 666d55a8f43ef5a0e3bb9510edcdd8457738380c Mon Sep 17 00:00:00 2001 From: Andreea Luca Date: Wed, 4 Dec 2024 22:31:47 +0200 Subject: [PATCH] Add configs for esp-sparrow-kit Add configs for esp-sparrow-kit, to ease enabling wifi and mqttc applications --- .../esp32-sparrow-kit/configs/mqttc/defconfig | 147 ++++++++++++++++++ .../esp32-sparrow-kit/configs/wifi/defconfig | 136 ++++++++++++++++ 2 files changed, 283 insertions(+) create mode 100644 boards/xtensa/esp32/esp32-sparrow-kit/configs/mqttc/defconfig create mode 100644 boards/xtensa/esp32/esp32-sparrow-kit/configs/wifi/defconfig diff --git a/boards/xtensa/esp32/esp32-sparrow-kit/configs/mqttc/defconfig b/boards/xtensa/esp32/esp32-sparrow-kit/configs/mqttc/defconfig new file mode 100644 index 0000000000..cd82e4a96e --- /dev/null +++ b/boards/xtensa/esp32/esp32-sparrow-kit/configs/mqttc/defconfig @@ -0,0 +1,147 @@ +# +# This file is autogenerated: PLEASE DO NOT EDIT IT. +# +# You can use "make menuconfig" to make any modifications to the installed .config file. +# You can then do "make savedefconfig" to generate a new defconfig file that includes your +# modifications. +# +# CONFIG_ARCH_LEDS is not set +# CONFIG_NDEBUG is not set +# CONFIG_NSH_ARGCAT is not set +# CONFIG_NSH_CMDOPT_HEXDUMP is not set +CONFIG_ALLOW_BSD_COMPONENTS=y +CONFIG_ARCH="xtensa" +CONFIG_ARCH_BOARD="esp32-sparrow-kit" +CONFIG_ARCH_BOARD_COMMON=y +CONFIG_ARCH_BOARD_ESP32_SPARROWKIT=y +CONFIG_ARCH_CHIP="esp32" +CONFIG_ARCH_CHIP_ESP32=y +CONFIG_ARCH_CHIP_ESP32WROVER=y +# CONFIG_ARCH_INTERRUPTSTACK=2048 +CONFIG_ARCH_STACKDUMP=y +CONFIG_ARCH_XTENSA=y +CONFIG_AUDIO=y +CONFIG_AUDIO_DMA=y +CONFIG_AUDIO_FORMAT_RAW=y +CONFIG_AUDIO_I2S=y +CONFIG_BME680_ENABLE_IIR_FILTER=y +CONFIG_BOARD_LOOPSPERMSEC=16717 +CONFIG_BUILTIN=y +# CONFIG_DEFAULT_TASK_STACKSIZE=4096 +# CONFIG_DEV_URANDOM=y +CONFIG_DMA=y +CONFIG_DMA_LINK=y +CONFIG_DRIVERS_AUDIO=y +CONFIG_DRIVERS_IEEE80211=y +CONFIG_DRIVERS_VIDEO=y +CONFIG_DRIVERS_WIRELESS=y +CONFIG_ESP32_I2C0=y +CONFIG_ESP32_I2C0_SDAPIN=21 +CONFIG_ESP32_I2S0=y +CONFIG_ESP32_I2S0_BCLKPIN=25 +CONFIG_ESP32_I2S0_DATA_BIT_WIDTH_24BIT=y +CONFIG_ESP32_I2S0_DINPIN=26 +CONFIG_ESP32_I2S0_SAMPLE_RATE=8000 +CONFIG_ESP32_I2S0_WSPIN=27 +CONFIG_ESP32_I2S=y +CONFIG_ESP32_LEDC=y +CONFIG_ESP32_LEDC_CHANNEL0_PIN=14 +CONFIG_ESP32_LEDC_CHANNEL1_PIN=13 +CONFIG_ESP32_LEDC_CHANNEL2_PIN=15 +CONFIG_ESP32_LEDC_TIM0=y +CONFIG_ESP32_LEDC_TIM0_CHANNELS=3 +CONFIG_ESP32_SPI2=y +CONFIG_ESP32_SPI2_CLKPIN=18 +CONFIG_ESP32_SPI2_CSPIN=5 +CONFIG_ESP32_SPI2_MISOPIN=19 +CONFIG_ESP32_SPI2_MOSIPIN=23 +CONFIG_ESP32_SPIFLASH=y +CONFIG_ESP32_SPIFLASH_SPIFFS=y +CONFIG_ESP32_STORAGE_MTD_SIZE=0x80000 +CONFIG_ESP32_UART0=y +CONFIG_ESP32_WIFI=y +CONFIG_EXAMPLES_MQTTC=y +CONFIG_FAT_LCNAMES=y +CONFIG_FAT_LFN=y +CONFIG_FS_FAT=y +CONFIG_FS_PROCFS=y +CONFIG_HAVE_CXX=y +CONFIG_HAVE_CXXINITIALIZE=y +CONFIG_I2S_DMADESC_NUM=4 +CONFIG_IDLETHREAD_STACKSIZE=3072 +CONFIG_INIT_ENTRYPOINT="nsh_main" +CONFIG_INIT_STACKSIZE=3072 +CONFIG_INTELHEX_BINARY=y +CONFIG_IOB_NBUFFERS=24 +CONFIG_IOB_THROTTLE=0 +CONFIG_LCD=y +CONFIG_LCD_DEV=y +CONFIG_LCD_FRAMEBUFFER=y +CONFIG_LCD_MAXCONTRAST=255 +CONFIG_LCD_SSD1306_CUSTOM=y +CONFIG_LCD_SSD1306_I2C=y +CONFIG_MMCSD=y +CONFIG_MMCSD_SPICLOCK=4000000 +CONFIG_MM_REGIONS=3 +CONFIG_NAME_MAX=48 +CONFIG_NETDB_DNSCLIENT=y +# CONFIG_NETDB_DNSCLIENT_NAMESIZE=64 +CONFIG_NETDEV_LATEINIT=y +CONFIG_NETDEV_PHY_IOCTL=y +CONFIG_NETDEV_WIRELESS_IOCTL=y +# CONFIG_NETUTILS_CJSON=y +# CONFIG_NETUTILS_IPERF=y +# CONFIG_NETUTILS_TELNETD=y +CONFIG_NETINIT_DHCPC=y +CONFIG_NETINIT_DRIPADDR=0xc0a80101 +CONFIG_NETUTILS_MQTTC=y +CONFIG_NET_BROADCAST=y +# CONFIG_NET_ETH_PKTSIZE=1518 +CONFIG_NET_ICMP_SOCKET=y +# CONFIG_NET_PREALLOC_DEVIF_CALLBACKS=32 +# CONFIG_NET_STATISTICS=y +CONFIG_NET_TCP=y +# CONFIG_NET_TCP_DELAYED_ACK=y +CONFIG_NET_TCPBACKLOG=y +CONFIG_NET_TCP_NOTIFIER=y +CONFIG_NET_TCP_WRITE_BUFFERS=y +CONFIG_NET_UDP=y +CONFIG_NSH_ARCHINIT=y +CONFIG_NSH_BUILTIN_APPS=y +CONFIG_NSH_FILEIOSIZE=512 +CONFIG_NSH_LINELEN=300 +CONFIG_NSH_MMCSDSPIPORTNO=2 +CONFIG_NSH_READLINE=y +# CONFIG_POSIX_SPAWN_DEFAULT_STACKSIZE=2048 +CONFIG_PREALLOC_TIMERS=4 +CONFIG_PTHREAD_MUTEX_TYPES=y +CONFIG_PWM_MULTICHAN=y +CONFIG_PWM_NCHANNELS=3 +CONFIG_RAM_SIZE=114688 +CONFIG_RAM_START=0x20000000 +CONFIG_RR_INTERVAL=200 +CONFIG_SCHED_HPWORK=y +CONFIG_SCHED_LPWORK=y +CONFIG_SCHED_WAITPID=y +CONFIG_SENSORS=y +CONFIG_SENSORS_BME680=y +CONFIG_SENSORS_LTR308=y +CONFIG_SIG_DEFAULT=y +CONFIG_SPIFFS_NAME_MAX=48 +CONFIG_START_DAY=6 +CONFIG_START_MONTH=12 +CONFIG_START_YEAR=2011 +CONFIG_SYSLOG_BUFFER=y +CONFIG_SYSTEM_DHCPC_RENEW=y +CONFIG_SYSTEM_NSH=y +CONFIG_SYSTEM_PING=y +CONFIG_TIMER=y +CONFIG_TIMER_ARCH=y +CONFIG_TLS_TASK_NELEM=4 +CONFIG_UART0_SERIAL_CONSOLE=y +CONFIG_VIDEO_FB=y +CONFIG_WIRELESS=y +CONFIG_WIRELESS_WAPI=y +CONFIG_WIRELESS_WAPI_CMDTOOL=y +# CONFIG_WIRELESS_WAPI_INITCONF=y +CONFIG_WIRELESS_WAPI_STACKSIZE=4096 diff --git a/boards/xtensa/esp32/esp32-sparrow-kit/configs/wifi/defconfig b/boards/xtensa/esp32/esp32-sparrow-kit/configs/wifi/defconfig new file mode 100644 index 0000000000..301660edc7 --- /dev/null +++ b/boards/xtensa/esp32/esp32-sparrow-kit/configs/wifi/defconfig @@ -0,0 +1,136 @@ +# +# This file is autogenerated: PLEASE DO NOT EDIT IT. +# +# You can use "make menuconfig" to make any modifications to the installed .config file. +# You can then do "make savedefconfig" to generate a new defconfig file that includes your +# modifications. +# +# CONFIG_ARCH_LEDS is not set +# CONFIG_NDEBUG is not set +# CONFIG_NSH_ARGCAT is not set +# CONFIG_NSH_CMDOPT_HEXDUMP is not set +CONFIG_ALLOW_BSD_COMPONENTS=y +CONFIG_ARCH="xtensa" +CONFIG_ARCH_BOARD="esp32-sparrow-kit" +CONFIG_ARCH_BOARD_COMMON=y +CONFIG_ARCH_BOARD_ESP32_SPARROWKIT=y +CONFIG_ARCH_CHIP="esp32" +CONFIG_ARCH_CHIP_ESP32=y +CONFIG_ARCH_CHIP_ESP32WROVER=y +CONFIG_ARCH_INTERRUPTSTACK=2048 +CONFIG_ARCH_STACKDUMP=y +CONFIG_ARCH_XTENSA=y +CONFIG_AUDIO=y +CONFIG_AUDIO_DMA=y +CONFIG_AUDIO_FORMAT_RAW=y +CONFIG_AUDIO_I2S=y +CONFIG_BME680_ENABLE_IIR_FILTER=y +CONFIG_BOARD_LOOPSPERMSEC=16717 +CONFIG_BUILTIN=y +CONFIG_DEFAULT_TASK_STACKSIZE=4096 +CONFIG_DEV_URANDOM=y +CONFIG_DMA=y +CONFIG_DMA_LINK=y +CONFIG_DRIVERS_AUDIO=y +CONFIG_DRIVERS_IEEE80211=y +CONFIG_DRIVERS_VIDEO=y +CONFIG_DRIVERS_WIRELESS=y +CONFIG_ESP32_I2C0=y +CONFIG_ESP32_I2C0_SDAPIN=21 +CONFIG_ESP32_I2S0=y +CONFIG_ESP32_I2S0_BCLKPIN=25 +CONFIG_ESP32_I2S0_DATA_BIT_WIDTH_24BIT=y +CONFIG_ESP32_I2S0_DINPIN=26 +CONFIG_ESP32_I2S0_SAMPLE_RATE=8000 +CONFIG_ESP32_I2S0_WSPIN=27 +CONFIG_ESP32_I2S=y +CONFIG_ESP32_LEDC=y +CONFIG_ESP32_LEDC_CHANNEL0_PIN=14 +CONFIG_ESP32_LEDC_CHANNEL1_PIN=13 +CONFIG_ESP32_LEDC_CHANNEL2_PIN=15 +CONFIG_ESP32_LEDC_TIM0=y +CONFIG_ESP32_LEDC_TIM0_CHANNELS=3 +CONFIG_ESP32_SPI2=y +CONFIG_ESP32_SPI2_CLKPIN=18 +CONFIG_ESP32_SPI2_CSPIN=5 +CONFIG_ESP32_SPI2_MISOPIN=19 +CONFIG_ESP32_SPI2_MOSIPIN=23 +CONFIG_ESP32_SPIFLASH=y +CONFIG_ESP32_SPIFLASH_SPIFFS=y +CONFIG_ESP32_STORAGE_MTD_SIZE=0x80000 +CONFIG_ESP32_UART0=y +CONFIG_ESP32_WIFI=y +CONFIG_FAT_LCNAMES=y +CONFIG_FAT_LFN=y +CONFIG_FS_FAT=y +CONFIG_FS_PROCFS=y +CONFIG_I2S_DMADESC_NUM=4 +CONFIG_IDLETHREAD_STACKSIZE=3072 +CONFIG_INIT_ENTRYPOINT="nsh_main" +CONFIG_INIT_STACKSIZE=3072 +CONFIG_INTELHEX_BINARY=y +CONFIG_LCD=y +CONFIG_LCD_DEV=y +CONFIG_LCD_FRAMEBUFFER=y +CONFIG_LCD_MAXCONTRAST=255 +CONFIG_LCD_SSD1306_CUSTOM=y +CONFIG_LCD_SSD1306_I2C=y +CONFIG_MMCSD=y +CONFIG_MMCSD_SPICLOCK=4000000 +CONFIG_MM_REGIONS=3 +CONFIG_NAME_MAX=48 +CONFIG_NETDB_DNSCLIENT=y +CONFIG_NETDB_DNSCLIENT_NAMESIZE=64 +CONFIG_NETDEV_LATEINIT=y +CONFIG_NETDEV_PHY_IOCTL=y +CONFIG_NETDEV_WIRELESS_IOCTL=y +CONFIG_NETUTILS_CJSON=y +CONFIG_NETUTILS_IPERF=y +CONFIG_NETUTILS_TELNETD=y +CONFIG_NET_BROADCAST=y +CONFIG_NET_ETH_PKTSIZE=1518 +CONFIG_NET_ICMP_SOCKET=y +CONFIG_NET_PREALLOC_DEVIF_CALLBACKS=32 +CONFIG_NET_STATISTICS=y +CONFIG_NET_TCP=y +CONFIG_NET_TCP_DELAYED_ACK=y +CONFIG_NET_TCP_WRITE_BUFFERS=y +CONFIG_NET_UDP=y +CONFIG_NSH_ARCHINIT=y +CONFIG_NSH_BUILTIN_APPS=y +CONFIG_NSH_FILEIOSIZE=512 +CONFIG_NSH_LINELEN=300 +CONFIG_NSH_MMCSDSPIPORTNO=2 +CONFIG_NSH_READLINE=y +CONFIG_POSIX_SPAWN_DEFAULT_STACKSIZE=2048 +CONFIG_PREALLOC_TIMERS=4 +CONFIG_PTHREAD_MUTEX_TYPES=y +CONFIG_PWM_MULTICHAN=y +CONFIG_PWM_NCHANNELS=3 +CONFIG_RAM_SIZE=114688 +CONFIG_RAM_START=0x20000000 +CONFIG_RR_INTERVAL=200 +CONFIG_SCHED_HPWORK=y +CONFIG_SCHED_LPWORK=y +CONFIG_SCHED_WAITPID=y +CONFIG_SENSORS=y +CONFIG_SENSORS_BME680=y +CONFIG_SENSORS_LTR308=y +CONFIG_SIG_DEFAULT=y +CONFIG_SPIFFS_NAME_MAX=48 +CONFIG_START_DAY=6 +CONFIG_START_MONTH=12 +CONFIG_START_YEAR=2011 +CONFIG_SYSLOG_BUFFER=y +CONFIG_SYSTEM_DHCPC_RENEW=y +CONFIG_SYSTEM_NSH=y +CONFIG_SYSTEM_PING=y +CONFIG_TIMER=y +CONFIG_TIMER_ARCH=y +CONFIG_TLS_TASK_NELEM=4 +CONFIG_UART0_SERIAL_CONSOLE=y +CONFIG_VIDEO_FB=y +CONFIG_WIRELESS=y +CONFIG_WIRELESS_WAPI=y +CONFIG_WIRELESS_WAPI_CMDTOOL=y +CONFIG_WIRELESS_WAPI_INITCONF=y