ceekdee
70acc093dd
Update rust-lorawan crate versions.
2023-09-25 10:45:53 -05:00
ceekdee
7d5e62d4a7
Update for rust-lorawan and lora-phy version 2.
2023-09-24 10:33:03 -05:00
Ulf Lilleengen
1b20ba27b1
feat: bump embassy-sync version to 0.3.0
...
Update changelog in preparation for release
2023-09-14 18:26:00 +02:00
Jesse Braham
1f63bf4153
Release embassy-time v0.1.3
2023-08-28 08:00:18 -07:00
Dániel Buga
a2c718f61c
Bump executor crate version to 0.3.0
2023-08-23 20:34:37 +02:00
Dario Nieuwenhuis
b3212ae383
Merge pull request #1763 from rubdos/sender-receiver-with-ctx
...
Refactor Channel/Sender/Receiver poll methods
2023-08-22 21:25:29 +00:00
Ruben De Smet
c39671266e
Deprecate *recv* in favor of *receive*
2023-08-22 16:58:31 +02:00
Dario Nieuwenhuis
065b0f34af
net-esp-hosted: sane error handling in control requests.
2023-08-17 01:03:12 +02:00
Dario Nieuwenhuis
f26dd54f63
Update embedded-hal to 1.0.0-rc.1 ( #1783 )
2023-08-16 00:40:56 +02:00
Dario Nieuwenhuis
4af1cf88d2
net-enc28j60: add example.
2023-08-15 14:09:36 +02:00
Dario Nieuwenhuis
5d5cd23715
Update to embedded-io 0.5 ( #1752 )
2023-08-07 13:43:09 +02:00
Chuck Davis
8f1ea85938
Merge branch 'main' into main
2023-07-27 08:50:53 -05:00
ceekdee
c54ae73d49
Use lora-phy v1.2.1; modify embassy-lora dependencies.
2023-07-26 21:51:09 -05:00
Piotr Esden-Tempski
858ddf6777
Added debug=2 in release profile to all examples.
...
This makes rtt output work right when using `cargo run` in release mode.
Debug was already enabled for release builds in some of the examples but
not all.
2023-07-26 18:32:40 -07:00
Quentin Smith
2c01f277c2
cargo fmt
2023-07-18 17:17:04 -04:00
Quentin Smith
6f02403184
Merge remote-tracking branch 'origin/main' into nrf-pdm
2023-07-17 21:31:43 -04:00
Dario Nieuwenhuis
d137286981
Release embassy-time v0.1.2
2023-07-06 01:29:44 +02:00
Dario Nieuwenhuis
a42ac86f1b
Remove wifi envvars. They're annoying, they cause rust-analyzer errors when opening the examples.
2023-07-05 19:20:49 +02:00
Dario Nieuwenhuis
a101d9078d
update embedded-hal crates.
2023-07-04 19:59:36 +02:00
Dario Nieuwenhuis
f7ec579c18
Update probe-rs-cli -> probe-rs
2023-06-29 02:39:28 +02:00
Dániel Buga
12872ce49b
Modify an example
2023-06-25 23:10:59 +02:00
Dario Nieuwenhuis
8bbfa6827c
esp-hosted: add perf hil test.
2023-06-22 21:12:24 +02:00
Dario Nieuwenhuis
0d02298ea6
esp-hosted: fix build on stable.
2023-06-22 21:12:10 +02:00
Dario Nieuwenhuis
1ed909ea74
esp-hosted: fix warnings.
2023-06-22 21:12:10 +02:00
Dario Nieuwenhuis
764b43e82c
esp-hosted: wait for esp firmware init.
2023-06-22 21:12:10 +02:00
Dario Nieuwenhuis
6c123596b7
wip: esp-hosted net driver.
2023-06-22 21:12:10 +02:00
Dario Nieuwenhuis
6653f262d7
examples: use nicer InterrupExt to set irq priority in multprio.
2023-06-09 16:46:57 +02:00
Dario Nieuwenhuis
dc8e34420f
Remove executor dep+reexports from HALs.
...
Closes #1547
2023-06-09 16:29:45 +02:00
Ruben De Smet
352f0b6c38
net: Support dual stack IP
2023-06-07 13:18:19 +02:00
Ruben De Smet
54bab33c73
Rename StaticConfig to StaticConfigV4
2023-06-06 17:04:21 +02:00
Dario Nieuwenhuis
1d8321b821
Use make_static! from static-cell v1.1
2023-06-01 01:42:34 +02:00
Dario Nieuwenhuis
26d7610554
net: do not use smoltcp Instant/Duration in public API.
2023-05-15 00:53:30 +02:00
Dirk Stolle
0584312ef0
Fix some typos
2023-05-08 23:25:01 +02:00
Chuck Davis
49bed094a3
Merge branch 'embassy-rs:master' into master
2023-04-28 13:35:22 -05:00
ceekdee
49ecd8d7c5
Remove external-lora-phy feature.
2023-04-28 13:33:20 -05:00
ceekdee
9d610c6866
Remove legacy LoRa drivers.
2023-04-27 11:05:33 -05:00
Ulf Lilleengen
42a8f1671d
Bump versions preparing for -macros and -executor release
2023-04-27 11:54:22 +02:00
Ulf Lilleengen
edef790e1a
build fixes for stable
2023-04-26 20:45:59 +02:00
Chuck Davis
18af9f304a
Merge branch 'embassy-rs:master' into master
2023-04-26 12:26:19 -05:00
ceekdee
52decfb16c
Add nightly feature specification for lora-phy.
2023-04-26 10:51:02 -05:00
ceekdee
91047c61b9
Correct nightly feature specification.
2023-04-26 10:18:40 -05:00
Dario Nieuwenhuis
054ca17f66
Switch from probe-run to probe-rs-cli.
...
- probe-run screwed up the last release 2 weeks ago and it's still not fixed (issue 391). Doesn't look well maintained.
- Even when it's not broken, it lags behind probe-rs-cli in new chips support because it's slow in updating probe-rs.
2023-04-26 17:00:51 +02:00
ceekdee
f729d2d060
Deprecate original LoRa drivers. Update rust-lorawan releases.
2023-04-25 13:51:19 -05:00
ceekdee
73f25093c7
Add lora-phy examples.
2023-04-23 18:32:34 -05:00
ceekdee
0a2f7b4661
Use released lora-phy.
2023-04-21 17:41:25 -05:00
ceekdee
02c86bca52
Add external LoRa physical layer functionality.
2023-04-21 01:20:46 -05:00
pennae
8a9136e4e4
enable inline-asm feature for cortex-m in examples
...
inline assembly is supported since rust 1.59, we're way past that.
enabling this makes the compiled code more compact, and on rp2040
even decreses memory usage by not needing thunks in sram.
2023-04-18 21:07:36 +02:00
Ulf Lilleengen
4044d728a6
update to released versions
2023-04-17 15:44:58 +02:00
Ulf Lilleengen
63941432e3
Update to rust-lorawan with afit support
2023-04-15 01:00:12 +02:00
Dario Nieuwenhuis
577f060d24
Release embassy-sync v0.2.0
2023-04-13 23:40:49 +02:00
Dario Nieuwenhuis
d3c4e4a20a
executor: add Pender, rework Cargo features.
...
This introduces a `Pender` struct with enum cases for thread-mode, interrupt-mode and
custom callback executors. This avoids calls through function pointers when using only
the thread or interrupt executors. Faster, and friendlier to `cargo-call-stack`.
`embassy-executor` now has `arch-xxx` Cargo features to select the arch and to enable
the builtin executors (thread and interrupt).
2023-04-03 03:09:11 +02:00
Dario Nieuwenhuis
5249996d28
nrf/usb: switch to new interrupt binding, fix vbus detect on nrf53.
2023-03-06 00:17:51 +01:00
Dario Nieuwenhuis
5913553cb1
nrf/twis: switch to new interrupt binding.
2023-03-06 00:17:51 +01:00
Dario Nieuwenhuis
36319fc121
nrf/temp: switch to new interrupt binding.
2023-03-06 00:17:51 +01:00
Dario Nieuwenhuis
9e58d9274c
nrf/twim: switch to new interrupt binding.
2023-03-06 00:17:51 +01:00
Dario Nieuwenhuis
9f5762d365
nrf/spis: switch to new interrupt binding.
2023-03-06 00:17:51 +01:00
Dario Nieuwenhuis
a32e82029a
nrf/spim: switch to new interrupt binding.
2023-03-06 00:17:51 +01:00
Dario Nieuwenhuis
2dc5608203
nrf/saadc: switch to new interrupt binding.
2023-03-06 00:17:51 +01:00
Dario Nieuwenhuis
d113fcfe32
nrf/rng: make available on all chips, use Instance trait, switch to new interrupt binding.
2023-03-06 00:17:51 +01:00
Dario Nieuwenhuis
96788ac93a
nrf/qspi: switch to new interrupt binding.
2023-03-06 00:17:51 +01:00
Dario Nieuwenhuis
c66b28e759
nrf/qdec: make available on all chips, use Instance trait, switch to new interrupt binding.
2023-03-06 00:17:51 +01:00
Dario Nieuwenhuis
f8f1d3bcf0
nrf/pdm: make available on all chips, use Instance trait, switch to new interrupt binding.
2023-03-06 00:17:51 +01:00
Dario Nieuwenhuis
34563b74aa
nrf/i2s: switch to new interrupt binding.
2023-03-06 00:17:51 +01:00
Dario Nieuwenhuis
63b75eaf64
nrf/timer: remove awaitable.
2023-03-06 00:17:51 +01:00
Dario Nieuwenhuis
9cf000ef4e
nrf/uart: switch to new interrupt binding.
2023-03-06 00:17:51 +01:00
Dario Nieuwenhuis
bf013be9ba
Merge pull request #1232 from embassy-rs/nrf-qspi-fixes
...
nrf/qspi: nrf53 support, u32 addrs, remove const generic, add raw read/write.
2023-03-05 03:19:11 +01:00
Dario Nieuwenhuis
f7dfc49c5c
nrf/qspi: add _raw variants of methods that don't do bounds checks.
...
Useful for the nRF7002, which presents as a "fake" QSPI flash, and
the "capacity" concept doesn't really apply to it.
2023-03-05 02:55:00 +01:00
Dario Nieuwenhuis
8eb8ea6174
nrf/qspi: remove FLASH_SIZE const generic param.
2023-03-05 02:33:02 +01:00
Dario Nieuwenhuis
75f69803af
nrf/qspi: always use u32 for addresses.
2023-03-05 02:30:53 +01:00
Dario Nieuwenhuis
916f94b366
nrf/buffered_uarte: make available on stable.
2023-03-04 15:12:49 +01:00
Dario Nieuwenhuis
ccc224c81f
nrf/buffered_uarte: remove PeripheralMutex, make it work without rts/cts.
...
> dirbaio: so I was checking how zephyr does UARTE RX on nRF
> dirbaio: because currently we have the ugly "restart DMA on line idle to flush it" hack
> dirbaio: because according to the docs "For each byte received over the RXD line, an RXDRDY event will be generated. This event is likely to occur before the corresponding data has been transferred to Data RAM."
> dirbaio: so as I understood it, the only way to guarantee the data is actually transferred to RAM is to stop+restart DMA
> dirbaio: well, guess what?
> dirbaio: they just count RXDRDY's, and process that amount of data without restarting DMA
> dirbaio: with a timer configured as counter https://github.com/zephyrproject-rtos/zephyr/blob/main/drivers/serial/uart_nrfx_uarte.c#L650-L692
> dirbaio: 🤔 🤷 ⁉️
> dirbaio: someone saying you can do the "hook up rxdrdy to a counter" trick, someone else saying it's wrong 🤪 https://devzone.nordicsemi.com/f/nordic-q-a/28420/uarte-in-circular-mode
So we're going to do just that!
- BufferedUarte is lock-free now. No PeripheralMutex.
- The "restart DMA on line idle to flush it" hack is GONE. This means
- It'll work correctly without RTS/CTS now.
- It'll have better throughput when using RTS/CTS.
2023-03-04 15:12:49 +01:00
Dario Nieuwenhuis
c4f4aa10f9
Merge pull request #1244 from embassy-rs/interruptexecutor
...
cortex-m/executor: don't use the owned interrupts system.
2023-03-01 22:38:27 +01:00
Dario Nieuwenhuis
6dbb631f1e
Example fixes.
2023-03-01 01:32:42 +01:00
Dario Nieuwenhuis
4dfa32b1e0
cortex-m/executor: don't use the owned interrupts system.
...
Preparation for #1224 .
2023-02-28 23:07:20 +01:00
Dario Nieuwenhuis
76642b3a3c
fix h7 examples
2023-02-10 23:35:44 +01:00
Dario Nieuwenhuis
86487db5d1
usb: use InterfaceNumber in msos.
2023-02-08 00:30:53 +01:00
Dario Nieuwenhuis
3af991ab63
usb: unify ControlHandler+DeviceStateHandler, route all control requests to all handlers.
...
- Allows classes to handle vendor requests.
- Allows classes to use a single handler for multiple interfaces.
- Allows classes to access the other events (previously only `reset` was available).
2023-02-08 00:17:08 +01:00
alexmoon
aa21aebb0b
Lazily encode UTF16 values and add docs
2023-02-07 14:24:35 -05:00
alexmoon
9f9230ae7a
Convert MS OS descriptor builder to a writer API
...
This brings it inline with the other embassy-usb descriptor APIs and allows it to integrate well with the Builder to allow class constructors to add MS OS descriptors.
Also adds a `usb_serial_winusb` example to demonstrate how to use the API.
2023-02-07 14:24:35 -05:00
Dario Nieuwenhuis
b5cf332cc0
nrf: docs.
2023-02-01 01:17:41 +01:00
Davide Della Giustina
32bdc54ccb
Changed crates' names for nrf examples since they were conflicting
2023-01-24 08:27:53 +00:00
Dario Nieuwenhuis
fe15a7beee
net: allocate space for 2 sockets, needed for dhcp.
2023-01-19 14:44:01 +01:00
Paweł Jan Czochański
8f4fae9b36
Add smoltcp dhcp socket configuration
2023-01-19 14:44:01 +01:00
Dominik Boehi
0a27b6cedb
Rename examples/nrf to examples/nrf52840
2023-01-09 22:30:02 +01:00