Skip to content

Commit b2fbbeb

Browse files
aykevldeadprogram
authored andcommitted
esp32c3: add smoke tests for a few boards
These boards probably haven't been working since the addition of I2C, because they were missing some constants in the machine package.
1 parent bcfe751 commit b2fbbeb

File tree

4 files changed

+18
-6
lines changed

4 files changed

+18
-6
lines changed

GNUmakefile

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -841,6 +841,12 @@ endif
841841
@$(MD5SUM) test.bin
842842
$(TINYGO) build -size short -o test.bin -target=xiao-esp32c3 examples/machinetest
843843
@$(MD5SUM) test.bin
844+
$(TINYGO) build -size short -o test.bin -target=esp32-c3-devkit-rust-1 examples/blinky1
845+
@$(MD5SUM) test.bin
846+
$(TINYGO) build -size short -o test.bin -target=esp32c3-12f examples/blinky1
847+
@$(MD5SUM) test.bin
848+
$(TINYGO) build -size short -o test.bin -target=makerfabs-esp32c3spi35 examples/machinetest
849+
@$(MD5SUM) test.bin
844850
$(TINYGO) build -size short -o test.hex -target=hifive1b examples/blinky1
845851
@$(MD5SUM) test.hex
846852
$(TINYGO) build -size short -o test.hex -target=maixbit examples/blinky1

src/machine/board_esp32-c3-devkit-rust-1.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,8 @@ const (
6464

6565
// I2C pins
6666
const (
67-
I2C_SCL_PIN = D8
68-
I2C_SDA_PIN = D10
67+
SCL_PIN = D8
68+
SDA_PIN = D10
6969
)
7070

7171
// USBCDC pins

src/machine/board_esp32c3-12f.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,3 +46,9 @@ const (
4646
UART_TX_PIN = TXD
4747
UART_RX_PIN = RXD
4848
)
49+
50+
// I2C pins
51+
const (
52+
SCL_PIN = NoPin
53+
SDA_PIN = NoPin
54+
)

src/machine/board_makerfabs-esp32c3spi35.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,8 @@ const (
6464
// Touchscreen pins
6565
const (
6666
TS_CS_PIN = D0
67-
TS_SDA_PIN = I2C_SDA_PIN
68-
TS_SCL_PIN = I2C_SCL_PIN
67+
TS_SDA_PIN = SDA_PIN
68+
TS_SCL_PIN = SCL_PIN
6969
)
7070

7171
// MicroSD pins
@@ -90,8 +90,8 @@ const (
9090

9191
// I2C pins
9292
const (
93-
I2C_SDA_PIN = D2
94-
I2C_SCL_PIN = D3
93+
SDA_PIN = D2
94+
SCL_PIN = D3
9595
)
9696

9797
// SPI pins

0 commit comments

Comments
 (0)