Commit Graph

98 Commits

Author SHA1 Message Date
c949519714 stm32/usart: expose all functionality as inherent methods. 2022-01-19 17:59:55 +01:00
b526addf7b stm32/exti: expose all functionality as inherent methods. 2022-01-19 17:59:55 +01:00
58fc64722c stm32/gpio: expose all functionality as inherent methods. 2022-01-19 17:59:55 +01:00
e056bedd55 Port the PWM example to H7, add low-level API example implementing 32-bit PWM. 2022-01-13 16:53:55 +01:00
89b009b11d stm32h7/rcc: remove unneeded DMA enable settings.
These are automatically enabled by dma::init().
2022-01-04 13:31:30 +01:00
484c356c03 Add DCMI example. 2021-12-09 12:56:39 +01:00
3332c40705 examples: remove unused deps. 2021-11-29 02:07:48 +01:00
c14642cffc Add MCO peripheral. 2021-11-11 11:34:09 +01:00
9b5d9fbfca Fix v2 ethernet pin definitions. Fix ethernet example for H7 nucleos. 2021-11-04 16:25:30 +01:00
de016e8456 Remove trait_alias, allow(incomplete_features).
trait_alias seems unused. no idea why it's there.
2021-09-03 17:00:58 +02:00
aaa4a477d5 Formatting. 2021-09-01 09:47:46 -04:00
37ceae908b Rename Random impl to Rng.
Create Random struct providing next_x(range) for all T:Rng.
2021-09-01 09:39:33 -04:00
fd7a76c59e Formatting. Always formatting. 2021-08-30 09:57:31 -04:00
7fa3b27cac Move random utils to another trait. 2021-08-30 09:55:29 -04:00
78f7d1b786 Add example using ranged RNG. 2021-08-27 16:10:50 -04:00
2c992f7010 stm32: move dbgmcu stuff to toplevel config setting, defaulting to true. 2021-08-19 23:50:19 +02:00
a93ed2bed6 Add H7 exti button example using correct EXTI reg block offsets. 2021-08-16 15:15:07 -04:00
f4950c4449 examples: Consistently use unwrap! in favor of .unwrap()
Unfortunately errors from `embedded_graphics` and `core` doesn't provide
the necessary instances currently.
2021-08-05 22:39:59 +02:00
0ea6a2d890 time: replace dyn clock/alarm with a global Driver trait 2021-08-05 19:14:09 +02:00
cfa1f61154 Merge pull request #344 from bobmcwhirter/remove_builders
Remove builders from Config(s) and examples.
2021-08-04 21:32:39 +02:00
07d4b196f7 Update nightly, remove removed features. 2021-08-04 19:48:14 +02:00
f91bfef799 Formatting again. 2021-08-04 13:42:06 -04:00
f4971fbb79 Further work sharing config for example and removing duplicated code. 2021-08-04 13:39:02 -04:00
4fe9114695 Remove unused import. 2021-08-04 11:40:47 -04:00
0787c8f8f5 Formatting. 2021-08-04 11:35:18 -04:00
03f15d3a60 Remove builders from Config(s) and examples. 2021-08-04 11:32:39 -04:00
5d31dd328f Merge pull request #341 from lulf/usart-dma-read
Add uart::Read DMA-based implementation
2021-08-04 11:02:15 +02:00
0d02342b2d Rename bread -> read_blocking 2021-08-04 08:34:30 +02:00
3e6aceaaa7 Run cargo-fmt on the h7 examples. 2021-08-03 14:31:41 -04:00
d7409d63e8 Enhance Rcc configuration to be more fluentish.
Clean up H7 examples to remove all vegan HALs and PACs.
2021-08-03 13:57:18 -04:00
6ff0614cb6 Add uart::Read DMA-based implementation
* Rename existing read() to bread() (blocking)
2021-08-03 15:31:24 +02:00
63ac7ac799 Mark news as unsafe due to not being leak-safe. 2021-08-02 19:55:04 +02:00
af87031d62 hal-common: remove Pin in PeripheralMutex 2021-08-02 19:55:04 +02:00
a1dac21bdf Make SPIv3 work with DMA.
Add both DMA and non-DMA example to H7.
2021-07-23 13:22:39 -04:00
5ac91933ff stm32: No need to enable GPIO clocks manually 2021-07-23 17:54:13 +02:00
13873df30b Auto-enable all GPIOs during init(). 2021-07-23 11:32:19 -04:00
d68f2617e6 Add a Dbgmcu struct capable of enabling all relevant DBGMCU.cr fields.
Includes the addition of a `dbgmcu!(...)` macro table which currently takes
the form of

	(cr, $fn_name:ident)

where `$fn_name` is something like `set_dbgsleep_d1` etc.

The method is unsafe, since it's performing unsafe PAC operations.

Two examples modified to demonstrate its usage.
2021-07-22 14:18:48 -04:00
d7176da37c stm32/examples: update DMA channel names 2021-07-17 08:04:33 +02:00
0119ea809d Get DMA on H7 working, add usart_dma example for H7. 2021-07-16 14:41:20 -04:00
63a0e188ea stm32/dma: fix h7 impls 2021-07-16 14:41:20 -04:00
3fd9023fce Fix the h7 example. 2021-07-14 14:45:54 -04:00
25d4b2ea26 fix stm32 warnings 2021-07-05 01:54:29 +02:00
0920c0cb1d Make UART pins Rx/Tx/etc in addition to USART. 2021-07-01 11:30:54 -04:00
0eaadfc125 stm32: Update gpio examples 2021-06-25 18:16:43 -03:00
aca0fb1065 net: Make the user pass in the StackResources in init
By having the user pass in the resources, we can make them generic, this way
the user can choose the size of the individual resources
2021-06-20 17:15:18 -03:00
098ce6e740 stm32h7: Add ethernet example 2021-06-16 16:48:35 +02:00
6295589467 Bring over DAC example (relies upon stm32-data update) 2021-06-08 15:25:38 -04:00
4f1f63f336 Initial swag at h7 examples. 2021-06-08 15:25:38 -04:00