Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

stm32: add new device package #379

Open
wants to merge 2 commits into
base: dev
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion examples/sx126x/lora_rxtx/lora_rxtx.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,12 @@ package main
// module will be in RX mode between two transmissions

import (
"device/stm32"
"machine"
"runtime/interrupt"
"time"

"tinygo.org/x/device/stm32"

rfswitch "tinygo.org/x/drivers/examples/sx126x/rfswitch"

"tinygo.org/x/drivers/sx126x"
Expand Down
3 changes: 2 additions & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ go 1.15
require (
github.com/eclipse/paho.mqtt.golang v1.2.0
github.com/frankban/quicktest v1.10.2
golang.org/x/net v0.0.0-20210614182718-04defd469f4e // indirect
golang.org/x/net v0.0.0-20210614182718-04defd469f4e
tinygo.org/x/device v0.0.0-20220213155215-c873563f9ed5
tinygo.org/x/tinyfont v0.2.1
tinygo.org/x/tinyfs v0.1.0
tinygo.org/x/tinyterm v0.1.0
Expand Down
2 changes: 2 additions & 0 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ golang.org/x/text v0.3.6/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ=
golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ=
golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543 h1:E7g+9GITq07hpfrRu66IVDexMakfv52eLZ2CXBWiKr4=
golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
tinygo.org/x/device v0.0.0-20220213155215-c873563f9ed5 h1:rCFZxtddwZRG0F1JpZJ/1gNED7nK6BEarWplLrDkP+E=
tinygo.org/x/device v0.0.0-20220213155215-c873563f9ed5/go.mod h1:Kw2xNGKK/STJw9D7LupWt6ilG/qtbe2yoCD2Ru0AbTI=
tinygo.org/x/drivers v0.14.0/go.mod h1:uT2svMq3EpBZpKkGO+NQHjxjGf1f42ra4OnMMwQL2aI=
tinygo.org/x/drivers v0.15.1/go.mod h1:uT2svMq3EpBZpKkGO+NQHjxjGf1f42ra4OnMMwQL2aI=
tinygo.org/x/drivers v0.16.0/go.mod h1:uT2svMq3EpBZpKkGO+NQHjxjGf1f42ra4OnMMwQL2aI=
Expand Down
2 changes: 1 addition & 1 deletion sx126x/spi_stm32wl.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
package sx126x

import (
"device/stm32"
"errors"
"machine"
"tinygo.org/x/device/stm32"
"tinygo.org/x/drivers"
)

Expand Down