Skip to content

Commit 37a6a36

Browse files
committed
RAK_PATCH_V2 update
1 parent 498b5a9 commit 37a6a36

File tree

11 files changed

+251
-47
lines changed

11 files changed

+251
-47
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
.pio
2+
.vscode/.browse.c_cpp.db*
3+
.vscode/c_cpp_properties.json
4+
.vscode/launch.json
5+
.vscode/ipch
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
// See http://go.microsoft.com/fwlink/?LinkId=827846
3+
// for the documentation about the extensions.json format
4+
"recommendations": [
5+
"platformio.platformio-ide"
6+
],
7+
"unwantedRecommendations": [
8+
"ms-vscode.cpptools-extension-pack"
9+
]
10+
}
Lines changed: 89 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,89 @@
1+
; PlatformIO Project Configuration File
2+
;
3+
; Build options: build flags, source filter
4+
; Upload options: custom upload port, speed and extra flags
5+
; Library options: dependencies, extra library storages
6+
; Advanced options: extra scripting
7+
;
8+
; Please visit documentation for the other options and examples
9+
; https://docs.platformio.org/page/projectconf.html
10+
[platformio]
11+
default_envs =
12+
rak4630
13+
rak11200
14+
rak3112
15+
rak11300
16+
boards_dir = rakwireless/boards
17+
18+
[common]
19+
build_flags =
20+
-D LIB_DEBUG=0 ; 0 Disable LoRaWAN debug output
21+
monitor_speed = 115200
22+
lib_deps =
23+
beegee-tokyo/SX126x-Arduino
24+
25+
[env:rak4630]
26+
platform = nordicnrf52
27+
board = rak4630
28+
framework = arduino
29+
build_src_filter = ${env.build_src_filter}+<../rakwireless/variants/rak4630>
30+
build_flags =
31+
${common.build_flags}
32+
-I rakwireless/variants/rak4630
33+
lib_deps =
34+
${common.lib_deps}
35+
36+
[env:rak11200]
37+
platform = espressif32
38+
board = rak11200
39+
framework = arduino
40+
board_build.partitions = huge_app.csv
41+
build_flags =
42+
${common.build_flags}
43+
-I rakwireless/variants/rak11200
44+
-DBOARD_HAS_PSRAM
45+
-mfix-esp32-psram-cache-issue
46+
lib_deps =
47+
${common.lib_deps}
48+
49+
[env:rak3112]
50+
platform = espressif32
51+
board = rak3112
52+
framework = arduino
53+
board_build.partitions = huge_app.csv
54+
build_flags =
55+
${common.build_flags}
56+
-I rakwireless/variants/rak3112
57+
-D _VARIANT_RAK3112_=1
58+
-DBOARD_HAS_PSRAM
59+
-mfix-esp32-psram-cache-issue
60+
lib_deps =
61+
${common.lib_deps}
62+
63+
[env:rak11300]
64+
platform = https://github.com/maxgerhardt/platform-raspberrypi
65+
board_build.core = earlephilhower
66+
board = rakwireless_rak11300
67+
framework = arduino
68+
build_flags =
69+
-D ARDUINO_RAKWIRELESS_RAK11300=1
70+
${common.build_flags}
71+
-D MY_DEBUG=1 ; 0 Disable application debug output
72+
; WisBlock definitions
73+
-I rakwireless/variants/rak11300
74+
-D WB_IO1=6
75+
-D WB_IO2=22
76+
-D WB_IO3=7
77+
-D WB_IO4=28
78+
-D WB_IO5=9
79+
-D WB_IO6=8
80+
-D WB_A0=26
81+
-D WB_A1=27
82+
-D PIN_LED1=23
83+
-D PIN_LED2=24
84+
-D LED_BUILTIN=23
85+
-D LED_CONN=24
86+
-D LED_GREEN=23
87+
-D LED_BLUE=24
88+
lib_deps =
89+
${common.lib_deps}

PlatformIO/RAK_PATCH_V2/examples/WisBlock-API-V2-Example/rakwireless/variants/rak3112/pins_arduino.h

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,11 @@
1212

1313
// GPIO's
1414
#define WB_IO1 21
15-
#define WB_IO2 2
16-
// #define WB_IO2 14
15+
#define WB_IO2 14
1716
#define WB_IO3 41
1817
#define WB_IO4 42
1918
#define WB_IO5 38
2019
#define WB_IO6 39
21-
// #define WB_SW1 35 NC
2220
#define WB_A0 1
2321
#define WB_A1 2
2422
#define WB_CS 12
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// Just for consistency, for RAK3112 ESP32-S3 all definitions are in the pins_arduino.h
22

33
#ifndef _VARIANT_RAK3112_
4-
#define _VARIANT_RAK3113_
4+
#define _VARIANT_RAK3112_
55
#endif
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
.pio
2+
.vscode/.browse.c_cpp.db*
3+
.vscode/c_cpp_properties.json
4+
.vscode/launch.json
5+
.vscode/ipch
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
// See http://go.microsoft.com/fwlink/?LinkId=827846
3+
// for the documentation about the extensions.json format
4+
"recommendations": [
5+
"platformio.platformio-ide"
6+
],
7+
"unwantedRecommendations": [
8+
"ms-vscode.cpptools-extension-pack"
9+
]
10+
}
Lines changed: 39 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -1,42 +1,42 @@
11
{
2-
"build": {
3-
"core": "arduino",
4-
"cpu": "cortex-m0plus",
5-
"extra_flags": "-D ARDUINO_RASPBERRY_PI_PICO -DARDUINO_ARCH_RP2040",
6-
"f_cpu": "133000000L",
7-
"hwids": [
8-
[
9-
"0x2E8A",
10-
"0x00C0"
11-
]
12-
],
13-
"mcu": "rp2040",
2+
"build": {
3+
"core": "arduino",
4+
"cpu": "cortex-m0plus",
5+
"extra_flags": "-D ARDUINO_RASPBERRY_PI_PICO -DARDUINO_ARCH_RP2040",
6+
"f_cpu": "133000000L",
7+
"hwids": [
8+
[
9+
"0x2E8A",
10+
"0x00C0"
11+
]
12+
],
13+
"mcu": "rp2040",
1414
"variant": "rak11300"
15-
},
16-
"debug": {
17-
"jlink_device": "RP2040_M0_0",
18-
"openocd_target": "rp2040.cfg",
19-
"svd_path": "rp2040.svd"
20-
},
21-
"frameworks": [
22-
"arduino"
23-
],
24-
"name": "WisBlock RAK11300",
25-
"upload": {
26-
"maximum_ram_size": 270336,
27-
"maximum_size": 2097152,
28-
"require_upload_port": true,
29-
"native_usb": true,
30-
"use_1200bps_touch": true,
31-
"wait_for_upload_port": false,
32-
"protocol": "picotool",
33-
"protocols": [
34-
"cmsis-dap",
35-
"jlink",
36-
"raspberrypi-swd",
37-
"picotool"
38-
]
39-
},
40-
"url": "https://docs.rakwireless.com/",
41-
"vendor": "RAKwireless"
15+
},
16+
"debug": {
17+
"jlink_device": "RP2040_M0_0",
18+
"openocd_target": "rp2040.cfg",
19+
"svd_path": "rp2040.svd"
20+
},
21+
"frameworks": [
22+
"arduino"
23+
],
24+
"name": "WisBlock RAK11300",
25+
"upload": {
26+
"maximum_ram_size": 270336,
27+
"maximum_size": 2097152,
28+
"require_upload_port": true,
29+
"native_usb": true,
30+
"use_1200bps_touch": true,
31+
"wait_for_upload_port": false,
32+
"protocol": "picotool",
33+
"protocols": [
34+
"cmsis-dap",
35+
"jlink",
36+
"raspberrypi-swd",
37+
"picotool"
38+
]
39+
},
40+
"url": "https://docs.rakwireless.com/",
41+
"vendor": "RAKwireless"
4242
}
Lines changed: 89 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,89 @@
1+
; PlatformIO Project Configuration File
2+
;
3+
; Build options: build flags, source filter
4+
; Upload options: custom upload port, speed and extra flags
5+
; Library options: dependencies, extra library storages
6+
; Advanced options: extra scripting
7+
;
8+
; Please visit documentation for the other options and examples
9+
; https://docs.platformio.org/page/projectconf.html
10+
[platformio]
11+
default_envs =
12+
rak4630
13+
rak11200
14+
rak3112
15+
rak11300
16+
boards_dir = rakwireless/boards
17+
18+
[common]
19+
build_flags =
20+
-D LIB_DEBUG=0 ; 0 Disable LoRaWAN debug output
21+
monitor_speed = 115200
22+
lib_deps =
23+
beegee-tokyo/SX126x-Arduino
24+
25+
[env:rak4630]
26+
platform = nordicnrf52
27+
board = rak4630
28+
framework = arduino
29+
build_src_filter = ${env.build_src_filter}+<../rakwireless/variants/rak4630>
30+
build_flags =
31+
${common.build_flags}
32+
-I rakwireless/variants/rak4630
33+
lib_deps =
34+
${common.lib_deps}
35+
36+
[env:rak11200]
37+
platform = espressif32
38+
board = rak11200
39+
framework = arduino
40+
board_build.partitions = huge_app.csv
41+
build_flags =
42+
${common.build_flags}
43+
-I rakwireless/variants/rak11200
44+
-DBOARD_HAS_PSRAM
45+
-mfix-esp32-psram-cache-issue
46+
lib_deps =
47+
${common.lib_deps}
48+
49+
[env:rak3112]
50+
platform = espressif32
51+
board = rak3112
52+
framework = arduino
53+
board_build.partitions = huge_app.csv
54+
build_flags =
55+
${common.build_flags}
56+
-I rakwireless/variants/rak3112
57+
-D _VARIANT_RAK3112_=1
58+
-DBOARD_HAS_PSRAM
59+
-mfix-esp32-psram-cache-issue
60+
lib_deps =
61+
${common.lib_deps}
62+
63+
[env:rak11300]
64+
platform = https://github.com/maxgerhardt/platform-raspberrypi
65+
board_build.core = earlephilhower
66+
board = rakwireless_rak11300
67+
framework = arduino
68+
build_flags =
69+
-D ARDUINO_RAKWIRELESS_RAK11300=1
70+
${common.build_flags}
71+
-D MY_DEBUG=1 ; 0 Disable application debug output
72+
; WisBlock definitions
73+
-I rakwireless/variants/rak11300
74+
-D WB_IO1=6
75+
-D WB_IO2=22
76+
-D WB_IO3=7
77+
-D WB_IO4=28
78+
-D WB_IO5=9
79+
-D WB_IO6=8
80+
-D WB_A0=26
81+
-D WB_A1=27
82+
-D PIN_LED1=23
83+
-D PIN_LED2=24
84+
-D LED_BUILTIN=23
85+
-D LED_CONN=24
86+
-D LED_GREEN=23
87+
-D LED_BLUE=24
88+
lib_deps =
89+
${common.lib_deps}

PlatformIO/RAK_PATCH_V2/examples/WisBlock-LoRaWAN-OTAA/rakwireless/variants/rak3112/pins_arduino.h

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,11 @@
1212

1313
// GPIO's
1414
#define WB_IO1 21
15-
#define WB_IO2 2
16-
// #define WB_IO2 14
15+
#define WB_IO2 14
1716
#define WB_IO3 41
1817
#define WB_IO4 42
1918
#define WB_IO5 38
2019
#define WB_IO6 39
21-
// #define WB_SW1 35 NC
2220
#define WB_A0 1
2321
#define WB_A1 2
2422
#define WB_CS 12

0 commit comments

Comments
 (0)