Commit graph

2849 commits

Author SHA1 Message Date
Henrik Alsér
20f56b856f Add embassy-embedded-hal nightly feature 2022-07-09 23:44:08 +02:00
Henrik Alsér
baae64d911 Add embassy-embedded-hal nightly feature 2022-07-09 23:41:02 +02:00
amugniere@gmail.com
fa3e1ab68a correction of the access to flex pin attribute in gpio_v2 2022-07-09 14:06:47 +02:00
huntc
8785fbc6f1 Trait for UsbSupply
Eliminated a signal by using a simpler trait method that returns whether VBus power is available. Also includes a UsbSupply that can be signalled for use with the nRF softdevice. Includes the requirement for waiting for power to become available.
2022-07-09 17:57:31 +10:00
Dario Nieuwenhuis
921bc4d97b
Merge pull request #852 from embassy-rs/rp-flex
rp: add Flex gpio
2022-07-09 02:42:38 +02:00
Henrik Alsér
880b71a1e8 impl SetConfig for stm32 i2c and SPI 2022-07-09 02:28:05 +02:00
Dario Nieuwenhuis
ccf57cfab6 rp: add GPIO HIL test. 2022-07-09 02:14:30 +02:00
Dario Nieuwenhuis
5cc5961c94 rp/gpio: add Flex. 2022-07-09 02:14:30 +02:00
Henrik Alsér
85e67d94ad impl SetConfig for rp2040 SPI 2022-07-09 00:32:55 +02:00
Henrik Alsér
d637510b44 Associated type 2022-07-09 00:00:55 +02:00
Henrik Alsér
15384d27bb Merge upstream 2022-07-08 23:42:19 +02:00
Henrik Alsér
b72ba0a6c4 Merge upstream 2022-07-08 23:37:35 +02:00
amugniere@gmail.com
94c13eb2af forgotten file 2022-07-08 22:34:17 +02:00
amugniere@gmail.com
abba86d1ba Have added doc + minor correction 2022-07-08 22:24:29 +02:00
amugniere@gmail.com
dda528808a Flex/ output open drain test done 2022-07-08 22:16:01 +02:00
amugniere@gmail.com
00df9b507c Flex/ input pull up test done 2022-07-08 22:10:52 +02:00
amugniere@gmail.com
1d91405d4d Flex/ input pull down test done 2022-07-08 22:08:14 +02:00
amugniere@gmail.com
555f18aa95 Flex/ input no pull test done 2022-07-08 22:02:49 +02:00
amugniere@gmail.com
f911ad25c3 Flex/ Test initial output test done 2022-07-08 21:59:09 +02:00
amugniere@gmail.com
39702d7624 set_as_input_output() and set_as_output() : Have added comments and made functions public 2022-07-08 21:46:16 +02:00
bors[bot]
d2a622b3d0
Merge #849
849: Add EH 1.0 impls for stm32 i2c r=Dirbaio a=kalkyl

Add missing stm32 impls for embedded-hal 1.0 i2c traits

Co-authored-by: Henrik Alsér <henrik@mindbite.se>
Co-authored-by: Dario Nieuwenhuis <dirbaio@dirbaio.net>
2022-07-08 15:09:49 +00:00
Henrik Alsér
f30ff9cadc Shared buses with SetConfig 2022-07-08 15:47:47 +02:00
huntc
81796d29b4 New constructor to cater for the softdevice
Also, correctly sets the initial power management state when using power management
2022-07-08 16:22:25 +10:00
Henrik Alsér
43aec9083c Cleanup 2022-07-08 08:03:38 +02:00
Henrik Alsér
51dc9b8de0 Merge branch 'stm32-eh1' of github.com:kalkyl/embassy into stm32-eh1 2022-07-08 08:02:05 +02:00
huntc
8d71a358c8 Build in a new Unpowered state
Replaces the sub-state of representing being being available. Power states also now set enable/disable directly too, which simplifies code.
2022-07-08 15:30:15 +10:00
Dario Nieuwenhuis
01ef03f446 stm32/i2c: impl ErrorType for all. 2022-07-07 15:46:30 +02:00
Henrik Alsér
399e7a4791 NoDma 2022-07-07 15:46:30 +02:00
Henrik Alsér
be731b222e Cleanup 2022-07-07 15:46:30 +02:00
Henrik Alsér
0fe818f4f8 v1 fix 2022-07-07 15:46:30 +02:00
Henrik Alsér
1ed5b387f9 v2 fix 2022-07-07 15:46:30 +02:00
Henrik Alsér
02812754ec rustfmt 2022-07-07 15:46:30 +02:00
Henrik Alsér
2460d21fa4 Add EH 1.0 impls for stm32 i2c 2022-07-07 15:46:30 +02:00
Henrik Alsér
701a765122 NoDma 2022-07-07 08:32:00 +02:00
huntc
4a8f117f25 Puts in the machinery to handle power detected/removed 2022-07-07 10:08:57 +10:00
huntc
c46e9b6cfc Introduces EnabledUsbDevice
EnabledUsbDevice is a wrapper around the UsbDevice where their enablement is also subject to external events, such as POWER events for nRF. It is introduced generically to support other platforms should they also require external signalling for enablement.
2022-07-07 10:08:57 +10:00
bors[bot]
1fb70e2fac
Merge #848
848: Blocking shared bus EH 0.2 impls + example docs r=Dirbaio a=kalkyl

Adds impls for the old embedded-hal v0.2 traits for usability until the ecosystem catches up with EH1.
Also added some basic examples in docs of how the shared buses can be set up.

Co-authored-by: Henrik Alsér <henrik@mindbite.se>
2022-07-06 22:38:55 +00:00
Henrik Alsér
4e7cf44a3e Cleanup 2022-07-07 00:00:17 +02:00
Henrik Alsér
265d43a65d v1 fix 2022-07-06 23:56:44 +02:00
Henrik Alsér
e6887200f5 v2 fix 2022-07-06 23:45:08 +02:00
Henrik Alsér
5492b5c121 rustfmt 2022-07-06 23:31:30 +02:00
Henrik Alsér
2dfb03abda Add EH 1.0 impls for stm32 i2c 2022-07-06 23:25:38 +02:00
Henrik Alsér
4b4fe7245b Add EH 0.2 impls + example docs 2022-07-06 23:02:16 +02:00
bors[bot]
6baddaf539
Merge #845
845: Add blocking shared bus for i2c and SPI r=Dirbaio a=kalkyl

Blocking versions of the shared buses

Co-authored-by: Henrik Alsér <henrik.alser@me.com>
Co-authored-by: Dario Nieuwenhuis <dirbaio@dirbaio.net>
2022-07-06 14:59:29 +00:00
Dario Nieuwenhuis
455374b7f9 spi shared bus: assert/deassert CS inside the lock. 2022-07-06 16:57:29 +02:00
Henrik Alsér
ba2412ff7e Mutex for SPI 2022-07-06 03:47:55 +02:00
Henrik Alsér
d3d82ad87d Mutex 2022-07-06 03:31:21 +02:00
Henrik Alsér
264b32d71b Add blocking shared bus for i2c and SPI 2022-07-06 02:35:46 +02:00
bors[bot]
5fef527764
Merge #844
844: Use correct chip family name for example r=Dirbaio a=lulf

bors r+

Co-authored-by: Ulf Lilleengen <lulf@redhat.com>
2022-07-05 11:51:18 +00:00
Ulf Lilleengen
6f425d7721 Use correct chip family name for example 2022-07-05 13:17:55 +02:00