Skip to content

Commit dac9b2b

Browse files
authored
idf-update
- Refresh idf files - src move to default locations (main -> src) - use latest pio
1 parent 0a8b742 commit dac9b2b

6 files changed

Lines changed: 54 additions & 15 deletions

File tree

.github/dependabot.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: github-actions
4+
directory: /
5+
schedule:
6+
interval: weekly

.github/workflows/ci.yml

Lines changed: 27 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -31,19 +31,36 @@ on:
3131
jobs:
3232
build:
3333
runs-on: ubuntu-latest
34-
container:
35-
# could use a container with sq tools already installed
36-
image: infinitecoding/platformio-for-ci:latest
3734
steps:
3835
- uses: actions/checkout@v2
3936
with:
4037
fetch-depth: 0
4138

39+
- name: Cache pip
40+
uses: actions/cache@v2
41+
with:
42+
path: ~/.cache/pip
43+
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }}
44+
restore-keys: |
45+
${{ runner.os }}-pip-
46+
- name: Cache PlatformIO
47+
uses: actions/cache@v2
48+
with:
49+
path: ~/.platformio
50+
key: ${{ runner.os }}-${{ hashFiles('**/lockfiles') }}
51+
- name: Set up Python
52+
uses: actions/setup-python@v2
53+
- name: Install PlatformIO
54+
run: |
55+
python -m pip install --upgrade pip
56+
pip install --upgrade platformio
57+
58+
4259
- name: Prepare source
4360
run: |
4461
mkdir bin
4562
echo GITHUB Ref: ${{ github.ref }}
46-
VERSION_STRING=`grep "const char \*VERSION =" main/main.c`
63+
VERSION_STRING=`grep "const char \*VERSION =" src/main.c`
4764
MAJOR=`echo ${VERSION_STRING} | cut -f2 -d\"`
4865
if [ "${{ github.ref }}" = "refs/heads/main" ]
4966
then
@@ -73,8 +90,8 @@ jobs:
7390
path: |
7491
~/.sonar/cache
7592
sonarqube
76-
key: ${{ runner.os }}-sonar-${{ env.SONAR_SCANNER_VERSION }}-ng3
77-
restore-keys: ${{ runner.os }}-sonar-${{ env.SONAR_SCANNER_VERSION }}-ng3
93+
key: ${{ runner.os }}-sonar-${{ env.SONAR_SCANNER_VERSION }}-ng
94+
restore-keys: ${{ runner.os }}-sonar-${{ env.SONAR_SCANNER_VERSION }}-ng
7895

7996
- name: Install SonarQube dependencies
8097
if: steps.cache-sonar.outputs.cache-hit != 'true'
@@ -91,15 +108,15 @@ jobs:
91108
92109
- name: Install build dependencies
93110
run: |
94-
apt-get update
95-
apt-get install -qq -y zip
111+
sudo apt-get update
112+
sudo apt-get install -qq -y zip
96113
97114
- name: Build flashsd
98115
run: |
99116
mkdir sonarqube-out
100117
./sonarqube/build-wrapper-linux-x86/build-wrapper-linux-x86-64 --out-dir sonarqube-out \
101118
platformio run --disable-auto-clean
102-
# platformio ci -v --build-dir="./bin" --keep-build-dir --project-conf=platformio.ini ./main/
119+
# platformio ci -v --build-dir="./bin" --keep-build-dir --project-conf=platformio.ini ./src/
103120
104121
- name: Package firmware
105122
run: |
@@ -133,7 +150,7 @@ jobs:
133150
-Dsonar.organization=openbikesensor \
134151
-Dsonar.projectKey=openbikesensor_OpenBikeSensorFlash \
135152
-Dsonar.coverage.exclusions=**/* \
136-
-Dsonar.sources=main \
153+
-Dsonar.sources=src \
137154
-Dsonar.sourceEncoding=UTF-8 \
138155
-Dsonar.cfamily.cache.enabled=false \
139156
-Dsonar.cfamily.threads=1 \

platformio.ini

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,6 @@
88
; Please visit documentation for the other options and examples
99
; https://docs.platformio.org/page/projectconf.html
1010

11-
[platformio]
12-
src_dir = main
13-
1411
[env:esp32dev]
1512
platform = espressif32
1613
board = esp32dev

sdkconfig.esp32dev

Lines changed: 21 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -196,6 +196,7 @@ CONFIG_BT_CTRL_SLEEP_MODE_EFF=0
196196
CONFIG_BT_CTRL_SLEEP_CLOCK_EFF=0
197197
CONFIG_BT_CTRL_HCI_TL_EFF=1
198198
CONFIG_BT_RESERVE_DRAM=0
199+
CONFIG_BT_NIMBLE_USE_ESP_TIMER=y
199200
# end of Bluetooth
200201

201202
#
@@ -327,6 +328,7 @@ CONFIG_ESP32_XTAL_FREQ=40
327328
# CONFIG_ESP32_DISABLE_BASIC_ROM_CONSOLE is not set
328329
# CONFIG_ESP32_NO_BLOBS is not set
329330
# CONFIG_ESP32_COMPATIBLE_PRE_V2_1_BOOTLOADERS is not set
331+
# CONFIG_ESP32_COMPATIBLE_PRE_V3_1_BOOTLOADERS is not set
330332
# CONFIG_ESP32_USE_FIXED_STATIC_RAM_SIZE is not set
331333
CONFIG_ESP32_DPORT_DIS_INTERRUPT_LVL=5
332334
# end of ESP32-specific
@@ -482,7 +484,12 @@ CONFIG_ESP32_WIFI_TASK_PINNED_TO_CORE_0=y
482484
# CONFIG_ESP32_WIFI_TASK_PINNED_TO_CORE_1 is not set
483485
CONFIG_ESP32_WIFI_SOFTAP_BEACON_MAX_LEN=752
484486
CONFIG_ESP32_WIFI_MGMT_SBUF_NUM=32
485-
# CONFIG_ESP32_WIFI_DEBUG_LOG_ENABLE is not set
487+
# CONFIG_WIFI_LOG_DEFAULT_LEVEL_NONE is not set
488+
# CONFIG_WIFI_LOG_DEFAULT_LEVEL_ERROR is not set
489+
# CONFIG_WIFI_LOG_DEFAULT_LEVEL_WARN is not set
490+
CONFIG_WIFI_LOG_DEFAULT_LEVEL_INFO=y
491+
# CONFIG_WIFI_LOG_DEFAULT_LEVEL_DEBUG is not set
492+
# CONFIG_WIFI_LOG_DEFAULT_LEVEL_VERBOSE is not set
486493
CONFIG_ESP32_WIFI_IRAM_OPT=y
487494
CONFIG_ESP32_WIFI_RX_IRAM_OPT=y
488495
CONFIG_ESP32_WIFI_ENABLE_WPA3_SAE=y
@@ -671,11 +678,13 @@ CONFIG_LWIP_ESP_GRATUITOUS_ARP=y
671678
CONFIG_LWIP_GARP_TMR_INTERVAL=60
672679
CONFIG_LWIP_TCPIP_RECVMBOX_SIZE=32
673680
CONFIG_LWIP_DHCP_DOES_ARP_CHECK=y
681+
# CONFIG_LWIP_DHCP_DISABLE_CLIENT_ID is not set
674682
# CONFIG_LWIP_DHCP_RESTORE_LAST_IP is not set
675683

676684
#
677685
# DHCP server
678686
#
687+
CONFIG_LWIP_DHCPS=y
679688
CONFIG_LWIP_DHCPS_LEASE_UNIT=60
680689
CONFIG_LWIP_DHCPS_MAX_STATION_NUM=8
681690
# end of DHCP server
@@ -737,6 +746,7 @@ CONFIG_LWIP_IPV6_ND6_NUM_NEIGHBORS=5
737746
#
738747
# ICMP
739748
#
749+
CONFIG_LWIP_ICMP=y
740750
# CONFIG_LWIP_MULTICAST_PING is not set
741751
# CONFIG_LWIP_BROADCAST_PING is not set
742752
# end of ICMP
@@ -836,6 +846,8 @@ CONFIG_MBEDTLS_SSL_PROTO_TLS1_2=y
836846
# CONFIG_MBEDTLS_SSL_PROTO_DTLS is not set
837847
CONFIG_MBEDTLS_SSL_ALPN=y
838848
CONFIG_MBEDTLS_CLIENT_SSL_SESSION_TICKETS=y
849+
CONFIG_MBEDTLS_X509_CHECK_KEY_USAGE=y
850+
CONFIG_MBEDTLS_X509_CHECK_EXTENDED_KEY_USAGE=y
839851
CONFIG_MBEDTLS_SERVER_SSL_SESSION_TICKETS=y
840852

841853
#
@@ -851,6 +863,7 @@ CONFIG_MBEDTLS_RC4_DISABLED=y
851863
# CONFIG_MBEDTLS_XTEA_C is not set
852864
CONFIG_MBEDTLS_CCM_C=y
853865
CONFIG_MBEDTLS_GCM_C=y
866+
# CONFIG_MBEDTLS_NIST_KW_C is not set
854867
# end of Symmetric Ciphers
855868

856869
# CONFIG_MBEDTLS_RIPEMD160_C is not set
@@ -1028,7 +1041,13 @@ CONFIG_SPIFFS_USE_MTIME=y
10281041
#
10291042
# TCP Transport
10301043
#
1044+
1045+
#
1046+
# Websocket
1047+
#
1048+
CONFIG_WS_TRANSPORT=y
10311049
CONFIG_WS_BUFFER_SIZE=1024
1050+
# end of Websocket
10321051
# end of TCP Transport
10331052

10341053
#
@@ -1086,7 +1105,7 @@ CONFIG_WPA_MBEDTLS_CRYPTO=y
10861105
# CONFIG_WPA_WAPI_PSK is not set
10871106
# CONFIG_WPA_DEBUG_PRINT is not set
10881107
# CONFIG_WPA_TESTING_OPTIONS is not set
1089-
# CONFIG_WPA_WPS_WARS is not set
1108+
# CONFIG_WPA_WPS_STRICT is not set
10901109
# CONFIG_WPA_11KV_SUPPORT is not set
10911110
# end of Supplicant
10921111
# end of Component config
File renamed without changes.

0 commit comments

Comments
 (0)