Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
arduino-pico
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
xpstem
arduino-pico
Commits
05233116
Unverified
Commit
05233116
authored
May 19, 2021
by
Earle F. Philhower, III
Committed by
GitHub
May 19, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix repo spelling issues (#152)
parent
4509e6cf
Changes
11
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
16 additions
and
13 deletions
+16
-13
.github/workflows/pull-request.yml
.github/workflows/pull-request.yml
+3
-0
cores/rp2040/Arduino.h
cores/rp2040/Arduino.h
+3
-3
docs/eeprom.rst
docs/eeprom.rst
+1
-1
docs/fs.rst
docs/fs.rst
+1
-1
docs/i2s.rst
docs/i2s.rst
+1
-1
libraries/Keyboard
libraries/Keyboard
+1
-1
libraries/LittleFS/src/lfs.c
libraries/LittleFS/src/lfs.c
+1
-1
libraries/SD/src/SD.h
libraries/SD/src/SD.h
+1
-1
libraries/Servo/src/Servo.cpp
libraries/Servo/src/Servo.cpp
+2
-2
libraries/Servo/src/Servo.h
libraries/Servo/src/Servo.h
+1
-1
tools/README.md
tools/README.md
+1
-1
No files found.
.github/workflows/pull-request.yml
View file @
05233116
...
...
@@ -21,3 +21,6 @@ jobs:
python-version
:
'
3.x'
-
name
:
Run codespell
uses
:
codespell-project/actions-codespell@master
with
:
skip
:
./pico-extras,./ArduinoCore-API,./libraries/SdFat,./libraries/Adafruit_TinyUSB_Arduino,./libraries/LittleFS/lib,./tools/pyserial,./pico-sdk,./.github,./docs/i2s.rst
ignore_words_list
:
ser,DOUT
cores/rp2040/Arduino.h
View file @
05233116
...
...
@@ -24,7 +24,7 @@
#include <stdint.h>
#include <stdlib.h>
#include <string.h>
// Wacky deprecated AVR compatibilty functions
// Wacky deprecated AVR compatibil
i
ty functions
#include "stdlib_noniso.h"
#include "api/ArduinoAPI.h"
...
...
@@ -45,7 +45,7 @@ extern "C"{
#define clockCyclesToMicroseconds(a) ( (a) / clockCyclesPerMicrosecond() )
#define microsecondsToClockCycles(a) ( (a) * clockCyclesPerMicrosecond() )
// Disable/reenable all interrupts. Safely handles nested disables
// Disable/re
-
enable all interrupts. Safely handles nested disables
void
interrupts
();
void
noInterrupts
();
...
...
@@ -53,7 +53,7 @@ void noInterrupts();
void
attachInterrupt
(
pin_size_t
pin
,
voidFuncPtr
callback
,
PinStatus
mode
);
void
detachInterrupt
(
pin_size_t
pin
);
// AVR compatibilty macros...naughty and accesses the HW directly
// AVR compatibil
i
ty macros...naughty and accesses the HW directly
#define digitalPinToPort(pin) (0)
#define digitalPinToBitMask(pin) (1UL << (pin))
#define digitalPinToTimer(pin) (0)
...
...
docs/eeprom.rst
View file @
05233116
...
...
@@ -4,7 +4,7 @@ EEPROM Library
While the Raspberry Pi Pico RP2040 does not come with an EEPROM onboard, we
simulate one by using a single 4K chunk of flash at the end of flash space.
**Note that this is a simulated EEPROM and will only support the num
e
ber of
**Note that this is a simulated EEPROM and will only support the number of
writes as the onboard flash chip, not the 100,000 or so of a real EEPROM.**
Therefore, do not frequently update the EEPROM or you may prematurely wear
out the flash.
...
...
docs/fs.rst
View file @
05233116
...
...
@@ -3,7 +3,7 @@ File Systems
The Arduino-Pico core supports using some of the onboard flash as a file
system, useful for storing configuration data, output strings, logging,
and more. It also supports using SD cards as another (FAT32) filesytem,
and more. It also supports using SD cards as another (FAT32) filesy
s
tem,
with an API that's compatible with the onboard flash file system.
...
...
docs/i2s.rst
View file @
05233116
...
...
@@ -47,7 +47,7 @@ the output will be changing.
size_t write(uint8_t)
~~~~~~~~~~~~~~~~~~~~~
Provided for compatibilty, but not very useful. Writes a sample from 0...255
Provided for compatibil
i
ty, but not very useful. Writes a sample from 0...255
to the I2S buffer. See ``write(int16_t)`` for a better one
size_t write(const uint8_t \*buffer, size_t size)
...
...
Keyboard
@
dcc1a556
Subproject commit
e8c1394e693fbd43af900205ddbe195efa59244a
Subproject commit
dcc1a556bffbb22a8f924b1e135394b99741f56d
libraries/LittleFS/src/lfs.c
View file @
05233116
// Can't place library in th
s
src/ directory, Arduino will attempt to build the tests/etc.
// Can't place library in th
e
src/ directory, Arduino will attempt to build the tests/etc.
// Just have a stub here that redirects to the actual source file
#pragma GCC diagnostic ignored "-Wmissing-field-initializers"
...
...
libraries/SD/src/SD.h
View file @
05233116
...
...
@@ -183,7 +183,7 @@ private:
};
// Expose FatStructs.h helpers for MSDOS date/time for use with dateTimeCallback
// Expose FatStructs.h helpers for MS
-
DOS date/time for use with dateTimeCallback
static
inline
uint16_t
FAT_DATE
(
uint16_t
year
,
uint8_t
month
,
uint8_t
day
)
{
return
(
year
-
1980
)
<<
9
|
month
<<
5
|
day
;
}
...
...
libraries/Servo/src/Servo.cpp
View file @
05233116
...
...
@@ -27,14 +27,14 @@
#include "servo.pio.h"
static
PIOProgram
_servoPgm
(
&
servo_program
);
//
simili
ar to map but will have increased accuracy that provides a more
//
Simil
ar to map but will have increased accuracy that provides a more
// symmetrical api (call it and use result to reverse will provide the original value)
int
improved_map
(
int
value
,
int
minIn
,
int
maxIn
,
int
minOut
,
int
maxOut
)
{
const
int
rangeIn
=
maxIn
-
minIn
;
const
int
rangeOut
=
maxOut
-
minOut
;
const
int
deltaIn
=
value
-
minIn
;
// fixed point math constants to improve accura
n
cy of divide and rounding
// fixed point math constants to improve accuracy of divide and rounding
constexpr
int
fixedHalfDecimal
=
1
;
constexpr
int
fixedDecimal
=
fixedHalfDecimal
*
2
;
...
...
libraries/Servo/src/Servo.h
View file @
05233116
...
...
@@ -46,7 +46,7 @@
// The following values are in us (microseconds).
// Since the defaults can be overwritten in the new attach() member function,
// they were modified from the Arduino AVR defaults to be in the safe range
// of public
al
ly available specifications. While this implies that many 180°
// of publicly available specifications. While this implies that many 180°
// servos do not operate the full 0° to 180° sweep using these, it also prevents
// unsuspecting damage. For Arduino AVR, the same change is being discussed.
#define DEFAULT_MIN_PULSE_WIDTH 1000 // uncalibrated default, the shortest duty cycle sent to a servo
...
...
tools/README.md
View file @
05233116
...
...
@@ -18,7 +18,7 @@ to get the board into update mode (1200bps connection).
Very dumb
`sed`
-like tool used by the platform scripts to generate the
linker
`.ld`
file (replacing the EEPROM location, FS sizes, etc.).
Because we run on Windows, Mac, and Linux, need to provide this and not
rely on exist
a
nce of
`sed`
command.
rely on exist
e
nce of
`sed`
command.
## pyserial
`git clone`
of the PySerial Python3 library to be used by the IDE.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment