Ulf Lilleengen
d1ac6d2824
Merge pull request #2050 from embassy-rs/remove-unused-rb
...
Remove unused ringbuffer
2023-10-12 19:13:12 +00:00
Ulf Lilleengen
636958ff70
fix: correct name in readme
2023-10-12 20:54:38 +02:00
Ulf Lilleengen
7f6fe93f55
fix: remove unused ringbuffer code
2023-10-12 20:54:26 +02:00
Dario Nieuwenhuis
e9b1904db8
Merge pull request #2049 from bugadani/time
...
(Please) Release embassy-time 0.1.4
2023-10-12 16:40:40 +00:00
Dániel Buga
02d2c06b23
Release embassy-time 0.1.4
2023-10-12 18:14:33 +02:00
Dario Nieuwenhuis
debda2f52c
Merge pull request #2045 from embassy-rs/stm32-cs-spam
...
Avoid creating many tiny critical sections in embassy-stm32::init
2023-10-12 14:29:23 +00:00
Dario Nieuwenhuis
97ca0e77bf
stm32: avoid creating many tiny critical sections in init.
...
Saves 292 bytes on stm32f0 bilnky with max optimizations (from 3132 to 2840).
2023-10-12 16:20:34 +02:00
Dario Nieuwenhuis
66e399b5c6
Merge pull request #2035 from pbert519/stm_reset_and_enable
...
STM32: combine RccPeripherals reset() and enable() to enable_and_reset()
2023-10-12 14:09:13 +00:00
Ulf Lilleengen
01eb1a7339
Merge pull request #2033 from andresovela/stm32-add-timeout-to-i2c
...
stm32: add timeout to I2C driver
2023-10-12 10:44:27 +00:00
Andres Oliva
f0d6ee69bc
Add some builds without time feature to CI
2023-10-12 11:25:44 +02:00
pbert
65f81a1f57
Remove critical section for reset
2023-10-12 11:04:45 +02:00
pbert
ecdd7c0e2f
enable clock first
2023-10-12 11:04:44 +02:00
pbert
d7d79f3068
Remove workaround for adc v3
2023-10-12 11:04:20 +02:00
pbert
f65a96c541
STM32: combine RccPeripherals reset() and enable() to reset_and_enable()
2023-10-12 11:04:19 +02:00
xoviat
eb368f77a4
Merge pull request #2023 from xoviat/rcc-mux
...
stm32: add rcc mux for h5
2023-10-12 02:01:27 +00:00
xoviat
57ccc1051a
stm32: add initial rcc mux for h5
2023-10-11 20:59:47 -05:00
Dario Nieuwenhuis
ac84631a2a
Merge pull request #2046 from embassy-rs/stm32-remove-polyfill
...
stm32: remove atomic-polyfill.
2023-10-12 00:14:02 +00:00
Dario Nieuwenhuis
70a91945fc
stm32: remove atomic-polyfill.
2023-10-12 02:07:26 +02:00
Dario Nieuwenhuis
32b89eeba1
net: remove atomic-polyfill.
2023-10-12 02:07:26 +02:00
Andres Oliva
063e6f96da
Remove outdated comment
2023-10-11 23:56:21 +02:00
Andres Oliva
4cec4b0548
Remove more unused stuff
2023-10-11 23:52:26 +02:00
Andres Oliva
e6c47c3718
cargo fmt
2023-10-11 23:47:24 +02:00
Andres Oliva
2f7c2750d1
Feature guarded more unused stuff
2023-10-11 23:45:47 +02:00
Andres Oliva
032b1f2d59
Fix some issues with unused stuff
2023-10-11 23:42:40 +02:00
Andres Oliva
f76d50e837
cfg! macro didn't work, had to duplicate functions with different guards
2023-10-11 23:39:24 +02:00
Andres Oliva
ee5ea7aa06
cargo fmt
2023-10-11 23:34:02 +02:00
Andres Oliva
251d004708
Try using cfg! macro
2023-10-11 23:32:40 +02:00
Andres Oliva
cd68f85501
Added guards to individual APIs
2023-10-11 23:25:13 +02:00
Andres Oliva
b6c0ddb7df
Move the feature gates to the i2c module instead of the pub use statement
2023-10-11 23:05:12 +02:00
Andres Oliva
ee93bbf1d4
Gate pub use _version::*
2023-10-11 22:45:54 +02:00
Andres Oliva
7b1cd42936
Add time feature to CI
2023-10-11 22:20:27 +02:00
Andres Oliva
1cd3ae9bd5
Add comment about feature gate on I2C mod
2023-10-11 22:20:17 +02:00
Andres Oliva
bfcca79c1e
Add time feature back and gate i2c on time
2023-10-11 22:12:03 +02:00
Dario Nieuwenhuis
c283e2d1b9
Merge pull request #2044 from embassy-rs/stm32-pac-pll-enums
...
stm32/rcc: LSE xtal is 32768hz, not 32000hz.
2023-10-11 11:42:27 +00:00
Dario Nieuwenhuis
4a43cd3982
stm32/rcc: LSE xtal is 32768hz, not 32000hz.
...
Fixes #2043
2023-10-11 13:39:04 +02:00
Dario Nieuwenhuis
0dda888c95
Merge pull request #2041 from embassy-rs/stm32-pac-pll-enums
...
stm32/rcc: add LSE/LSI to all chips, add RTC to more chips.
2023-10-11 02:18:24 +00:00
Dario Nieuwenhuis
b91d1eaca0
stm32/rcc: add LSE/LSI to all chips, add RTC to more chips.
2023-10-11 04:12:38 +02:00
Dario Nieuwenhuis
5a19d18b9c
Merge pull request #2039 from jcdickinson/rp-i2c-stop-restart
...
fix (rp i2c): fix restart/stop flags for i2c master methods
2023-10-11 00:40:59 +00:00
Dario Nieuwenhuis
ed7b6056a6
Merge pull request #2038 from jcdickinson/rp-i2c-slew
...
fix (rp i2c): set i2c slew rate to spec value
2023-10-11 00:38:13 +00:00
Jonathan Dickinson
322f9cb153
fix (rp i2c): fix restart/stop flags for i2c master methods
...
Update the start and stop flags for all read/write/read_write methods to match
those in the default blocking implementation of these methods (as well as
other RP2040 I2C implementations, and expected I2C behavior).
Also adds a write_read_async method that doesnt require using embedded-hal, as
this is required to use I2C in an idiomatic fashion (see TI Application Report
SLVA704).
2023-10-10 20:24:38 -04:00
Jonathan Dickinson
3ec4e6320a
fix (rp i2c): set i2c slew rate to spec value
...
The RP2040 datasheet indicates that I2C pins should have a limited
slew rate (Page 440 - 4.3.1.3.). This configures that for both
`I2c` and `I2cSlave`.
In addition, the pin configuration has been centralized to a single
fn.
2023-10-10 20:14:09 -04:00
Dario Nieuwenhuis
233aa1b53a
Merge pull request #2037 from embassy-rs/stm32-pac-pll-enums
...
stm32/rcc: rename hse32 to hse, unify L0 and L1
2023-10-10 23:37:10 +00:00
Dario Nieuwenhuis
21915a9a3f
stm32/rcc: unify L0 and L1.
2023-10-11 01:22:27 +02:00
Dario Nieuwenhuis
d0d0ceec6a
stm32/rcc: rename HSE32 to HSE
2023-10-11 01:06:44 +02:00
Dario Nieuwenhuis
9be61a2967
Merge pull request #2036 from embassy-rs/stm32-pac-pll-enums
...
stm32/rcc: use more PLL etc enums from PAC.
2023-10-10 22:24:08 +00:00
Dario Nieuwenhuis
0cfa8d1bb5
stm32/rcc: use more PLL etc enums from PAC.
2023-10-11 00:12:33 +02:00
Andres Oliva
cd12c9cbce
stm32: add timeout to I2C driver
2023-10-10 18:20:46 +02:00
Dario Nieuwenhuis
eff73d6dfa
Merge pull request #2032 from andresv/stm32-check-flash-lock-before-unlocking
...
stm32 flash: check lock bit before unlocking
2023-10-10 10:12:55 +00:00
Andres Vahter
3616d68aaa
stm32 flash: check lock bit before unlocking
...
It hardfaults if already unlocked flash is unlocked again.
2023-10-10 12:55:43 +03:00
xoviat
904f1cfc7a
Merge pull request #2028 from glaeqen/stm32-eth-station-management
...
stm32/eth: Move `phy_addr` from `Ethernet` to `PHY`
2023-10-10 01:50:45 +00:00