Commit Graph

7021 Commits

Author SHA1 Message Date
Barnaby Walters
6d7458dac7 Refinements
* Implemented boost mode dance (RM0440 p234-245, 6.5.1)
* Enabled boost mode in usb_serial example, tested on hardware
* Removed hard requirement of a valid 48MHz source (HSI48 is checked if
  requested, PLL passed through as-is and assumed to be valid)
* Used calc_pclk to calculate APB frequencies
* Refactored 48MHz configuration code to remove unnecessary let and block
* Renamed ahb_freq to hclk for clarity and consistency
2024-02-17 00:30:16 +01:00
Barnaby Walters
a24087c36c Configured SYSCLK after boost mode, added comments 2024-02-16 21:52:58 +01:00
Barnaby Walters
e465dacf73 Added documentation, fixed and refined boost and flash read latency config 2024-02-16 21:34:12 +01:00
Barnaby Walters
25a95503f6 Configured HSI48 if enabled, assert is enabled if chosen as clk48 source 2024-02-16 20:41:04 +01:00
Barnaby Walters
ae74833999 Removed redundant HSI48 configuration 2024-02-16 20:32:35 +01:00
Barnaby Walters
32e4c93954 Removed dangling doc comments 2024-02-16 19:58:19 +01:00
Barnaby Walters
396041ad1a Commented out currently unused constants 2024-02-16 00:04:35 +01:00
Barnaby Walters
5b7eff6541 [embassy-stm32]: started stm32g4 RCC refactor
* Copied API from f.rs where applicable
* HSE and HSI independantly configurable
* Boost mode set by user rather
* Added HSE, pll1_q and pll1_p frequencies to set_clocks call
* Stubbed max module based on f.rs, needs cleanup
2024-02-15 23:56:26 +01:00
Dario Nieuwenhuis
e8c998aad8
Merge pull request #2563 from nbars/main
Print panics via defmt per default for the stm32f0 example
2024-02-12 20:30:04 +00:00
Dario Nieuwenhuis
9664972f53
Merge pull request #2562 from embassy-rs/rcc-h7-sdlevel
stm32/rcc: use h7 sdlevel enum from pac.
2024-02-12 20:27:43 +00:00
Nils Bars
6e24f0562d Print panics via defmt per default for the stm32f0 example 2024-02-12 21:18:50 +01:00
Ulf Lilleengen
acaac8ef70
Merge pull request #2556 from chamburr/fix-async-updater
Fix unaligned buffer in async updater
2024-02-12 20:05:50 +00:00
Ulf Lilleengen
a2b7b0c8e0
Merge pull request #2414 from JomerDev/usb-logger-without-device
Adds function and macro to create usb logger without device (also fixes a logger issue)
2024-02-12 20:04:57 +00:00
Dario Nieuwenhuis
937a9e7955 stm32/rcc: use h7 sdlevel enum from pac. 2024-02-12 20:58:04 +01:00
Dario Nieuwenhuis
180f4c9c9b
Merge pull request #2561 from embassy-rs/net-docs2
net: enable dhcpv4-hostname feature in docs.
2024-02-12 19:51:59 +00:00
Dario Nieuwenhuis
affaf2be1f net: enable dhcpv4-hostname feature in docs. 2024-02-12 20:50:06 +01:00
Jomer.Dev
16ed0b1e37 Move usb clas loop to private function
Move const to the outside of the logger
2024-02-12 19:01:22 +01:00
Dario Nieuwenhuis
b7c1ad553f
Merge pull request #2560 from embassy-rs/rcc-f3
stm32/rcc: port F3 RCC to new API
2024-02-12 01:29:32 +00:00
Dario Nieuwenhuis
0dc5e6d3e4 stm32/rcc: port F3 RCC to new API
See #2515
2024-02-12 02:19:31 +01:00
Han Cen
d77b6a60d2
Fix unaligned buffer in async updater 2024-02-10 20:45:44 +08:00
Dario Nieuwenhuis
edb3989b57
Merge pull request #2555 from eZioPan/timer-doc-fix
timer-doc-fix
2024-02-10 11:37:04 +00:00
eZio Pan
b4399a1bf5 timer-doc-fix 2024-02-10 16:22:36 +08:00
Dario Nieuwenhuis
f0ffc9f74a
Merge pull request #2553 from embassy-rs/update-metapac55
stm32: update metapac.
2024-02-10 02:02:52 +00:00
Dario Nieuwenhuis
832776d2c7 stm32: update metapac. 2024-02-10 02:50:35 +01:00
Dario Nieuwenhuis
e7d0b8db88
Merge pull request #2499 from eZioPan/update-metapac8
Update embassy-stm32 after stm32-metapac timer_v2
2024-02-10 00:24:02 +01:00
eZio Pan
8fd803a5fe use cfg_if to reduce macro condition 2024-02-10 00:00:43 +01:00
eZio Pan
0f94006be3 doc fix 2024-02-10 00:00:43 +01:00
eZio Pan
6c690ab259 restore original public API of timer, but keep new PAC 2024-02-10 00:00:43 +01:00
eZio Pan
b3cdf3a040 bug fix 2024-02-10 00:00:43 +01:00
eZio Pan
319f10da5d stm32-timer: filter out c0, f1 and f37x 2024-02-10 00:00:43 +01:00
eZio Pan
5b646bc3bd stm32-timer: L0 is special 2024-02-10 00:00:43 +01:00
eZio Pan
d538829f2f add methods with macro 2024-02-10 00:00:43 +01:00
Dario Nieuwenhuis
53bf0332e9 asdkf 2024-02-10 00:00:43 +01:00
eZio Pan
dc4898ca89 update timer mod after stm32-metapac timer_v2 2024-02-09 23:58:13 +01:00
eZio Pan
d6636ca116 minor fix 2024-02-09 23:57:09 +01:00
Dario Nieuwenhuis
04147b4147
Merge pull request #2544 from shufps/feat/adc-l0
Feat/adc l0
2024-02-09 22:48:57 +00:00
Dario Nieuwenhuis
5e82e32784
Merge pull request #2541 from xgroleau/fix/executor-rtos-usage-time
fix: rtos-trace time missing
2024-02-09 22:20:06 +00:00
Ulf Lilleengen
1641f8a27e
Merge pull request #2397 from tyler-gilbert/add-write-immediate-api-dma-ring-buffer
Add write_immediate() function to STM32 DMA ringbufer API
2024-02-09 20:05:41 +00:00
Ulf Lilleengen
c4f3e0dfd5
Merge pull request #2540 from badrbouslikhin/bootloader-modular-flash-partitions
feat: enhance bootloader for multiple flash support
2024-02-09 19:33:51 +00:00
Ulf Lilleengen
fd9318f205
Merge pull request #2354 from AdinAck/docs-generation-1
Add Generation Repos to Docs
2024-02-09 19:33:16 +00:00
Ulf Lilleengen
8f273ee8e3
Merge pull request #2551 from embassy-rs/fix-docs
docs: use correct link to book
2024-02-09 19:32:30 +00:00
Ulf Lilleengen
32f950cb5e docs: use correct link to book
Fixes #2550
2024-02-09 20:30:50 +01:00
Ulf Lilleengen
460cf79513
Merge pull request #2548 from plaes/faq-fixes
Faq fixes due to embassy-time crate split
2024-02-09 08:46:03 +00:00
Priit Laes
cbdc49ef8d faq: embassy-time was split into three packages, update faq accordingly
I ran into this issue when I had to pull in embassy-nrf from git,
though cargo didn't complain about conflicting embassy-time links.
2024-02-09 10:15:53 +02:00
Priit Laes
6e2d54c40b faq: Nightly is not required anymore 2024-02-09 10:14:55 +02:00
Priit Laes
bb743420be faq: Fix typo 2024-02-09 10:14:34 +02:00
Dario Nieuwenhuis
b326ee19bb
Merge pull request #2547 from plaes/spi-easydma-size-checks
nrf: spim/spis: Add size checks for EasyDMA buffer
2024-02-08 20:11:03 +00:00
Priit Laes
27411658d9 nrf: spim/spis: Add size checks for EasyDMA buffer
On most nRF chips, maximum buffer size for EasyDMA is 255, thus
we never got any data when attempting to use 256 bytes as RX/TX buffer.
2024-02-08 21:48:41 +02:00
xgroleau🐢
262518cfe5 fix: removed trailing comma 2024-02-08 09:02:07 -05:00
xgroleau🐢
09613e90de fix: missing 0 2024-02-08 09:01:07 -05:00