Commit Graph

6559 Commits

Author SHA1 Message Date
xoviat
5df6e57949 update docs 2021-03-08 14:00:31 -06:00
xoviat
f2ab4c4ec0 add spi trait 2021-03-08 12:35:55 -06:00
Dario Nieuwenhuis
16e00669ae
Merge pull request #73 from thalesfragoso/split-util
Move nRF's util into a separate crate
2021-03-08 01:51:45 +01:00
Thales Fragoso
15c3e78408 Move nRF's util into a separate crate 2021-03-07 20:15:40 -03:00
Dario Nieuwenhuis
f922cf1609
Merge pull request #70 from xoviat/cleanup-exti
Cleanup misc traits, imports
2021-03-06 17:34:28 +01:00
xoviat
9956cffb2d cleanup imports 2021-03-05 23:04:20 -06:00
xoviat
7234c5e509 cleanup traits 2021-03-05 22:59:54 -06:00
Dario Nieuwenhuis
3b95e1a22c
Merge pull request #64 from xoviat/i2c-trait
add i2c trait
2021-03-06 04:31:59 +01:00
xoviat
9497d6c68a add write_read 2021-03-05 21:30:39 -06:00
xoviat
7a46e66298 revise i2c trait 2021-03-05 21:19:56 -06:00
Dario Nieuwenhuis
bfd777b91e
Merge pull request #25 from xoviat/implement-uart
impl. generics on serial
2021-03-06 00:11:25 +01:00
Dario Nieuwenhuis
f8172316cd
Merge pull request #68 from timokroeger/update-nrf-hal
Update `nrf-hal` to v0.12.1
2021-03-05 14:35:29 +01:00
Timo Kröger
28b2365ef3 Update nrf-hal to v0.12.1
Use the `psel_bits()` method to reduce #[cfg] clutter
2021-03-05 09:25:46 +01:00
xoviat
beca7f4d9b use f405 in examples 2021-03-04 17:33:05 -06:00
xoviat
13f6c47a88 impl. stm32f405 2021-03-04 17:27:46 -06:00
xoviat
9bcb0c36dc implement generics on serial 2021-03-04 17:20:35 -06:00
Dario Nieuwenhuis
bd3deb785a Update deps 2021-03-04 22:41:54 +01:00
Dario Nieuwenhuis
030b0441f0
Merge pull request #48 from akiles/thumbv6m
thumbv6m support with emulated atomics
2021-03-04 22:11:26 +01:00
Dario Nieuwenhuis
18f6b8ad68 thumbv6m support with emulated atomics 2021-03-04 21:56:31 +01:00
xoviat
a3a36517bd update i2c trait 2021-03-03 09:29:18 -06:00
xoviat
492f7aeea6 add i2c trait 2021-03-02 15:09:47 -06:00
Dario Nieuwenhuis
9bee576fd2 Update embassy 2021-03-02 21:20:00 +01:00
Dario Nieuwenhuis
88946840d1 Make Delay public 2021-03-02 21:16:43 +01:00
Dario Nieuwenhuis
d4f2c6cf00 Remove cargo namespaced-features 2021-03-02 21:15:12 +01:00
Dario Nieuwenhuis
7991b05e4c
Merge pull request #63 from xoviat/timer-trait
add delay trait
2021-03-02 15:57:33 +01:00
xoviat
7ef81c75e7 traits: add delay trait
delay allows downstream libraries
to use async delay without depending
on a specific delay implementation
2021-03-02 08:45:22 -06:00
Dario Nieuwenhuis
3e4abe9e9d
Merge pull request #62 from xoviat/traits
move traits to separte package
2021-03-02 00:39:21 +01:00
xoviat
9626aee7db Move traits to separate crate. 2021-03-02 00:32:23 +01:00
Dario Nieuwenhuis
084b64053a
Merge pull request #61 from xoviat/us-delay
add us delays
2021-03-01 19:06:57 +01:00
xoviat
a7549108a8 rename methods 2021-03-01 11:59:40 -06:00
xoviat
d029f651fa add us delays 2021-03-01 11:47:55 -06:00
Dario Nieuwenhuis
67a6c4f469
Merge pull request #59 from akiles/interrupt_ext
move most interrupt methods to InterruptExt extension trait. Fixes #35
2021-03-01 00:56:20 +01:00
Dario Nieuwenhuis
45355f184a move most interrupt methods to InterruptExt extension trait. Fixes #35 2021-03-01 00:44:38 +01:00
Dario Nieuwenhuis
282f00e705
Merge pull request #27 from akiles/spim
nrf: add spim
2021-03-01 00:43:17 +01:00
Dario Nieuwenhuis
a30c705fd7 nrf/spim: support all chips 2021-03-01 00:36:30 +01:00
Dario Nieuwenhuis
255bf1aa6a nrf: add SPIM 2021-03-01 00:24:06 +01:00
Dario Nieuwenhuis
8a641d1312 Fix warnings. 2021-03-01 00:23:54 +01:00
Dario Nieuwenhuis
ffab3916f4 Install rust-src in ci 2021-02-28 22:06:47 +01:00
Dario Nieuwenhuis
7433dc1039 Port qspi to PeripheralMutex 2021-02-28 22:05:37 +01:00
Dario Nieuwenhuis
962fb95ff0 Optimize PeripheralMutex code size 2021-02-28 22:03:45 +01:00
Dario Nieuwenhuis
7139155f2d Add code size optimization flags. 2021-02-28 21:38:10 +01:00
Dario Nieuwenhuis
da91779117 interrupt: Split set_handler context.
Since introducing the ctx pointer, the handler is now two words, so setting it can
race with the interrupt firing. On race it's possible for the new handler to be
alled with the old ctx pointer or viceversa.

Rather than documenting this, it's better to split the function in two to make it
obvious to the user that it's not atomic. The user can use a critical section, or
disable/enable the interrupt to avoid races if this is a concern.
2021-02-26 02:04:48 +01:00
Dario Nieuwenhuis
17cf301d4f Remove rand(), fixes #50 2021-02-26 01:58:00 +01:00
Dario Nieuwenhuis
11be9170ec Cleanup interrupt package naming. Fixes #40
The `interrupt` package previously tried to be drop-in compatible with the
`interrupt` package from PACs. THis meant that there was both a PAC-style enum
value `UARTE0` and an embassy-style owned `UARTE0Interrupt` type. This made
things VERY confusing.

This drops compatibility with the PAC, improving the names for embassy interrupts.
2021-02-26 01:55:27 +01:00
Dario Nieuwenhuis
90476ef900 Fix some warnings. 2021-02-26 01:06:58 +01:00
Dario Nieuwenhuis
de796d3e80
Merge pull request #53 from fnafnio/defmt-update
update defmt and defmt-rtt to 0.2.0
2021-02-26 00:30:00 +01:00
Dario Nieuwenhuis
f100383b3c Make ethernet address configurable from the Device 2021-02-24 22:31:07 +01:00
Dario Nieuwenhuis
d4a97ac3ed
Merge pull request #54 from xoviat/fix-exti
stm32f4: exti: clear interrupt pending bit
2021-02-24 19:17:35 +01:00
xoviat
582fe34dcc stm32f4: exti: clear interrupt pending bit
bit should be cleared when created
2021-02-24 09:36:49 -06:00
fnafnio
2893fb3733 fixed display hints in examples 2021-02-24 08:57:06 +01:00