blob: c59f3717b72f7b7889b8f03a8ea37c29c94f8410 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
|
//go:build rak4631
package machine
const HasLowFrequencyCrystal = true
// Digital Pins
const (
D0 Pin = P0_28
D1 Pin = P0_02
)
// Analog pins
const (
A0 Pin = P0_17
A1 Pin = P1_02
A2 Pin = P0_21
)
// Onboard LEDs
const (
LED = LED2
LED1 = P1_03
LED2 = P1_04
)
// UART pins
const (
// Default to UART1
UART_RX_PIN = UART0_RX_PIN
UART_TX_PIN = UART0_TX_PIN
// UART1
UART0_RX_PIN = P0_19
UART0_TX_PIN = P0_20
// UART2
UART1_RX_PIN = P0_15
UART1_TX_PIN = P0_16
)
// I2C pins
const (
SDA_PIN = SDA1_PIN
SCL_PIN = SCL1_PIN
SDA1_PIN = P0_13
SCL1_PIN = P0_14
SDA2_PIN = P0_24
SCL2_PIN = P0_25
)
// SPI pins
const (
SPI0_SCK_PIN = P0_03
SPI0_SDO_PIN = P0_29
SPI0_SDI_PIN = P0_30
)
// Peripherals
const (
LORA_NSS = P1_10
LORA_SCK = P1_11
LORA_MOSI = P1_12
LORA_MISO = P1_13
LORA_BUSY = P1_14
LORA_DIO1 = P1_15
LORA_NRESET = P1_06
LORA_POWER = P1_05
)
// USB CDC identifiers
const (
usb_STRING_PRODUCT = "WisCore RAK4631 Board"
usb_STRING_MANUFACTURER = "RAKwireless"
)
var (
usb_VID uint16 = 0x239a
usb_PID uint16 = 0x8029
)
var (
DefaultUART = UART0
)
|