Skip to content

Commit 3d746b3

Browse files
authored
Add SparkFun IoT Node LoRaWAN board (#2143)
1 parent 25069f5 commit 3d746b3

File tree

1 file changed

+88
-0
lines changed

1 file changed

+88
-0
lines changed
Lines changed: 88 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,88 @@
1+
/*
2+
* Copyright (c) 2024 Raspberry Pi (Trading) Ltd.
3+
*
4+
* SPDX-License-Identifier: BSD-3-Clause
5+
*/
6+
7+
// -----------------------------------------------------
8+
// NOTE: THIS HEADER IS ALSO INCLUDED BY ASSEMBLER SO
9+
// SHOULD ONLY CONSIST OF PREPROCESSOR DIRECTIVES
10+
// -----------------------------------------------------
11+
// Board definition for the SparkFun IoT Node LoRaWAN
12+
//
13+
// This header may be included by other board headers as "boards/sparkfun_iotnode_lorawan_rp2350.h"
14+
15+
// pico_cmake_set PICO_PLATFORM=rp2350
16+
17+
#ifndef _BOARDS_SPARKFUN_IOTNODE_LORAWAN_RP2350_H
18+
#define _BOARDS_SPARKFUN_IOTNODE_LORAWAN_RP2350_H
19+
20+
// For board detection
21+
#define SPARKFUN_IOTNODE_LORAWAN_RP2350
22+
23+
// --- RP2350 VARIANT ---
24+
#define PICO_RP2350A 1
25+
26+
// --- UART ---
27+
#ifndef PICO_DEFAULT_UART
28+
#define PICO_DEFAULT_UART 0
29+
#endif
30+
#ifndef PICO_DEFAULT_UART_TX_PIN
31+
#define PICO_DEFAULT_UART_TX_PIN 18
32+
#endif
33+
#ifndef PICO_DEFAULT_UART_RX_PIN
34+
#define PICO_DEFAULT_UART_RX_PIN 19
35+
#endif
36+
37+
// --- LED ---
38+
#ifndef PICO_DEFAULT_WS2812_PIN
39+
#define PICO_DEFAULT_WS2812_PIN 25
40+
#endif
41+
42+
// --- I2C ---
43+
#ifndef PICO_DEFAULT_I2C
44+
#define PICO_DEFAULT_I2C 0
45+
#endif
46+
#ifndef PICO_DEFAULT_I2C_SDA_PIN
47+
#define PICO_DEFAULT_I2C_SDA_PIN 20
48+
#endif
49+
#ifndef PICO_DEFAULT_I2C_SCL_PIN
50+
#define PICO_DEFAULT_I2C_SCL_PIN 21
51+
#endif
52+
53+
// --- SPI ---
54+
#ifndef PICO_DEFAULT_SPI
55+
#define PICO_DEFAULT_SPI 1
56+
#endif
57+
#ifndef PICO_DEFAULT_SPI_SCK_PIN
58+
#define PICO_DEFAULT_SPI_SCK_PIN 14
59+
#endif
60+
#ifndef PICO_DEFAULT_SPI_TX_PIN
61+
#define PICO_DEFAULT_SPI_TX_PIN 15
62+
#endif
63+
#ifndef PICO_DEFAULT_SPI_RX_PIN
64+
#define PICO_DEFAULT_SPI_RX_PIN 12
65+
#endif
66+
#ifndef PICO_DEFAULT_SPI_CSN_PIN
67+
#define PICO_DEFAULT_SPI_CSN_PIN 13
68+
#endif
69+
70+
// --- FLASH ---
71+
72+
#define PICO_BOOT_STAGE2_CHOOSE_W25Q080 1
73+
74+
#ifndef PICO_FLASH_SPI_CLKDIV
75+
#define PICO_FLASH_SPI_CLKDIV 2
76+
#endif
77+
78+
// pico_cmake_set_default PICO_FLASH_SIZE_BYTES = (16 * 1024 * 1024)
79+
#ifndef PICO_FLASH_SIZE_BYTES
80+
#define PICO_FLASH_SIZE_BYTES (16 * 1024 * 1024)
81+
#endif
82+
83+
// pico_cmake_set_default PICO_RP2350_A2_SUPPORTED = 1
84+
#ifndef PICO_RP2350_A2_SUPPORTED
85+
#define PICO_RP2350_A2_SUPPORTED 1
86+
#endif
87+
88+
#endif

0 commit comments

Comments
 (0)