Commit Graph

171 Commits

Author SHA1 Message Date
kbleeke
056df98d47 use send status feature of cyw43 instead of manually checking status 2023-03-27 18:19:07 +02:00
Dario Nieuwenhuis
273e6f5b83
Merge pull request #47 from kbleeke/pio-irq
Use IRQ instead of polling the status register
2023-03-27 16:08:22 +00:00
kbleeke
8926397f45 address irq nits 2023-03-27 15:29:01 +02:00
Dario Nieuwenhuis
07fe37b5ee
Merge pull request #52 from kbleeke/cancel-ioctl
cancel ioctl when future is dropped
2023-03-27 11:45:35 +00:00
kbleeke
1c721cb20e cancel ioctl when future is dropped 2023-03-27 13:39:41 +02:00
kbleeke
b58cc2aa23 use irqs to wait for events 2023-03-27 13:18:59 +02:00
kbleeke
a2272dda08 status and irq flags formatting with defmt 2023-03-27 13:18:59 +02:00
Dario Nieuwenhuis
cde6f0f862
Merge pull request #50 from kbleeke/async-ioctls
Rework Ioctls to an async state machine
2023-03-27 10:43:53 +00:00
kbleeke
c7646eb699 bring back TODO note about dropping ioctls 2023-03-27 12:40:40 +02:00
kbleeke
4c52104413 simplify ioctl waker code 2023-03-27 12:40:27 +02:00
Dario Nieuwenhuis
fd3de78b43
Merge pull request #51 from kbleeke/wait-join-open
also wait for join event in join_open
2023-03-27 10:23:06 +00:00
kbleeke
6f547cf05d asyncify outgoing events 2023-03-27 11:48:58 +02:00
kbleeke
4721381225 also wait for join event in join_open 2023-03-27 11:10:29 +02:00
Dario Nieuwenhuis
5da6108bec
Merge pull request #49 from embassy-rs/ci
Fix build with log, add CI
2023-03-27 05:19:36 +02:00
Dario Nieuwenhuis
ed601d439a Add CI. 2023-03-27 03:33:20 +02:00
Dario Nieuwenhuis
cffc3fc795 Fix build with log. 2023-03-27 03:33:06 +02:00
Dario Nieuwenhuis
bb90bb8c56
Merge pull request #46 from kbleeke/split-lib-rs
split lib.rs into multiple files
2023-03-27 03:17:30 +02:00
kbleeke
20923080e6 split lib.rs into multiple files 2023-03-22 15:35:02 +01:00
Dario Nieuwenhuis
8b24fe3df0
Merge pull request #45 from kbleeke/fix-stuck-ioctl
Spawn Wifi Task immediately, Fix #44
2023-03-22 13:56:25 +01:00
kbleeke
369f205962 wifi task needs to be spawned immediately, otherwise ioctls are just stuck (duh). fix #44 2023-03-22 11:33:55 +01:00
Dario Nieuwenhuis
33cbc22236
Merge pull request #39 from kbleeke/pio
Use PIO for SPI communication in Pico W example
2023-03-21 19:56:57 +01:00
kbleeke
359b1c7fdb replace inspect() with direct calls to trace!() after awaiting 2023-03-21 19:39:41 +01:00
kbleeke
29494a9296 Merge branch 'master' into pio 2023-03-21 19:32:39 +01:00
kbleeke
f82f931dc2 revert formatting changes in Cargo.toml 2023-03-21 19:30:45 +01:00
kbleeke
3034e8fb45 document response delay quirks in bus code 2023-03-21 19:26:24 +01:00
kbleeke
b4b8d82980 remove use of embedded-hal SPI traits. Instead just call our bus trait directly and push responsibility for implementing CS on the trait implementor 2023-03-21 19:15:54 +01:00
Dario Nieuwenhuis
0e946dfb20
Merge pull request #42 from kbleeke/events-join
add event handling to join
2023-03-19 23:20:33 +01:00
Dario Nieuwenhuis
b411b7ce63 vscode: recommend extensions, disable toml formatting, update. 2023-03-19 22:36:18 +01:00
Dario Nieuwenhuis
ee3d284609
Merge pull request #43 from jakewins/patch-1
Update pre-flashed command to match file name
2023-03-19 21:33:16 +01:00
Jacob Davis-Hansson
67743bb122
Update pre-flashed command to match file name
Super minor, just to help the next person avoid the little stumble.
2023-03-19 19:16:26 +01:00
kbleeke
1b410d6f3f add event handling to join 2023-03-19 17:48:41 +01:00
kbleeke
a6a2a035d5 even faster pio speed are possible 2023-03-19 17:00:45 +01:00
kbleeke
0ff606dfc1 Add pio transport to pico w example 2023-03-19 16:58:22 +01:00
kbleeke
d57fe0de86 Custom Bus Trait to support PIO 2023-03-19 16:57:54 +01:00
Dario Nieuwenhuis
e33b99e9ec
Merge pull request #40 from Slushee-a/master
Add from_utf8 for a clearer example
2023-03-14 18:42:27 +01:00
Pol Fernandez
f6f041b05d Add from_utf8 2023-02-21 08:52:57 +01:00
Pol Fernandez
f34829f534 Add stringify function 2023-02-20 21:03:39 +01:00
Dario Nieuwenhuis
e3492862e9
Merge pull request #38 from overheat/master
update embassy dependences
2023-02-15 12:34:45 +01:00
Aaron Tsui
0bcd1b1e10 update embassy dependences 2023-02-15 11:08:27 +08:00
Dario Nieuwenhuis
9900ac2c9a
Merge pull request #29 from metlos/fix-pm
Be able to specify the power management mode at init time.
2023-01-02 21:38:51 +01:00
Dario Nieuwenhuis
a2bae33d84 Add separate function to set power management mode. 2023-01-02 21:36:51 +01:00
Lukas Krejci
001610f0d0 Be able to specify the power management mode at init time. 2023-01-02 21:34:13 +01:00
Dario Nieuwenhuis
072b8ce035
Merge pull request #34 from mattiasgronlund/wlan_read_fix
Fixed length for wlan_read.
2023-01-02 00:26:37 +01:00
mattiasgronlund
c1fa46bd36
Merge branch 'master' into wlan_read_fix 2022-12-31 16:40:22 +01:00
Mattias Grönlund
871700f05d Fixed length for wlan_read.
The length provided in command word for FUNC_WLAN READ, should
describe the actual bytes requested, not the size of the buffer
which is sized in u32.
2022-12-31 16:25:37 +01:00
Dario Nieuwenhuis
2548bbdd65 Update Embassy. 2022-12-27 01:19:26 +01:00
Dario Nieuwenhuis
1b6799d93f split bus, consts into separate mods. 2022-12-26 23:34:27 +01:00
Dario Nieuwenhuis
076ada4c02 Add feature to display console logs from the wifi firmware. 2022-12-25 22:50:59 +01:00
Dario Nieuwenhuis
42cc0c6d73 print ioctl error as signed. 2022-12-25 22:50:59 +01:00
Dario Nieuwenhuis
56b50f8b62 fix bp_read.
It was broken since the switch from u8 to u32.
2022-12-25 22:50:59 +01:00