Skip to content

Commit 9fb3c39

Browse files
authored
Added GeeekPi RP2040 Plus (#3085)
1 parent af094bb commit 9fb3c39

File tree

199 files changed

+11469
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

199 files changed

+11469
-0
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ Read the [Contributing Guide](https://github.com/earlephilhower/arduino-pico/blo
5454
* ElectronicCats Hunter Cat NFC
5555
* EVN Alpha
5656
* ExtremeElectronics RC2040
57+
* GeeekPi RP2040 Plus
5758
* GroundStudio Marble Pico
5859
* Invector Labs Challenger RP2040 WiFi
5960
* Invector Labs Challenger RP2040 WiFi/BLE

boards.txt

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

package/package_pico_index.template.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -173,6 +173,9 @@
173173
{
174174
"name": "ExtremeElectronics RC2040"
175175
},
176+
{
177+
"name": "GeeekPi RP2040 Plus"
178+
},
176179
{
177180
"name": "GroundStudio Marble Pico"
178181
},

system 2/placeholder

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
placeholder

tests 2/astyle_core.conf

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
# Code formatting rules for Arduino examples, taken from:
2+
#
3+
# https://github.com/arduino/Arduino/blob/master/build/shared/examples_formatter.conf
4+
#
5+
6+
mode=c
7+
lineend=linux
8+
style=java
9+
10+
# 4 spaces indentation
11+
indent=spaces=4
12+
13+
# also indent macros
14+
#indent-preprocessor
15+
16+
# indent classes, switches (and cases), comments starting at column 1
17+
indent-col1-comments
18+
19+
# put a space around operators
20+
pad-oper
21+
22+
# put a space after if/for/while
23+
pad-header
24+
25+
# if you like one-liners, keep them
26+
keep-one-line-statements
27+
28+
attach-closing-while
29+
unpad-paren
30+
pad-oper
31+
remove-comment-prefix
32+
add-braces

tests 2/astyle_examples.conf

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
# Code formatting rules for Arduino examples, taken from:
2+
#
3+
# https://github.com/arduino/Arduino/blob/master/build/shared/examples_formatter.conf
4+
#
5+
6+
mode=c
7+
lineend=linux
8+
9+
# 2 spaces indentation
10+
indent=spaces=2
11+
12+
# also indent macros
13+
#indent-preprocessor
14+
15+
# indent classes, switches (and cases), comments starting at column 1
16+
indent-classes
17+
indent-switches
18+
indent-cases
19+
indent-col1-comments
20+
21+
# put a space around operators
22+
pad-oper
23+
24+
# put a space after if/for/while
25+
pad-header
26+
27+
# if you like one-liners, keep them
28+
keep-one-line-statements
29+
add-braces
30+
31+
style=java
32+
attach-namespaces
33+
attach-classes
34+
attach-inlines
35+
attach-extern-c
36+
indent-modifiers
37+
indent-namespaces
38+
indent-labels
39+
#indent-preproc-block
40+
#indent-preproc-define
41+
#indent-preproc-cond
42+
unpad-paren
43+
add-braces
44+
remove-comment-prefix

tests 2/build-rp2350-riscv.sh

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
#!/usr/bin/env bash
2+
3+
cache_dir=$(mktemp -d)
4+
5+
source "$GITHUB_WORKSPACE"/tests/common.sh
6+
7+
if [ -z "$BUILD_PARITY" ]; then
8+
mod=1
9+
rem=0
10+
elif [ "$BUILD_PARITY" = "even" ]; then
11+
mod=2
12+
rem=0
13+
elif [ "$BUILD_PARITY" = "odd" ]; then
14+
mod=2
15+
rem=1
16+
fi
17+
export FQBN=pico:rp2040:rpipico2:flash=4194304_0,arch=riscv,freq=150,opt=Small,rtti=Disabled,stackprotect=Disabled,exceptions=Disabled,dbgport=Disabled,dbglvl=None,usbstack=picosdk,ipbtstack=ipv4only,uploadmethod=default
18+
export PICO_BOARD=rp2350
19+
20+
install_arduino nodebug
21+
build_sketches_with_arduino "$mod" "$rem" ""
22+
23+
rm -rf "$cache_dir"

tests 2/build-rp2350.sh

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
#!/usr/bin/env bash
2+
3+
cache_dir=$(mktemp -d)
4+
5+
source "$GITHUB_WORKSPACE"/tests/common.sh
6+
7+
if [ -z "$BUILD_PARITY" ]; then
8+
mod=1
9+
rem=0
10+
elif [ "$BUILD_PARITY" = "even" ]; then
11+
mod=2
12+
rem=0
13+
elif [ "$BUILD_PARITY" = "odd" ]; then
14+
mod=2
15+
rem=1
16+
fi
17+
18+
export FQBN=pico:rp2040:rpipico2:flash=4194304_0,arch=arm,freq=150,opt=Small,rtti=Disabled,stackprotect=Disabled,exceptions=Disabled,dbgport=Disabled,dbglvl=None,usbstack=picosdk,ipbtstack=ipv4only,uploadmethod=default
19+
export PICO_BOARD=rp2350
20+
21+
install_arduino nodebug
22+
build_sketches_with_arduino "$mod" "$rem" ""
23+
24+
rm -rf "$cache_dir"

tests 2/build-tinyusb.sh

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
#!/usr/bin/env bash
2+
3+
cache_dir=$(mktemp -d)
4+
5+
source "$GITHUB_WORKSPACE"/tests/common.sh
6+
7+
install_arduino nodebug
8+
9+
# Replace the skip function to only build TinyUSB tests
10+
function skip_ino()
11+
{
12+
local ino=$1
13+
local skiplist=""
14+
echo $ino | grep -q Adafruit_TinyUSB_Arduino
15+
if [ $? -eq 0 ]; then
16+
# Add items to the following list with "\n" netween them to skip running. No spaces, tabs, etc. allowed
17+
read -d '' skiplist << EOL || true
18+
/mouse_external_flash/
19+
/hid_keyboard/
20+
/msc_external_flash/
21+
/msc_external_flash_sdcard/
22+
/msc_internal_flash_samd/
23+
/msc_sd/
24+
/msc_sdfat/
25+
/midi_pizza_box_dj/
26+
/msc_esp32_file_browser/
27+
/DualRole/
28+
/Host/
29+
EOL
30+
echo $ino | grep -q -F "$skiplist"
31+
echo $(( 1 - $? ))
32+
else
33+
echo 1
34+
fi
35+
}
36+
build_sketches_with_arduino 1 0 "--usbstack tinyusb"
37+
38+
rm -rf "$cache_dir"
39+

tests 2/build.sh

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
#!/usr/bin/env bash
2+
3+
cache_dir=$(mktemp -d)
4+
5+
source "$GITHUB_WORKSPACE"/tests/common.sh
6+
7+
if [ -z "$BUILD_PARITY" ]; then
8+
mod=1
9+
rem=0
10+
elif [ "$BUILD_PARITY" = "even" ]; then
11+
mod=2
12+
rem=0
13+
elif [ "$BUILD_PARITY" = "odd" ]; then
14+
mod=2
15+
rem=1
16+
fi
17+
18+
export PICO_BOARD=rp2040
19+
20+
install_arduino nodebug
21+
build_sketches_with_arduino "$mod" "$rem" ""
22+
23+
rm -rf "$cache_dir"

0 commit comments

Comments
 (0)