diff options
author | Ayke van Laethem <[email protected]> | 2019-03-30 12:54:36 +0100 |
---|---|---|
committer | Ron Evans <[email protected]> | 2019-07-07 14:03:24 +0200 |
commit | ffa38b183b32331dd247e337a985c4eb5a7d9350 (patch) | |
tree | 2f858af25739909e2da7f6b0b3e59eacc5071d41 /src/machine/board_hifive1b.go | |
parent | f0eb4eef5a842be56288590ef3ba8766432c67ac (diff) | |
download | tinygo-ffa38b183b32331dd247e337a985c4eb5a7d9350.tar.gz tinygo-ffa38b183b32331dd247e337a985c4eb5a7d9350.zip |
all: add HiFive1 rev B board with RISC-V architecture
This page has been a big help in adding support for this new chip:
https://wiki.osdev.org/HiFive-1_Bare_Bones
Diffstat (limited to 'src/machine/board_hifive1b.go')
-rw-r--r-- | src/machine/board_hifive1b.go | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/src/machine/board_hifive1b.go b/src/machine/board_hifive1b.go new file mode 100644 index 000000000..bb82849c6 --- /dev/null +++ b/src/machine/board_hifive1b.go @@ -0,0 +1,19 @@ +// +build hifive1b + +package machine + +const ( + LED = LED1 + LED1 = LED_RED + LED2 = LED_GREEN + LED3 = LED_BLUE + LED_RED = P22 + LED_GREEN = P19 + LED_BLUE = P21 +) + +const ( + // TODO: figure out the pin numbers for these. + UART_TX_PIN = NoPin + UART_RX_PIN = NoPin +) |