added esp32s2 kaluga bsp

This commit is contained in:
hathach 2020-06-29 16:52:08 +07:00
parent 2b27eed01a
commit 50b569ad1b
7 changed files with 9 additions and 9 deletions

View File

@ -11,6 +11,7 @@ This code base already had supported for a handful of following boards (sorted a
### Espressif ESP32-S2 ### Espressif ESP32-S2
- [ESP32-S2-Kaluga-1](https://docs.espressif.com/projects/esp-idf/en/latest/esp32s2/hw-reference/esp32s2/user-guide-esp32-s2-kaluga-1-kit.html)
- [ESP32-S2-Saola-1](https://docs.espressif.com/projects/esp-idf/en/latest/esp32s2/hw-reference/esp32s2/user-guide-saola-1-v1.2.html) - [ESP32-S2-Saola-1](https://docs.espressif.com/projects/esp-idf/en/latest/esp32s2/hw-reference/esp32s2/user-guide-saola-1-v1.2.html)
### MicroChip SAMD ### MicroChip SAMD

View File

@ -7,7 +7,7 @@ set(TOP "../../..")
get_filename_component(TOP "${TOP}" REALPATH) get_filename_component(TOP "${TOP}" REALPATH)
# Add example src and bsp directories # Add example src and bsp directories
set(EXTRA_COMPONENT_DIRS "src" "${TOP}/hw/bsp/esp32s2_saola_1") set(EXTRA_COMPONENT_DIRS "src" "${TOP}/hw/bsp/${BOARD}")
include($ENV{IDF_PATH}/tools/cmake/project.cmake) include($ENV{IDF_PATH}/tools/cmake/project.cmake)
set(SUPPORTED_TARGETS esp32s2) set(SUPPORTED_TARGETS esp32s2)

View File

@ -7,7 +7,7 @@ set(TOP "../../..")
get_filename_component(TOP "${TOP}" REALPATH) get_filename_component(TOP "${TOP}" REALPATH)
# Add example src and bsp directories # Add example src and bsp directories
set(EXTRA_COMPONENT_DIRS "src" "${TOP}/hw/bsp/esp32s2_saola_1") set(EXTRA_COMPONENT_DIRS "src" "${TOP}/hw/bsp/${BOARD}")
include($ENV{IDF_PATH}/tools/cmake/project.cmake) include($ENV{IDF_PATH}/tools/cmake/project.cmake)
set(SUPPORTED_TARGETS esp32s2) set(SUPPORTED_TARGETS esp32s2)

View File

@ -7,7 +7,7 @@ set(TOP "../../..")
get_filename_component(TOP "${TOP}" REALPATH) get_filename_component(TOP "${TOP}" REALPATH)
# Add example src and bsp directories # Add example src and bsp directories
set(EXTRA_COMPONENT_DIRS "src" "${TOP}/hw/bsp/esp32s2_saola_1") set(EXTRA_COMPONENT_DIRS "src" "${TOP}/hw/bsp/${BOARD}")
include($ENV{IDF_PATH}/tools/cmake/project.cmake) include($ENV{IDF_PATH}/tools/cmake/project.cmake)
set(SUPPORTED_TARGETS esp32s2) set(SUPPORTED_TARGETS esp32s2)

View File

@ -12,11 +12,10 @@ all:
idf.py -B$(BUILD) -DBOARD=$(BOARD) build idf.py -B$(BUILD) -DBOARD=$(BOARD) build
clean: clean:
idf.py -B$(BUILD) clean idf.py -B$(BUILD) -DBOARD=$(BOARD) clean
flash: flash:
@:$(call check_defined, SERIAL, example: SERIAL=/dev/ttyUSB0) idf.py -B$(BUILD) -DBOARD=$(BOARD) flash
idf.py -B$(BUILD) -p $(SERIAL) flash
else else
# GNU Make build system # GNU Make build system

View File

@ -1,4 +1,4 @@
idf_component_register(SRCS "esp32s2_saola_1.c" "led_strip/src/led_strip_rmt_ws2812.c" idf_component_register(SRCS "${BOARD}.c" "led_strip/src/led_strip_rmt_ws2812.c"
INCLUDE_DIRS "led_strip/include" INCLUDE_DIRS "led_strip/include"
PRIV_REQUIRES "driver" PRIV_REQUIRES "driver"
REQUIRES freertos src) REQUIRES freertos src)

View File

@ -39,8 +39,8 @@
// Note: On the production version (v1.2) WS2812 is connected to GPIO 18, // Note: On the production version (v1.2) WS2812 is connected to GPIO 18,
// however earlier revision v1.1 WS2812 is connected to GPIO 17 // however earlier revision v1.1 WS2812 is connected to GPIO 17
//#define LED_PIN 18 // v1.2 and later //#define LED_PIN 17 // v1.1
#define LED_PIN 17 // v1.1 #define LED_PIN 18 // v1.2 and later
#define BUTTON_PIN 0 #define BUTTON_PIN 0
#define BUTTON_STATE_ACTIVE 0 #define BUTTON_STATE_ACTIVE 0