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
Gabriel Górski
e62bf6a9fd
Patch tests & examples
2023-10-09 13:46:56 +02:00
Gabriel Górski
7526b8edba
stm32/eth: Move phy_addr
from Ethernet
to PHY
...
Previously, PHY addressing was a concern of the `Ethernet` struct
which limited the `PHY` implementations which very often have to manage
multiple PHYs internally and thus possibly need to address many of them.
This change extends `StationManagement` to allow addressing different
PHY addresses via SMI.
2023-10-09 13:46:56 +02:00
Ilya Epifanov
0c97ce2fcc
fixed rp adc tests
2023-10-09 11:46:57 +02:00
Ilya Epifanov
62d6bb6c8a
added sampling frequency setting to adc capture methods on rp2040
2023-10-09 10:53:29 +02:00
Dario Nieuwenhuis
c3ef98a73d
Merge pull request #2026 from embassy-rs/stm32-pac-pll-enums
...
stm32/rcc: use PLL enums from PAC.
2023-10-09 00:58:22 +00:00
Dario Nieuwenhuis
6186fe0807
stm32/rcc: use PLL enums from PAC.
2023-10-09 02:48:22 +02:00
xoviat
c4cff0b79b
Merge pull request #2025 from xoviat/update-pac
...
stm32: update metapac
2023-10-08 23:35:14 +00:00
xoviat
2e5ab7981e
stm32: update metapac
2023-10-08 18:27:36 -05:00
Dario Nieuwenhuis
9d311121f2
Merge pull request #2022 from HelloWorldTeraByte/impl-pwm-trait
...
Implemented Pwm trait from embedded_hal for simple and complementary pwm
2023-10-07 00:35:05 +00:00
Dario Nieuwenhuis
25c3754cd2
Merge pull request #2019 from embassy-rs/net-hostname
...
net: add support for dhcp hostname option.
2023-10-07 00:17:35 +00:00
Dario Nieuwenhuis
85c6f23dcb
Merge pull request #2018 from jamesmunns/add-derives
...
Add some uncontroversial derives to Error types
2023-10-07 00:03:10 +00:00
Dario Nieuwenhuis
9c6a2d9cbd
Merge pull request #1880 from phire/rp_bootsel
...
rp2040: BOOTSEL button support
2023-10-06 23:56:00 +00:00
Dario Nieuwenhuis
b67b179933
rp/bootsel: add test.
2023-10-07 01:47:25 +02:00
Dario Nieuwenhuis
d4ed8e5779
rp/bootsel: change it to a method on the peripheral.
2023-10-07 01:47:20 +02:00
Scott Mansell
3e054a6f0d
rp2040: implement BOOTSEL button support
2023-10-07 01:39:29 +02:00
Scott Mansell
c6d53e7bce
rp2040: move in_ram helper outside of Flash's impl
...
Allow it to be called from other modules.
2023-10-07 01:39:29 +02:00
Dario Nieuwenhuis
3bf8e4de5f
Merge pull request #2015 from willglynn/stm32u5_faster_clocks
...
stm32: u5: implement >55 MHz clock speeds
2023-10-06 23:38:15 +00:00
Dario Nieuwenhuis
9090a78df4
ci: set target dir if not specified.
2023-10-07 01:34:17 +02:00
James Munns
022d870d61
Add missing derive
2023-10-07 01:33:43 +02:00
Dario Nieuwenhuis
534eb960e9
net: add support for dhcp hostname option.
2023-10-07 01:33:21 +02:00
Dario Nieuwenhuis
7a2b8481f7
Merge pull request #2021 from embassy-rs/stm32-mco
...
stm32: add MCO for all chips
2023-10-06 23:31:32 +00:00
randi
710874021a
Implemented Pwm trait for complementary pwm from embedded_hal
2023-10-07 12:22:31 +13:00