Skip to content

Commit 361a366

Browse files
Merge branch 'freesanity' of https://github.com/earlephilhower/arduino-pico into freesanity
2 parents b0e272e + 224ddd1 commit 361a366

File tree

15 files changed

+537
-21
lines changed

15 files changed

+537
-21
lines changed

.github/workflows/pull-request.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ name: Arduino-Pico CI
55

66
on:
77
pull_request:
8+
workflow_dispatch:
89

910
jobs:
1011

boards.txt

Lines changed: 345 additions & 0 deletions
Large diffs are not rendered by default.

cores/rp2040/RP2040Version.h

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

cores/rp2040/lwip_wrap.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -250,9 +250,6 @@ extern "C" {
250250
return __real_tcp_bind_netif(pcb, netif);
251251
}
252252

253-
254-
255-
256253
extern struct tcp_pcb *__real_tcp_listen_with_backlog(struct tcp_pcb *pcb, u8_t backlog);
257254
struct tcp_pcb *__wrap_tcp_listen_with_backlog(struct tcp_pcb *pcb, u8_t backlog) {
258255
#ifdef __FREERTOS

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'4.7.0'
57+
version = u'4.7.1'
5858
# The full version, including alpha/beta/rc tags.
59-
release = u'4.7.0'
59+
release = u'4.7.1'
6060

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

libraries/AudioBufferManager/src/AudioBufferManager.cpp

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ bool AudioBufferManager::write(uint32_t v, bool sync) {
170170
if (!_running || !_isOutput) {
171171
return false;
172172
}
173-
AudioBuffer ** volatile p = (AudioBuffer ** volatile)&_empty;
173+
AudioBuffer ** volatile p = &_empty;
174174
if (!*p) {
175175
if (!sync) {
176176
return false;
@@ -195,7 +195,7 @@ size_t AudioBufferManager::write(const uint32_t *v, size_t words, bool sync) {
195195
return 0;
196196
}
197197
while (words) {
198-
AudioBuffer ** volatile p = (AudioBuffer ** volatile)&_empty;
198+
AudioBuffer ** volatile p = &_empty;
199199
if (!*p) {
200200
if (!sync) {
201201
return written;
@@ -225,7 +225,7 @@ bool AudioBufferManager::read(uint32_t *v, bool sync) {
225225
return false;
226226
}
227227

228-
AudioBuffer ** volatile p = (AudioBuffer ** volatile)&_filled;
228+
AudioBuffer ** volatile p = &_filled;
229229
if (!*p) {
230230
if (!sync) {
231231
return false;
@@ -251,7 +251,7 @@ size_t AudioBufferManager::read(uint32_t *v, size_t words, bool sync) {
251251
return 0;
252252
}
253253
while (words) {
254-
AudioBuffer ** volatile p = (AudioBuffer ** volatile)&_filled;
254+
AudioBuffer ** volatile p = &_filled;
255255
if (!*p) {
256256
if (!sync) {
257257
return read;
@@ -302,10 +302,10 @@ int AudioBufferManager::available() {
302302
}
303303

304304
void AudioBufferManager::flush() {
305-
AudioBuffer ** volatile a = (AudioBuffer ** volatile)&_active[0];
306-
AudioBuffer ** volatile b = (AudioBuffer ** volatile)&_active[1];
307-
AudioBuffer ** volatile c = (AudioBuffer ** volatile)&_filled;
308-
while (*c && (*b != (AudioBuffer * volatile)_silence) && (*a != (AudioBuffer * volatile)_silence)) {
305+
AudioBuffer ** volatile a = &_active[0];
306+
AudioBuffer ** volatile b = &_active[1];
307+
AudioBuffer ** volatile c = &_filled;
308+
while (*c && (*b != _silence) && (*a != _silence)) {
309309
// busy wait until all user written data enroute
310310
}
311311
}

libraries/SPISlave/src/SPISlave.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -167,14 +167,14 @@ void SPISlaveClass::_handleIRQ() {
167167
_recvCB(buff, cnt);
168168
}
169169
// Attempt to send as many bytes to the TX FIFO as we have/are free
170-
while (spi_is_writable(_spi)) {
170+
do {
171171
for (; _dataLeft && spi_is_writable(_spi); _dataLeft--) {
172172
spi_get_hw(_spi)->dr = *(_dataOut++);
173173
}
174174
if (!_dataLeft && _sentCB) {
175175
_sentCB();
176176
}
177-
}
177+
} while (spi_is_writable(_spi) & _dataLeft);
178178
// Disable the TX FIFO IRQ if there is still no data to send or we'd always be stuck in an IRQ
179179
// Will be re-enabled once user does a setData
180180
if (!_dataLeft) {

libraries/SdFat

Submodule SdFat updated 260 files

libraries/WiFi/src/WiFiMulti.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ bool WiFiMulti::addAP(const char *ssid, const char *pass) {
5353
} else {
5454
ap.pass = nullptr;
5555
}
56-
DEBUGV("[WIFIMULTI] Adding: '%s' %s' to list\n", ap.ssid, ap.pass);
56+
DEBUGV("[WIFIMULTI] Adding: '%s' '%s' to list\n", ap.ssid, ap.pass);
5757
_list.push_front(ap);
5858
return true;
5959
}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "framework-arduinopico",
3-
"version": "1.40700.0",
3+
"version": "1.40701.0",
44
"description": "Arduino Wiring-based Framework (RPi Pico RP2040, RP2350)",
55
"keywords": [
66
"framework",

0 commit comments

Comments
 (0)