Skip to content

Commit a8dfae5

Browse files
committed
Add ADC calibration module support
2 parents 0bbd067 + 9a3bd82 commit a8dfae5

File tree

6 files changed

+13
-11
lines changed

6 files changed

+13
-11
lines changed

lib/tinyusb

Submodule tinyusb updated 84 files

locale/circuitpython.pot

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ msgid ""
88
msgstr ""
99
"Project-Id-Version: PACKAGE VERSION\n"
1010
"Report-Msgid-Bugs-To: \n"
11-
"POT-Creation-Date: 2020-09-25 18:14-0400\n"
11+
"POT-Creation-Date: 2020-10-01 17:17-0400\n"
1212
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
1313
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
1414
"Language-Team: LANGUAGE <[email protected]>\n"

ports/esp32s2/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ set(ENV{IDF_PATH} ${CMAKE_SOURCE_DIR}/esp-idf)
66

77
# The component list here determines what options we get in menuconfig and what the ninja file
88
# can build.
9-
set(COMPONENTS esptool_py soc driver log main esp-tls mbedtls esp_event esp_netif esp_wifi lwip wpa_supplicant freertos)
9+
set(COMPONENTS esptool_py soc driver log main esp-tls mbedtls esp_event esp_adc_cal esp_netif esp_wifi lwip wpa_supplicant freertos)
1010

1111
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
1212
project(circuitpython)

ports/esp32s2/Makefile

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -76,10 +76,6 @@ INC += -I../../supervisor/shared/usb
7676

7777
INC += -isystem esp-idf
7878
INC += -isystem esp-idf/components/driver/include
79-
INC += -isystem esp-idf/components/hal/esp32s2/include
80-
INC += -isystem esp-idf/components/driver/esp32s2/include
81-
INC += -isystem esp-idf/components/hal/include
82-
8379
INC += -isystem esp-idf/components/freertos/include/freertos
8480
INC += -isystem esp-idf/components/freertos/xtensa/include
8581
INC += -isystem esp-idf/components/esp32s2/include
@@ -98,6 +94,10 @@ INC += -isystem esp-idf/components/newlib/platform_include
9894
INC += -isystem esp-idf/components/lwip/lwip/src/include
9995
INC += -isystem esp-idf/components/lwip/port/esp32/include
10096
INC += -isystem esp-idf/components/lwip/include/apps/sntp
97+
INC += -isystem esp-idf/components/hal/include
98+
INC += -isystem esp-idf/components/hal/esp32s2/include
99+
INC += -isystem esp-idf/components/log/include/
100+
INC += -isystem esp-idf/components/driver/esp32s2/include
101101
INC += -isystem esp-idf/components/soc/include
102102
INC += -isystem esp-idf/components/soc/src/esp32s2/include
103103
INC += -isystem esp-idf/components/soc/soc/include
@@ -263,7 +263,7 @@ menuconfig: $(BUILD)/esp-idf/config
263263
$(HEADER_BUILD)/qstr.i.last: | $(BUILD)/esp-idf/config/sdkconfig.h
264264

265265
# Order here matters
266-
ESP_IDF_COMPONENTS_LINK = freertos log esp_system esp32s2 bootloader_support pthread esp_timer vfs spi_flash app_update esp_common esp32s2 heap newlib driver xtensa soc esp_ringbuf esp_wifi esp_event wpa_supplicant mbedtls efuse nvs_flash esp_netif lwip esp_rom esp-tls
266+
ESP_IDF_COMPONENTS_LINK = freertos log esp_system esp_adc_cal esp32s2 bootloader_support pthread esp_timer vfs spi_flash app_update esp_common esp32s2 heap newlib driver xtensa soc esp_ringbuf esp_wifi esp_event wpa_supplicant mbedtls efuse nvs_flash esp_netif lwip esp_rom esp-tls
267267

268268
ESP_IDF_COMPONENTS_INCLUDE = driver freertos log soc
269269

ports/esp32s2/common-hal/analogio/AnalogIn.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@
3030
#include "supervisor/shared/translate.h"
3131

3232
#include "components/driver/include/driver/adc_common.h"
33-
3433
#include "components/esp_adc_cal/include/esp_adc_cal.h"
3534

3635
#include "shared-bindings/microcontroller/Pin.h"

ports/esp32s2/mpconfigport.h

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,14 @@
3131
#define CIRCUITPY_INTERNAL_NVM_SIZE (0)
3232
#define MICROPY_NLR_THUMB (0)
3333

34-
#define MICROPY_PY_UJSON (1)
35-
#define MICROPY_USE_INTERNAL_PRINTF (0)
34+
#define MICROPY_PY_UJSON (1)
35+
#define MICROPY_USE_INTERNAL_PRINTF (0)
3636

3737
#include "py/circuitpy_mpconfig.h"
3838

39+
// ESP-IDF leaves this undefined but uses it everywhere.
40+
// Defining it will reduce chance of undef errors.
41+
#define CONFIG_IDF_TARGET_ESP32 (0)
3942

4043
#define MICROPY_PORT_ROOT_POINTERS \
4144
CIRCUITPY_COMMON_ROOT_POINTERS

0 commit comments

Comments
 (0)