Commit Graph

4942 Commits

Author SHA1 Message Date
030b0441f0 Merge pull request #48 from akiles/thumbv6m
thumbv6m support with emulated atomics
2021-03-04 22:11:26 +01:00
18f6b8ad68 thumbv6m support with emulated atomics 2021-03-04 21:56:31 +01:00
a3a36517bd update i2c trait 2021-03-03 09:29:18 -06:00
492f7aeea6 add i2c trait 2021-03-02 15:09:47 -06:00
9bee576fd2 Update embassy 2021-03-02 21:20:00 +01:00
88946840d1 Make Delay public 2021-03-02 21:16:43 +01:00
d4f2c6cf00 Remove cargo namespaced-features 2021-03-02 21:15:12 +01:00
7991b05e4c Merge pull request #63 from xoviat/timer-trait
add delay trait
2021-03-02 15:57:33 +01:00
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
3e4abe9e9d Merge pull request #62 from xoviat/traits
move traits to separte package
2021-03-02 00:39:21 +01:00
9626aee7db Move traits to separate crate. 2021-03-02 00:32:23 +01:00
084b64053a Merge pull request #61 from xoviat/us-delay
add us delays
2021-03-01 19:06:57 +01:00
a7549108a8 rename methods 2021-03-01 11:59:40 -06:00
d029f651fa add us delays 2021-03-01 11:47:55 -06:00
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
45355f184a move most interrupt methods to InterruptExt extension trait. Fixes #35 2021-03-01 00:44:38 +01:00
282f00e705 Merge pull request #27 from akiles/spim
nrf: add spim
2021-03-01 00:43:17 +01:00
a30c705fd7 nrf/spim: support all chips 2021-03-01 00:36:30 +01:00
255bf1aa6a nrf: add SPIM 2021-03-01 00:24:06 +01:00
8a641d1312 Fix warnings. 2021-03-01 00:23:54 +01:00
ffab3916f4 Install rust-src in ci 2021-02-28 22:06:47 +01:00
7433dc1039 Port qspi to PeripheralMutex 2021-02-28 22:05:37 +01:00
962fb95ff0 Optimize PeripheralMutex code size 2021-02-28 22:03:45 +01:00
7139155f2d Add code size optimization flags. 2021-02-28 21:38:10 +01:00
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
17cf301d4f Remove rand(), fixes #50 2021-02-26 01:58:00 +01:00
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
90476ef900 Fix some warnings. 2021-02-26 01:06:58 +01:00
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
f100383b3c Make ethernet address configurable from the Device 2021-02-24 22:31:07 +01:00
d4a97ac3ed Merge pull request #54 from xoviat/fix-exti
stm32f4: exti: clear interrupt pending bit
2021-02-24 19:17:35 +01:00
582fe34dcc stm32f4: exti: clear interrupt pending bit
bit should be cleared when created
2021-02-24 09:36:49 -06:00
2893fb3733 fixed display hints in examples 2021-02-24 08:57:06 +01:00
f779ec4928 update defmt and defmt-rtt to 0.2.0 2021-02-24 08:44:23 +01:00
465ca9086d Fix macro if user crate is not using feature(const_in_array_repeat_expressions) 2021-02-23 23:05:18 +01:00
67c03e1a38 Merge pull request #47 from akiles/simpler-rtc
SImplify rtc overflow handling
2021-02-20 01:51:53 +01:00
91aaea761e Use Relaxed atomics with fence instead of SeqCst 2021-02-20 01:43:10 +01:00
68a345eff8 Merge pull request #49 from thalesfragoso/st-timer
Add STM timer
2021-02-20 01:41:42 +01:00
82846d164c stm32f4-examples: add workaround for WFI breaking RTT 2021-02-20 01:29:26 +01:00
3b3b1ba346 Enable rust-analyzer proc-macros 2021-02-20 00:27:34 +01:00
03ddc949a0 PeripheralMutex should be Unpin 2021-02-20 00:27:24 +01:00
e16e3780fd Add missing interrupts for stm32f4 2021-02-17 19:41:23 -03:00
fc7977bd9a Add remaining stm32f4 timers 2021-02-17 19:41:00 -03:00
9d895a6383 Add RTC timer for stm32f4 2021-02-17 19:40:27 -03:00
406f3b7cbf rtc: use SeqCst for periods. 2021-02-15 01:23:15 +01:00
9d5e2d3881 SImplify rtc overflow handling 2021-02-15 01:01:45 +01:00
e454969000 Merge pull request #46 from akiles/cm07
Update to cortex-m 0.7
2021-02-14 23:38:08 +01:00
7321ddb0b3 Update to cortex-m 0.7 2021-02-14 23:26:50 +01:00
957741c10f Merge pull request #45 from thalesfragoso/remove-warn
Get rid of some warnings
2021-02-14 22:11:39 +01:00
b69f72e055 Get rid of some warnings 2021-02-13 21:41:36 -03:00