bjoernQ
878bbc4c0c
GPIO module refactoring
2022-11-29 12:03:04 +01:00
IsaacDynamo
e1c0ac540e
Export InputSignal and OutputSignal
2022-11-26 16:38:02 +01:00
bjoernQ
a876d8d344
Support USB-DEVICE on ESP32-S3 and ESP32-S2
2022-11-02 07:14:50 -07:00
Jesse Braham
00cba4485c
Update esp-hal-common to use the newest PACs
2022-10-19 07:00:20 -07:00
Jesse Braham
3019b78d6a
Fix clock and GPIO drivers, add analog GPIO pins
2022-10-11 10:11:36 -07:00
Jesse Braham
f5f475923f
Add startup code and build/linker scripts, add ADC, eFuse, GPIO, and TIMG
2022-10-11 10:11:36 -07:00
Jesse Braham
5054681ba3
Update to newest embedded-hal alpha and add embedded-hal-nb
2022-09-29 16:07:49 +02:00
Jesse Braham
5ca771a12e
Inject configuration symbols in build script, simplify cfg gating ( #187 )
...
* Update the build script to inject a configuration value for the enabled chip
* Update all cfg gates to use the new symbols instead of the chip features
* Inject architecture and core count symbols as well, update as needed
* Organize the imports and exports of `esp-hal-common`
2022-09-14 07:46:23 -07:00
Maxime Borges
04c8721e60
gpio: Impl From<>
2022-08-28 01:22:33 +02:00
Scott Mabin
be184a552d
critical_section implementations & esp_backtrace (#151 )
...
* CS impl
* use CS Mutex in C3 examples
* use CS Mutex in S2 examples
* Update esp32 example
* run fmt
* Update S3 examples
* Remove uses of unsafe where no longer required
* use esp_backtrace in examples
* fix import & fmt once more
* Bump MSRV to 1.60.0
Co-authored-by: Jesse Braham <jesse@beta7.io>
2022-08-22 20:02:28 +01:00
har7an
26a5029edf
common/gpio: Allow disconnecting IO from peripheral ( #147 )
...
* common/gpio: Allow disconnecting IO from peripheral
* common/gpio: Allow disconnecting input from peripheral
* common/gpio: Document functions for disconnecting
IOs from peripherals.
* common/gpio: Use generic alternate function
passed in from the gpio configuration.
2022-08-16 08:52:07 -07:00
Björn Quentin
2a1ab6da0e
Use the correct AlternateFunction for GPIO ( #137 )
2022-08-08 12:02:40 +01:00
Björn Quentin
e612bd1120
Add some config options to the UART driver ( #99 )
...
* Add some config options to the UART driver
* Use esp-println 0.2.0
* Remove the NoPin type
* Serial constructor now doesn't return a Result anymore
2022-07-12 08:00:02 -07:00
bjoernQ
887798fd6f
Reading raw ADC data for ESP32-C3
2022-07-07 18:39:11 +02:00
bjoernQ
568e37c166
Reading raw ADC data on ESP32 and ESP32-S2
2022-07-07 17:55:26 +02:00
Björn Quentin
7e25eebd8d
Implement DAC support for ESP32/ESP32-S2 ( #92 )
...
* Implement DAC support for ESP32/ESP32-S2
* Adapt the DAC samples after rebase
2022-06-30 11:57:16 -07:00
Jesse Braham
54be1b328d
Add a method to each GPIO type which returns its pin number
2022-06-28 14:55:33 -07:00
Jesse Braham
3d481901a5
Put the embedded-hal alpha trait implementations behind a feature ( #88 )
...
* Remove unused dependencies from HAL packages
* Put the `embedded-hal` alpha trait implementations behind a feature
2022-06-27 10:13:18 +01:00
Jesse Braham
8663153e12
Implement the embedded-hal alpha traits for the GPIO and I2C drivers
2022-06-14 17:28:03 +02:00
bjoernQ
9c244ba16c
Make sure that HAL users don't need to depend on esp-hal-common
2022-06-13 16:38:58 +02:00
bjoernQ
918f7a7c8e
Electrical state of open drain output can be read
2022-06-13 16:38:58 +02:00
bjoernQ
0dd0238ce7
Simplify GPIO Macros
2022-06-10 15:04:23 +02:00
Jesse Braham
422cd5036d
Use the PTR constant instead of the ptr() function for peripherals
2022-06-07 10:08:52 -07:00
Jesse Braham
e745e84869
Fix a whole bunch of clippy warnings
2022-05-05 11:51:12 +02:00
Jesse Braham
ec6a82b3f4
Clean up imports and format all packages
2022-05-05 11:16:05 +02:00
bjoernQ
67f21460f8
Implement workaround for ESP32 errata 3.6
2022-05-03 10:08:24 +02:00
bjoernQ
4cc78c4b6b
Move GPIO type definitions to esp-hal-common
2022-03-01 14:16:57 +01:00
bjoernQ
cac30b7544
Add basic interrupt support for ESP32C3 and ESP32
2022-01-31 16:34:45 +00:00
Jesse Braham
ef5d1ac7f4
Refactor GPIO module to make traits accessible in esp-hal-common crate ( #9 )
...
* Extract all of the enums/structs/traits that we easily can from gpio!
* Pull the remaining traits (which we're able to) out of gpio!
2022-01-24 08:34:45 -08:00
Jesse Braham
10931726eb
Begin adding some doc comments, update rustfmt config
2022-01-10 15:23:01 -08:00
Jesse Braham
b953041da0
Format GPIO-related macros and their invocations to improve readability
2022-01-06 09:34:32 -08:00
Jesse Braham
2bf61d9b53
Flatten the gpio module in the esp-hal-common package
2022-01-06 08:08:11 -08:00