c44bed300b
Correctly set alternate function for stm32f1 gpios
2021-10-11 22:57:21 +02:00
091e7e1f98
Generate USART pin definitions for stm32f1
2021-10-11 22:57:21 +02:00
39880de958
partial alternate function configuration on STM32f1
2021-10-11 22:57:10 +02:00
f9a576d13d
feat: Add spi support for STM32F1 variants
2021-10-11 22:39:48 +02:00
995cd01cbc
ran fmt
2021-10-11 15:31:25 +02:00
4643727fea
Made all PPI channels not configurable (even though they are) so they can't use unimplemented features
2021-10-11 15:12:40 +02:00
a7c37d2ff4
Fix typo in RunQueue documentation
2021-10-11 13:55:05 +02:00
5ae276fe50
Update to newer revision of async lorawan stack
2021-10-11 13:51:00 +02:00
a8407c8aba
Merge remote-tracking branch 'upstream/master'
2021-10-11 10:59:34 +02:00
20674f7126
Initial support for nrf9160
2021-10-11 10:39:38 +02:00
9fec833015
Merge pull request #419 from embassy-rs/nrf-fixes-2
...
Nrf fixes 2
2021-10-11 01:42:28 +02:00
14c3260d88
nrf/saadc: move chip-specific mappings to chips/
2021-10-11 01:36:31 +02:00
cf13dd7df8
nrf/ppi: nrf52805 only has 10 configurable channels.
2021-10-11 01:20:51 +02:00
6e7abba9ff
nrf: rename Cargo feature references from "51" to "nrf51".
...
Note: the feature doesn't actually exist, references are there just in case
nrf51xx is supported in the future.
2021-10-11 01:09:57 +02:00
34637bf2d0
Merge pull request #418 from embassy-rs/fix-saadc
...
nrf: saadc fixes
2021-10-11 01:00:22 +02:00
668364da9c
nrf/saadc: nrf52805 only has 2 channels
2021-10-11 00:55:31 +02:00
0b26ab7bbc
nrf/saadc: nrf52820 doesn't have it.
2021-10-11 00:55:17 +02:00
902f566b9a
Merge pull request #417 from huntc/extend-saadc
...
Extend SAADC one shot support
2021-10-11 00:45:49 +02:00
8c9e50b378
Conflates the negative and positive types as they are the same, and renames pin to input as they can be more than pins
2021-10-11 09:38:35 +11:00
b043778f75
Removed the NotConnected as it isn't used.
2021-10-11 09:08:58 +11:00
25d6a2cd13
No use case understood for NotConnected, so hiding it for now
2021-10-11 08:56:53 +11:00
617a976e96
No need for unwrap
2021-10-11 08:54:24 +11:00
5f5470a320
Need to borrow the pins for the lifetime of the config, and subsequently the one shot.
2021-10-11 08:52:45 +11:00
1c4c813255
Merge pull request #410 from lulf/embassy-lora
...
Add embassy-lora crate
2021-10-10 21:23:02 +02:00
cef6158c31
Extend SAADC one shot support
...
One-shot mode now permits the sampling of differential pins, and the sampling of multiple pins simultaneously.
A new ChannelConfig structure has been introduced so that multiple channels can be configured individually. Further, the `sample` method now accepts a buffer into which samples are written.
Along the way, I've reset some default configuration to align with Nordic's settings in their nrfx saadc driver. Specifically, the channel gain defaults to 6 (from 4) and the time defaults to 10us (from 20us).
2021-10-09 11:25:18 +11:00
009b77c1b9
Merge pull request #414 from embassy-rs/nrf-saadc-remove-trait
...
nrf/saadc: remove Sample trait.
2021-10-07 02:15:19 +02:00
0e05ba688d
nrf/saadc: remove Sample trait.
2021-10-07 02:10:22 +02:00
a816776cb5
Add matrix bot
2021-10-06 20:34:38 +02:00
16a47a0ad9
Add embassy-lora crate
...
This crate contains async radio drivers for various lora drivers that
work with embassy timers. The code is imported from Drogue Device (
https://github.com/drogue-iot/drogue-device )
The radio drivers integrate with the async LoRaWAN MAC layer in the
lorawan-device crate.
Also added is an example for the STM32WL55 and for STM32L0 (requires
the LoRa Discovery board) for LoRaWAN. Future work is to make the
underlying radio drivers using fully async SPI when communicating
with the peripheral.
2021-09-30 10:32:24 +02:00
d9e2d17625
Merge pull request #380 from bgamari/stm32g0-adc
...
Fix STM32G0 ADC
2021-09-29 06:58:33 +02:00
006bbea51a
stm32/adc: Add IN0 channel
2021-09-29 00:32:40 -04:00
5a38cc2140
stm32/dac: Ensure that clock is enabled
2021-09-29 00:32:40 -04:00
0b9961584b
stm32/adc: Ensure that clock is enabled
...
Sadly due to the inconsistency in clocking configuration across devices
we cannot use RccPeripheral.
2021-09-29 00:32:40 -04:00
573e6ec373
stm32g0: Add support for low-power run
2021-09-28 21:19:10 -04:00
794798e225
stm32g0: Add support for HSI divider
2021-09-28 21:19:10 -04:00
aa4069fe10
stm32/adc: Fix ADC support for STM32G0
2021-09-28 21:19:10 -04:00
e2e0464d04
stm32/adc: Factor out conversion logic
...
Also guard errata workaround correctly.
2021-09-28 18:00:05 -04:00
b6f84efd90
Merge pull request #406 from mryndzionek/stm32f1_support
...
Basic STM32F1 support
2021-09-28 19:20:23 +02:00
d14e555ee7
Bump stm32-data
2021-09-28 19:11:33 +02:00
ce361abb1b
Changing the casts (code review request)
2021-09-28 18:31:04 +02:00
bce909ec1e
Initial STM32F1 family support with two examples for STM32F103C8 (Blue Pill)
2021-09-28 18:31:04 +02:00
1650983e46
Merge pull request #407 from theunkn0wn1/fix/into_af
...
Fix: erroneous behavior of pins being configured into AF
2021-09-28 00:54:15 +02:00
ab60cfd64b
Patch additional regressions
2021-09-27 15:48:56 -07:00
67e2f9159c
set moder::ALTERNATE last when configuring pins to AF modes.
...
- as per STM32F4xx_hal's impl
2021-09-27 15:27:43 -07:00
6aa675994d
Merge pull request #405 from theunkn0wn1/feature/crc_hal
...
Feature: CRC HAL
2021-09-27 23:55:38 +02:00
07e20a7443
Pub use version-specific CRC symbols, not just the CRC struct.
2021-09-27 11:17:31 -07:00
a26ffeb84b
Cargo fmt
2021-09-27 10:49:32 -07:00
e36d4f460a
Fix variable names in crc_v2/v3.
...
removed `reclaim` in crc_v1.
used write instead of modify.
renamed `init` to `reset` in crc_v1.
2021-09-27 10:46:09 -07:00
43ad28b9f9
Use unborrow for CRC constructor
...
sort feature gates
fix repetition in CRC config names
2021-09-27 10:38:55 -07:00
7392e33ad5
cargo fmt
2021-09-26 19:20:21 -07:00