Skip to content

Commit acae662

Browse files
Merge branch 'master' into freertosrp2350
2 parents 63bee94 + 50cb174 commit acae662

File tree

22 files changed

+172
-28
lines changed

22 files changed

+172
-28
lines changed

.github/workflows/pull-request.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,11 +187,16 @@ jobs:
187187
mod: 500
188188
rem: 1
189189
run: |
190+
brew update
191+
brew install bash
192+
/usr/bin/env bash --version
190193
uname -a
191194
cd pico-sdk
192195
git submodule update --init
193196
cd ..
194-
bash ./tests/build.sh
197+
/usr/bin/env bash ./tests/build.sh
198+
./system/picotool/picotool version
199+
otool -L ./system/picotool/picotool
195200
196201
# Build a few examples with PlatformIO to test if integration works
197202
build-platformio:

cores/rp2040/wiring_private.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,9 @@
2525
#include <map>
2626

2727
// Support nested IRQ disable/re-enable
28+
#ifndef maxIRQs
2829
#define maxIRQs 15
30+
#endif
2931
static uint32_t _irqStackTop[2] = { 0, 0 };
3032
static uint32_t _irqStack[2][maxIRQs];
3133

docs/digital.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ Board-Specific Pins
66
The Raspberry Pi Pico RP2040 chip supports up to 30 digital I/O pins,
77
however not all boards provide access to all pins.
88

9+
Pin Notation
10+
------------
11+
When using Analog or Digital I/Os, if you supply an integer it specifies the RP2040 GPIO pin to use. Using Dx or Ax notation (for example, D4 or A3) may be necessary on boards without a direct PCB pin to GPIO mapping.
12+
913
Input Modes
1014
-----------
1115
The Raspberry Pi Pico has 3 Input modes settings for use with `pinMode`: `INPUT`, `INPUT_PULLUP` and `INPUT_PULLDOWN`

docs/fs.rst

Lines changed: 9 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -92,8 +92,9 @@ LittleFS File System Limitations
9292
--------------------------------
9393

9494
The LittleFS implementation for the RP2040 supports filenames of up
95-
to 31 characters + terminating zero (i.e. ``char filename[32]``), and
96-
as many subdirectories as space permits.
95+
to 254 characters + terminating zero (i.e. ``char filename[255]`` or
96+
better ``char filename[LFS_NAME_MAX]`` ), and as many subdirectories
97+
as space permits.
9798

9899
Filenames are assumed to be in the root directory if no initial "/" is
99100
present.
@@ -372,8 +373,8 @@ rename
372373
Renames file from ``pathFrom`` to ``pathTo``. Paths must be absolute.
373374
Returns *true* if file was renamed successfully.
374375

375-
info **DEPRECATED**
376-
~~~~~~~~~~~~~~~~~~~~
376+
info
377+
~~~~
377378

378379
.. code:: cpp
379380
@@ -382,18 +383,17 @@ info **DEPRECATED**
382383
383384
Fills `FSInfo structure <#filesystem-information-structure>`__ with
384385
information about the file system. Returns ``true`` if successful,
385-
``false`` otherwise. Because this cannot report information about
386-
filesystemd greater than 4MB, don't use it in new code. Use ``info64``
387-
instead which uses 64-bit fields for filesystem sizes.
386+
``false`` otherwise. ``ìnfo()`` has been updated to support filesystems
387+
greater than 4GB and ``FSInfo64`` and ``info64()`` have been discarded.
388388

389389
Filesystem information structure
390390
--------------------------------
391391

392392
.. code:: cpp
393393
394394
struct FSInfo {
395-
size_t totalBytes;
396-
size_t usedBytes;
395+
uint64_t totalBytes;
396+
uint64_t usedBytes;
397397
size_t blockSize;
398398
size_t pageSize;
399399
size_t maxOpenFiles;
@@ -408,19 +408,6 @@ block size - ``pageSize`` — filesystem logical page size - ``maxOpenFiles``
408408
``maxPathLength`` — max file name length (including one byte for zero
409409
termination)
410410

411-
info64
412-
~~~~~~
413-
414-
.. code:: cpp
415-
416-
FSInfo64 fsinfo;
417-
SDFS.info64(fsinfo);
418-
or LittleFS.info64(fsinfo);
419-
420-
Performs the same operation as ``info`` but allows for reporting greater than
421-
4GB for filesystem size/used/etc. Should be used with the SD and SDFS
422-
filesystems since most SD cards today are greater than 4GB in size.
423-
424411
setTimeCallback(time_t (\*cb)(void))
425412
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
426413

docs/servo.rst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,10 @@ require the use of a PIO machine.
1111
See the Arduino standard
1212
`Servo documentation <https://www.arduino.cc/reference/en/libraries/servo/>`_
1313
for detailed usage instructions. There is also an included ``sweep`` example.
14+
15+
Pulse Width Defaults
16+
--------------------
17+
The defaults in the Servo library are conservatively set to avoid damage in the case of over-driving. The pulse widths individual servos, especially the no-name or clones, occasionally need tweaking.
18+
19+
You can set the min and max servo pulse width in the attach command, with default values used in most Arduino cores of 540/2400:
20+
```myServo.attach(D3, 540, 2400)```

lib/rp2040/libipv4-big.a

14.7 KB
Binary file not shown.

lib/rp2040/libipv4-bt-big.a

14.7 KB
Binary file not shown.

lib/rp2040/libipv4-bt.a

14.7 KB
Binary file not shown.

lib/rp2040/libipv4-ipv6-big.a

14.8 KB
Binary file not shown.

lib/rp2040/libipv4-ipv6-bt-big.a

14.8 KB
Binary file not shown.

0 commit comments

Comments
 (0)