Skip to content

Commit fc69dc6

Browse files
Merge branch 'master' into fix_issue_3173
2 parents 88ef15c + 0e1b0fa commit fc69dc6

File tree

23 files changed

+42
-48
lines changed

23 files changed

+42
-48
lines changed

.github/workflows/pull-request.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ jobs:
205205
name: Mac
206206
strategy:
207207
matrix:
208-
os: [macOS-13, macOS-14]
208+
os: [macOS-15-intel, macOS-14]
209209
runs-on: ${{ matrix.os }}
210210
steps:
211211
- uses: actions/checkout@v4

.github/workflows/release-to-publish.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
name: Arduino-Pico Release Publisher
22

3+
permissions:
4+
actions: read
5+
contents: write
6+
packages: write
7+
38
on:
49
release:
510
types: [published]

.github/workflows/tag-to-draft-release.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,11 @@
44

55
name: Arduino-Pico Draft Release
66

7+
permissions:
8+
actions: read
9+
contents: write
10+
packages: write
11+
712
on:
813
push:
914
tags:

cores/rp2040/RP2040Version.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#pragma once
22
#define ARDUINO_PICO_MAJOR 5
3-
#define ARDUINO_PICO_MINOR 2
4-
#define ARDUINO_PICO_REVISION 1
5-
#define ARDUINO_PICO_VERSION_STR "5.2.1"
3+
#define ARDUINO_PICO_MINOR 3
4+
#define ARDUINO_PICO_REVISION 0
5+
#define ARDUINO_PICO_VERSION_STR "5.3.0"

cores/rp2040/freertos/freertos-lwip.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -384,6 +384,7 @@ static void lwipThread(void *params) {
384384
*(r->ret) = __real_ethernet_input(r->p, r->netif);
385385
break;
386386
}
387+
#if defined(PICO_CYW43_SUPPORTED)
387388
case __cyw43_wifi_join: {
388389
__cyw43_wifi_join_req *r = (__cyw43_wifi_join_req *)w.req;
389390
*(r->ret) = __real_cyw43_wifi_join(r->self, r->ssid_len, r->ssid, r->key_len, r->key, r->auth_type, r->bssid, r->channel);
@@ -394,6 +395,7 @@ static void lwipThread(void *params) {
394395
*(r->ret) = __real_cyw43_wifi_leave(r->self, r->itf);
395396
break;
396397
}
398+
#endif
397399
case __callback: {
398400
__callback_req *r = (__callback_req *)w.req;
399401
r->cb(r->cbData);

cores/rp2040/lwip_wrap.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -832,6 +832,7 @@ extern "C" {
832832
return __real_ethernet_input(p, netif);
833833
}
834834

835+
#if defined(PICO_CYW43_SUPPORTED)
835836
int __real_cyw43_wifi_join(cyw43_t *self, size_t ssid_len, const uint8_t *ssid, size_t key_len, const uint8_t *key, uint32_t auth_type, const uint8_t *bssid, uint32_t channel);
836837
int __wrap_cyw43_wifi_join(cyw43_t *self, size_t ssid_len, const uint8_t *ssid, size_t key_len, const uint8_t *key, uint32_t auth_type, const uint8_t *bssid, uint32_t channel) {
837838
#ifdef __FREERTOS
@@ -857,7 +858,7 @@ extern "C" {
857858
#endif
858859
return __real_cyw43_wifi_leave(self, itf);
859860
}
860-
861+
#endif
861862

862863

863864
void lwip_callback(void (*cb)(void *), void *cbData, __callback_req *buffer) {

cores/rp2040/lwip_wrap.h

Lines changed: 4 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -48,15 +48,6 @@ extern recursive_mutex_t __lwipMutex;
4848
class LWIPMutex {
4949
public:
5050
LWIPMutex() {
51-
// if (ethernet_arch_lwip_gpio_mask) {
52-
// ethernet_arch_lwip_gpio_mask();
53-
// }
54-
//#if defined(ARDUINO_RASPBERRY_PI_PICO_W)
55-
// if (rp2040.isPicoW()) {
56-
// cyw43_arch_lwip_begin();
57-
// return;
58-
// }
59-
//#endif
6051
#if !defined(__FREERTOS)
6152
if (ethernet_arch_lwip_begin) {
6253
ethernet_arch_lwip_begin();
@@ -67,24 +58,11 @@ class LWIPMutex {
6758
}
6859

6960
~LWIPMutex() {
70-
#if !defined(__FREERTOS)
71-
//#if defined(ARDUINO_RASPBERRY_PI_PICO_W)
72-
// if (rp2040.isPicoW()) {
73-
// cyw43_arch_lwip_end();
74-
// } else {
75-
//#endif
7661
if (ethernet_arch_lwip_end) {
7762
ethernet_arch_lwip_end();
7863
} else {
7964
recursive_mutex_exit(&__lwipMutex);
8065
}
81-
//#if defined(ARDUINO_RASPBERRY_PI_PICO_W)
82-
// }
83-
//#endif
84-
#endif
85-
// if (ethernet_arch_lwip_gpio_unmask) {
86-
// ethernet_arch_lwip_gpio_unmask();
87-
// }
8866
}
8967
};
9068

@@ -167,8 +145,10 @@ typedef enum {
167145

168146
__ethernet_input = 9000,
169147

148+
#if defined(PICO_CYW43_SUPPORTED)
170149
__cyw43_wifi_join = 9500,
171150
__cyw43_wifi_leave,
151+
#endif
172152

173153
__callback = 10000,
174154
} __lwip_op;
@@ -573,6 +553,7 @@ typedef struct {
573553
err_t *ret;
574554
} __ethernet_input_req;
575555

556+
#if defined(PICO_CYW43_SUPPORTED)
576557
typedef struct {
577558
cyw43_t *self;
578559
size_t ssid_len;
@@ -590,6 +571,7 @@ typedef struct {
590571
int itf;
591572
int *ret;
592573
} __cyw43_wifi_leave_req;
574+
#endif
593575

594576
// Run a callback in the LWIP thread (i.e. for Ethernet device polling and packet reception)
595577
// When in an interrupt, need to pass in a heap-allocated buffer

docs/conf.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,9 +54,9 @@
5454
# built documents.
5555
#
5656
# The short X.Y version.
57-
version = u'5.2.1'
57+
version = u'5.3.0'
5858
# The full version, including alpha/beta/rc tags.
59-
release = u'5.2.1'
59+
release = u'5.3.0'
6060

6161
# The language for content autogenerated by Sphinx. Refer to documentation
6262
# for a list of supported languages.

libraries/FatFSUSB/examples/Listfiles-USB/Listfiles-USB.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ void printDirectory(String dirName, int numTabs) {
7878
// no more files
7979
break;
8080
}
81-
for (uint8_t i = 0; i < numTabs; i++) {
81+
for (int i = 0; i < numTabs; i++) {
8282
Serial.print('\t');
8383
}
8484
Serial.print(dir.fileName());

libraries/PDM/src/rp2040/OpenPDMFilter.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ void convolve(uint32_t Signal[/* SignalLen */], unsigned short SignalLen,
140140
uint32_t Result[/* SignalLen + KernelLen - 1 */]) {
141141
uint16_t n;
142142

143-
for (n = 0; n < SignalLen + KernelLen - 1; n++) {
143+
for (n = 0; n < (uint16_t)(SignalLen + KernelLen - 1); n++) {
144144
unsigned short kmin, kmax, k;
145145

146146
Result[n] = 0;
@@ -222,7 +222,7 @@ void Open_PDM_Filter_64(uint8_t* data, int16_t* dataOut, uint16_t volume, TPDMFi
222222
uint8_t j = channels - 1;
223223
#endif
224224

225-
for (i = 0, data_out_index = 0; i < Param->nSamples; i++, data_out_index += channels) {
225+
for (i = 0, data_out_index = 0; i < (uint8_t)Param->nSamples; i++, data_out_index += channels) {
226226
#ifdef USE_LUT
227227
Z0 = filter_tables_64[j](data, 0);
228228
Z1 = filter_tables_64[j](data, 1);
@@ -269,7 +269,7 @@ void Open_PDM_Filter_128(uint8_t* data, int16_t* dataOut, uint16_t volume, TPDMF
269269
uint8_t j = channels - 1;
270270
#endif
271271

272-
for (i = 0, data_out_index = 0; i < Param->nSamples; i++, data_out_index += channels) {
272+
for (i = 0, data_out_index = 0; i < (uint8_t)Param->nSamples; i++, data_out_index += channels) {
273273
#ifdef USE_LUT
274274
Z0 = filter_tables_128[j](data, 0);
275275
Z1 = filter_tables_128[j](data, 1);

0 commit comments

Comments
 (0)