forked from tinygo-org/tinygo
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
reelboard: support Reel Board (nrf52840 dev board)
Signed-off-by: Ron Evans <[email protected]>
- Loading branch information
1 parent
8f35a47
commit 8325f2a
Showing
5 changed files
with
54 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
// +build reelboard | ||
|
||
package machine | ||
|
||
const HasLowFrequencyCrystal = true | ||
|
||
// LEDs on the reel board | ||
const ( | ||
LED = LED1 | ||
LED1 = LED_YELLOW | ||
LED2 = LED_RED | ||
LED3 = LED_GREEN | ||
LED4 = LED_BLUE | ||
LED_RED = 11 | ||
LED_GREEN = 12 | ||
LED_BLUE = 41 | ||
LED_YELLOW = 13 | ||
) | ||
|
||
// User "a" button on the reel board | ||
const ( | ||
BUTTON = 7 | ||
) | ||
|
||
// UART pins | ||
const ( | ||
UART_TX_PIN = 6 | ||
UART_RX_PIN = 8 | ||
) | ||
|
||
// I2C pins | ||
const ( | ||
SDA_PIN = 26 | ||
SCL_PIN = 27 | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ | ||
"inherits": ["nrf52840"], | ||
"build-tags": ["reelboard"], | ||
"flash": "openocd -f interface/cmsis-dap.cfg -f target/nrf51.cfg -c 'program {hex} reset exit'", | ||
"ocd-daemon": ["openocd", "-f", "interface/cmsis-dap.cfg", "-f", "target/nrf51.cfg"], | ||
"gdb-initial-cmds": ["target remote :3333", "monitor halt", "load", "monitor reset", "c"] | ||
} |