Commit Graph

84 Commits

Author SHA1 Message Date
3242990690 Merge branch 'master' of https://github.com/akiles/embassy into st-usb 2021-03-27 21:24:21 -05:00
6f597653af stm32: consolidate modules 2021-03-26 19:34:52 -05:00
095ba23ad3 stm32: implement idle trait 2021-03-23 21:04:36 -05:00
556942a6bf stm32f4: implement idle on serial 2021-03-20 23:51:24 -05:00
38cd2672d3 stm32f4: remove usart7, 8 2021-03-20 18:27:24 -05:00
bf39822092 consolidate ExtiPin into stm32 package 2021-03-20 11:07:16 -05:00
d4f35c1729 Move USB to embassy-extras 2021-03-19 20:49:15 -03:00
615bb33dcb USB: Use updated PeripheralMutex 2021-03-19 19:44:30 -03:00
c4e79f66ea Change ClassSet indexing and tune up example
Example doesn't work with F401 because it doesn't have enough usb endpoints
2021-03-19 19:44:30 -03:00
890e93b4f0 Start working on usb serial 2021-03-19 19:44:08 -03:00
03ecc91d55 stm32: consolidate functionality into new pkg 2021-03-19 15:26:20 -05:00
88a25b042a F4: Fix compilation for other MCUs 2021-03-18 22:37:08 -03:00
6eb0522102 Merge pull request #82 from xoviat/c-exti
cleanup exti and remove static mut
2021-03-18 20:35:21 +01:00
b204c0974c cleanup misc. warnings 2021-03-17 21:21:48 -05:00
81d99ff1a0 stm32: exti: update api 2021-03-17 20:56:48 -05:00
ccf2ea77f0 fix borrow checker 2021-03-17 20:52:45 -05:00
3d103acdde stm32f4: exti: update api 2021-03-17 20:46:40 -05:00
739c47cc33 stm32: exti: remove static mut 2021-03-17 20:14:29 -05:00
f248bb17ad Allow unused stuff in fmt.rs 2021-03-18 01:42:28 +01:00
ac74b922c1 Merge pull request #20 from xoviat/canbus
add can
2021-03-17 22:54:40 +01:00
a9076636ac Do not export fmt macros.
This was introduced by accident by me struggling with the weird intra-crate macro importing system...
2021-03-17 22:50:27 +01:00
6ed1a87138 Update features for latest nightly. 2021-03-17 02:48:16 +01:00
0fbb3174d2 fixup 2021-03-15 18:00:00 -05:00
535ac24430 set feature 2021-03-15 17:52:31 -05:00
93625c3f6a add can driver 2021-03-15 17:45:45 -05:00
e44079492c Merge pull request #74 from michaelbeaumont/deref-stm32f4
embassy-stm32f4: Add embedded_hal::digital::v2::* for ExtiPin
2021-03-14 23:47:56 +01:00
01587458ce Merge pull request #67 from xoviat/qei
add qei trait and impl
2021-03-14 23:47:12 +01:00
693177ec27 Add embedded_hal::digital::v2::* for ExtiPin 2021-03-14 23:31:24 +01:00
385895767c Fix exti driver 2021-03-14 23:18:09 +03:00
fa807d2f08 add qei trait and implementation 2021-03-11 16:25:38 -06:00
9956cffb2d cleanup imports 2021-03-05 23:04:20 -06:00
7234c5e509 cleanup traits 2021-03-05 22:59:54 -06:00
13f6c47a88 impl. stm32f405 2021-03-04 17:27:46 -06:00
9bcb0c36dc implement generics on serial 2021-03-04 17:20:35 -06:00
9626aee7db Move traits to separate crate. 2021-03-02 00:32:23 +01:00
45355f184a move most interrupt methods to InterruptExt extension trait. Fixes #35 2021-03-01 00:44:38 +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
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
582fe34dcc stm32f4: exti: clear interrupt pending bit
bit should be cleared when created
2021-02-24 09:36:49 -06:00
f779ec4928 update defmt and defmt-rtt to 0.2.0 2021-02-24 08:44:23 +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
7321ddb0b3 Update to cortex-m 0.7 2021-02-14 23:26:50 +01:00
b69f72e055 Get rid of some warnings 2021-02-13 21:41:36 -03:00
9240a1f437 stm32: add stm32f411 interrupts 2021-01-21 18:59:56 +01:00
dd47bfbc2e stm32f4: Remove stm32f405 being default feature 2021-01-21 18:59:11 +01:00
27cd3a03dc exti: add new ExtiPin driver 2021-01-21 11:08:38 -06:00