Skip to content

Commit 5a054b6

Browse files
committed
release: update machine docs to 0.12.0
Signed-off-by: Ron Evans <[email protected]>
1 parent b6e3316 commit 5a054b6

19 files changed

+3199
-173
lines changed

content/microcontrollers/machine/arduino-nano.md

Lines changed: 538 additions & 0 deletions
Large diffs are not rendered by default.

content/microcontrollers/machine/arduino-nano33.md

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -292,8 +292,8 @@ const (
292292
var (
293293
UART1 = UART{
294294
Buffer: NewRingBuffer(),
295-
Bus: sam.SERCOM5_USART,
296-
SERCOM: 5,
295+
Bus: sam.SERCOM3_USART,
296+
SERCOM: 3,
297297
}
298298
)
299299
```
@@ -305,8 +305,8 @@ UART1 on the Arduino Nano 33 connects to the onboard NINA-W102 WiFi chip.
305305
var (
306306
UART2 = UART{
307307
Buffer: NewRingBuffer(),
308-
Bus: sam.SERCOM3_USART,
309-
SERCOM: 3,
308+
Bus: sam.SERCOM5_USART,
309+
SERCOM: 5,
310310
}
311311
)
312312
```
@@ -1355,9 +1355,10 @@ SPIConfig is used to store config info for SPI.
13551355

13561356
```go
13571357
type UART struct {
1358-
Buffer *RingBuffer
1359-
Bus *sam.SERCOM_USART_Type
1360-
SERCOM uint8
1358+
Buffer *RingBuffer
1359+
Bus *sam.SERCOM_USART_Type
1360+
SERCOM uint8
1361+
Interrupt interrupt.Interrupt
13611362
}
13621363
```
13631364

content/microcontrollers/machine/bluepill.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,6 @@ var (
142142
UART0 = UART{
143143
Buffer: NewRingBuffer(),
144144
Bus: stm32.USART1,
145-
IRQVal: stm32.IRQ_USART1,
146145
}
147146
UART1 = &UART0
148147
)
@@ -551,9 +550,9 @@ SPIConfig is used to store config info for SPI.
551550

552551
```go
553552
type UART struct {
554-
Buffer *RingBuffer
555-
Bus *stm32.USART_Type
556-
IRQVal uint32
553+
Buffer *RingBuffer
554+
Bus *stm32.USART_Type
555+
Interrupt interrupt.Interrupt
557556
}
558557
```
559558

0 commit comments

Comments
 (0)