|
1 | | -[picow] |
| 1 | +[rpi_picow] |
2 | 2 | extends = rp2040_base |
3 | 3 | platform = https://github.com/maxgerhardt/platform-raspberrypi.git |
4 | 4 | board = rpipicow |
5 | 5 | board_build.core = earlephilhower |
6 | 6 | board_build.filesystem_size = 0.5m |
7 | 7 | build_flags = ${rp2040_base.build_flags} |
8 | | - -I variants/picow |
| 8 | + -I variants/rpi_picow |
9 | 9 | ; -D PICOW |
10 | 10 | ; -D HW_SPI1_DEVICE |
| 11 | + -D P_LORA_DIO_1=20 |
| 12 | + -D P_LORA_NSS=3 |
| 13 | + -D P_LORA_RESET=15 |
| 14 | + -D P_LORA_BUSY=2 |
| 15 | + -D P_LORA_SCLK=10 |
| 16 | + -D P_LORA_MISO=12 |
| 17 | + -D P_LORA_MOSI=11 |
| 18 | + -D SX126X_DIO2_AS_RF_SWITCH=true |
| 19 | + -D SX126X_DIO3_TCXO_VOLTAGE=1.8 |
11 | 20 | -D SX126X_CURRENT_LIMIT=130 |
| 21 | + -D SX126X_RX_BOOSTED_GAIN=1 |
| 22 | + -D LORA_TX_POWER=22 |
12 | 23 | -D RADIO_CLASS=CustomSX1262 |
13 | 24 | -D WRAPPER_CLASS=CustomSX1262Wrapper |
14 | | - -D LORA_TX_POWER=22 |
15 | | - -D SX126X_RX_BOOSTED_GAIN=1 |
16 | 25 | build_src_filter = ${rp2040_base.build_src_filter} |
17 | | - +<helpers/rp2040/PicoWBoard.cpp> |
18 | | - +<../variants/picow> |
| 26 | + +<PicoWBoard.cpp> |
| 27 | + +<../variants/rpi_picow> |
19 | 28 | lib_deps = ${rp2040_base.lib_deps} |
20 | 29 |
|
21 | 30 | [env:PicoW_Repeater] |
22 | | -extends = picow |
23 | | -build_flags = ${picow.build_flags} |
| 31 | +extends = rpi_picow |
| 32 | +build_flags = ${rpi_picow.build_flags} |
24 | 33 | -D ADVERT_NAME='"PicoW Repeater"' |
25 | 34 | -D ADVERT_LAT=0.0 |
26 | 35 | -D ADVERT_LON=0.0 |
27 | 36 | -D ADMIN_PASSWORD='"password"' |
28 | 37 | -D MAX_NEIGHBOURS=8 |
29 | 38 | ; -D MESH_PACKET_LOGGING=1 |
30 | 39 | ; -D MESH_DEBUG=1 |
31 | | -build_src_filter = ${picow.build_src_filter} |
| 40 | +build_src_filter = ${rpi_picow.build_src_filter} |
32 | 41 | +<../examples/simple_repeater> |
33 | 42 |
|
34 | 43 | [env:PicoW_room_server] |
35 | | -extends = picow |
36 | | -build_flags = ${picow.build_flags} |
| 44 | +extends = rpi_picow |
| 45 | +build_flags = ${rpi_picow.build_flags} |
37 | 46 | -D ADVERT_NAME='"Test Room"' |
38 | 47 | -D ADVERT_LAT=0.0 |
39 | 48 | -D ADVERT_LON=0.0 |
40 | 49 | -D ADMIN_PASSWORD='"password"' |
41 | 50 | -D ROOM_PASSWORD='"hello"' |
42 | 51 | ; -D MESH_PACKET_LOGGING=1 |
43 | 52 | ; -D MESH_DEBUG=1 |
44 | | -build_src_filter = ${picow.build_src_filter} |
| 53 | +build_src_filter = ${rpi_picow.build_src_filter} |
45 | 54 | +<../examples/simple_room_server> |
46 | 55 |
|
47 | 56 | [env:PicoW_companion_radio_usb] |
48 | | -extends = picow |
49 | | -build_flags = ${picow.build_flags} |
| 57 | +extends = rpi_picow |
| 58 | +build_flags = ${rpi_picow.build_flags} |
50 | 59 | -D MAX_CONTACTS=100 |
51 | 60 | -D MAX_GROUP_CHANNELS=8 |
52 | 61 | ; NOTE: DO NOT ENABLE --> -D MESH_PACKET_LOGGING=1 |
53 | 62 | ; NOTE: DO NOT ENABLE --> -D MESH_DEBUG=1 |
54 | | -build_src_filter = ${picow.build_src_filter} |
| 63 | +build_src_filter = ${rpi_picow.build_src_filter} |
55 | 64 | +<../examples/companion_radio/*.cpp> |
56 | | -lib_deps = ${picow.lib_deps} |
| 65 | +lib_deps = ${rpi_picow.lib_deps} |
57 | 66 | densaugeo/base64 @ ~1.4.0 |
58 | 67 |
|
59 | 68 | ; [env:PicoW_companion_radio_ble] |
60 | | -; extends = picow |
61 | | -; build_flags = ${picow.build_flags} |
| 69 | +; extends = rpi_picow |
| 70 | +; build_flags = ${rpi_picow.build_flags} |
62 | 71 | ; -D MAX_CONTACTS=100 |
63 | 72 | ; -D MAX_GROUP_CHANNELS=8 |
64 | 73 | ; -D BLE_PIN_CODE=123456 |
65 | 74 | ; -D BLE_DEBUG_LOGGING=1 |
66 | 75 | ; ; -D MESH_PACKET_LOGGING=1 |
67 | 76 | ; ; -D MESH_DEBUG=1 |
68 | | -; build_src_filter = ${picow.build_src_filter} |
| 77 | +; build_src_filter = ${rpi_picow.build_src_filter} |
69 | 78 | ; +<../examples/companion_radio/*.cpp> |
70 | | -; lib_deps = ${picow.lib_deps} |
| 79 | +; lib_deps = ${rpi_picow.lib_deps} |
71 | 80 | ; densaugeo/base64 @ ~1.4.0 |
72 | 81 |
|
73 | 82 | ; [env:PicoW_companion_radio_wifi] |
74 | | -; extends = picow |
75 | | -; build_flags = ${picow.build_flags} |
| 83 | +; extends = rpi_picow |
| 84 | +; build_flags = ${rpi_picow.build_flags} |
76 | 85 | ; -D MAX_CONTACTS=100 |
77 | 86 | ; -D MAX_GROUP_CHANNELS=8 |
78 | 87 | ; -D WIFI_DEBUG_LOGGING=1 |
79 | 88 | ; -D WIFI_SSID='"myssid"' |
80 | 89 | ; -D WIFI_PWD='"mypwd"' |
81 | 90 | ; ; -D MESH_PACKET_LOGGING=1 |
82 | 91 | ; ; -D MESH_DEBUG=1 |
83 | | -; build_src_filter = ${picow.build_src_filter} |
| 92 | +; build_src_filter = ${rpi_picow.build_src_filter} |
84 | 93 | ; +<../examples/companion_radio/*.cpp> |
85 | | -; lib_deps = ${picow.lib_deps} |
| 94 | +; lib_deps = ${rpi_picow.lib_deps} |
86 | 95 | ; densaugeo/base64 @ ~1.4.0 |
87 | 96 |
|
88 | 97 | [env:PicoW_terminal_chat] |
89 | | -extends = picow |
90 | | -build_flags = ${picow.build_flags} |
| 98 | +extends = rpi_picow |
| 99 | +build_flags = ${rpi_picow.build_flags} |
91 | 100 | -D MAX_CONTACTS=100 |
92 | 101 | -D MAX_GROUP_CHANNELS=1 |
93 | 102 | ; -D MESH_PACKET_LOGGING=1 |
94 | 103 | ; -D MESH_DEBUG=1 |
95 | | -build_src_filter = ${picow.build_src_filter} |
| 104 | +build_src_filter = ${rpi_picow.build_src_filter} |
96 | 105 | +<../examples/simple_secure_chat/main.cpp> |
97 | | -lib_deps = ${picow.lib_deps} |
| 106 | +lib_deps = ${rpi_picow.lib_deps} |
98 | 107 | densaugeo/base64 @ ~1.4.0 |
0 commit comments