Commit Graph

5869 Commits

Author SHA1 Message Date
Ulf Lilleengen
9a2adec584 Make RCC lookup optional 2021-06-09 19:33:29 +02:00
Ulf Lilleengen
f3d1ac6623 Enable clock for RNG 2021-06-09 13:54:53 +02:00
Ulf Lilleengen
a92d6a372b Cleanup and fix l4s 2021-06-09 13:50:04 +02:00
Ulf Lilleengen
bd759510ba Generate clock peripherals for all peripherals with register block
Infers clock for a peripheral using the selected clock as a prefix, in
order to work with split registers
2021-06-09 13:40:34 +02:00
Bob McWhirter
9d2f95c82f
Merge pull request #236 from bobmcwhirter/h7-examples
Initial swag at h7 examples.
2021-06-08 16:26:46 -04:00
Bob McWhirter
6295589467 Bring over DAC example (relies upon stm32-data update) 2021-06-08 15:25:38 -04:00
Bob McWhirter
4f1f63f336 Initial swag at h7 examples. 2021-06-08 15:25:38 -04:00
Dario Nieuwenhuis
8f8914a789
Merge pull request #234 from bobmcwhirter/l4-dac-ex
Small changes to support DAC example.
2021-06-08 20:12:28 +02:00
Bob McWhirter
ecd53c916c Small changes to support DAC example. 2021-06-08 14:04:56 -04:00
Ulf Lilleengen
80eb0ad526
Merge pull request #218 from lulf/stm32-clk-enable
RccPeripharal + generate SPI clock enable
2021-06-08 17:42:49 +02:00
Ulf Lilleengen
f7394e56ef Handle other L4 variants 2021-06-08 17:37:41 +02:00
Ulf Lilleengen
6e63bf7e44 Update submodule ref 2021-06-08 17:20:29 +02:00
Ulf Lilleengen
939ea3bbd0 Reduce generics noise 2021-06-08 17:20:29 +02:00
Ulf Lilleengen
ed29d82071 Use critical_section 2021-06-08 17:20:29 +02:00
Ulf Lilleengen
212bda0940 Enable clock for SPI v1 and v3 2021-06-08 17:20:29 +02:00
Ulf Lilleengen
a57482fddd Cargo fmt 2021-06-08 17:20:29 +02:00
Ulf Lilleengen
459049d604 Workaround for L4 2021-06-08 17:20:29 +02:00
Ulf Lilleengen
ee47a3e802 Add workaround for STM32H7 2021-06-08 17:20:29 +02:00
Ulf Lilleengen
ee3b82b743 Auto generate SPI v2 clock enable
Adds RccPeripheral trait for peripherals implementing clock enable and reset for a given peripheral.

Add macro table generting implementations of RccPeripheral for peripherals with clock set, currently restricted to SPI.
2021-06-08 17:20:29 +02:00
Dario Nieuwenhuis
af0f8082f0
Merge pull request #233 from bobmcwhirter/l4-examples
L4 examples
2021-06-08 16:46:12 +02:00
Bob McWhirter
a407558e3f Add to GHA. 2021-06-08 10:41:18 -04:00
Bob McWhirter
cf3c021c37 Initial examples for STM32L4+ 2021-06-08 10:37:11 -04:00
Bob McWhirter
b8690e5f5d Add blinky example. 2021-06-08 10:37:11 -04:00
Dario Nieuwenhuis
e6bd02d40e
Merge pull request #232 from jacobrosenthal/twim-derive-format
embassy-nrf: twim derive defmt
2021-06-08 10:39:45 +02:00
Jacob Rosenthal
e9bd8428e3 embassy-nrf: twim derive defmt 2021-06-07 19:09:03 -07:00
Dario Nieuwenhuis
de5b9bea14 Add resolver=2 to cargo workspace example 2021-06-08 01:55:50 +02:00
Dario Nieuwenhuis
d1eeef5864 nrf/buffered_uarte: Fix crash when calling set_baudrate as the very first thing. 2021-06-08 00:32:14 +02:00
Dario Nieuwenhuis
51d5f19983
Merge pull request #231 from lulf/update-modulre-ref
Update submodule ref
2021-06-07 15:48:42 +02:00
Ulf Lilleengen
a1cd136869 Update submodule ref 2021-06-07 15:34:04 +02:00
Dario Nieuwenhuis
2b18440bec
Merge pull request #230 from lulf/update-regen-peripherals
Update after RCC regen and register fix
2021-06-07 14:41:22 +02:00
Ulf Lilleengen
a63388874a Update after name fix 2021-06-07 14:06:54 +02:00
Ulf Lilleengen
f24c38f2a4 Fix 2021-06-07 13:51:06 +02:00
Ulf Lilleengen
f3bb348f2a Update ref 2021-06-07 12:22:19 +02:00
Ulf Lilleengen
1cd2c55b7c Fix stm32l0 build 2021-06-07 12:19:09 +02:00
Ulf Lilleengen
f5e2fb9a5a Update to new api 2021-06-07 12:03:31 +02:00
Dario Nieuwenhuis
f752700df5
Merge pull request #229 from embassy-rs/buildrs-macrotables
Use macrotables from build.rs
2021-06-07 05:18:53 +02:00
Dario Nieuwenhuis
b65c3c7160 stm32-metapac: Do not generate cfgs metadata 2021-06-07 05:13:30 +02:00
Dario Nieuwenhuis
0ffa78aca1 Use macrotables from build.rs 2021-06-07 05:12:10 +02:00
Dario Nieuwenhuis
2685dbfcf4
Merge pull request #227 from embassy-rs/fmt2
fmt: make all macros `macro_rules` so scoping is consistent.
2021-06-07 03:29:09 +02:00
Dario Nieuwenhuis
3be49d3e79 fmt: Add dunmy use to avoid "unused variable" errors when no log is enabled. 2021-06-07 03:21:37 +02:00
Dario Nieuwenhuis
ef1ebefec0 fmt: use absolute paths 2021-06-07 03:15:05 +02:00
Dario Nieuwenhuis
e7dc5c0939 fmt: make all macros macro_rules so scoping is consistent. 2021-06-07 00:16:39 +02:00
Dario Nieuwenhuis
4dda7be968
Merge pull request #224 from rukai/readme_examples
Improve examples section of readme
2021-06-06 00:52:56 +02:00
Dario Nieuwenhuis
2bbde6c4e1
Merge pull request #225 from rukai/fix_stm32_warnings2
Fix stm32 warnings
2021-06-06 00:42:28 +02:00
Rukai
010b2b9497 Fix stm32 warnings 2021-06-06 00:46:20 +10:00
Dario Nieuwenhuis
5bd0aa9cb5
Merge pull request #222 from folkertdev/nrf-async-twim
nrf async twim
2021-06-05 16:34:36 +02:00
Folkert
749633ddf2 fix errors 2021-06-05 12:02:17 +02:00
Folkert
0c0bf6e4db extract the polled-on function 2021-06-05 11:59:58 +02:00
Folkert
28c0023c9a add distinct read and write functions 2021-06-05 11:48:00 +02:00
Folkert
d0dd0f007a changes after review 2021-06-05 11:37:11 +02:00