Skip to content

Commit

Permalink
port: ESP32-C3
Browse files Browse the repository at this point in the history
  • Loading branch information
yoursunny committed Mar 8, 2022
1 parent f4b532d commit e656c72
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ jobs:
NDNPH_VERSION: develop
- name: compile examples
run: |
for B in esp8266:esp8266:nodemcuv2 esp32:esp32:esp32wrover adafruit:nrf52:feather52832; do
for B in esp8266:esp8266:nodemcuv2 esp32:esp32:esp32wrover esp32:esp32:esp32c3 adafruit:nrf52:feather52832; do
ARCH=${B#*:}; ARCH=${ARCH%:*}
for E in $(find ./examples -name '*.ino' -printf '%h\n'); do
if [[ -f $E/.${ARCH}.test.skip ]]; then
Expand Down
6 changes: 6 additions & 0 deletions src/port/choose.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,16 @@

#elif defined(ARDUINO_ARCH_ESP32)

#include <sdkconfig.h>

#define NDNPH_HAVE_MBED

#ifdef CONFIG_ESP_SYSTEM_SINGLE_CORE_MODE
#define NDNPH_PORT_QUEUE_SIMPLE
#else
#define NDNPH_PORT_QUEUE_CUSTOM
#define ESP8266NDN_PORT_QUEUE_FREERTOS
#endif // CONFIG_ESP_SYSTEM_SINGLE_CORE_MODE

#define NDNPH_PORT_UNIXTIME_SYSTIME
#define NDNPH_PORT_UNIXTIME_SYSTIME_CANSET
Expand Down

0 comments on commit e656c72

Please sign in to comment.