Skip to content

Commit

Permalink
ETM simplifications
Browse files Browse the repository at this point in the history
  • Loading branch information
bugadani committed Oct 31, 2024
1 parent d6cf19a commit 49a87c4
Show file tree
Hide file tree
Showing 7 changed files with 199 additions and 269 deletions.
6 changes: 6 additions & 0 deletions esp-hal/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Removed the pin type parameters from `parl_io::{RxOneBit, RxTwoBits, RxFourBits, RxEightBits, RxSixteenBits}` (#2388)
- Removed the pin type parameters from `lcd_cam::lcd::i8080::{TxEightBits, TxSixteenBits}` (#2388)
- Removed the pin type parameters from `lcd_cam::cam::{RxEightBits, RxSixteenBits}` (#2388)
- `gpio::{Input, Output, OutputOpenDrain, Flex, GpioPin}::{peripheral_input, into_peripheral_output}` have been removed. (#2418)
- The `GpioEtm` prefix has been removed from `gpio::etm` types (#?)
- The `TimerEtm` prefix has been removed from `timer::timg::etm` types (#?)
- The `SysTimerEtm` prefix has been removed from `timer::systimer::etm` types (#?)
- The `GpioEtmEventRising`, `GpioEtmEventFalling`, `GpioEtmEventAny` types have been replaced with `Event` (#?)
- The `TaskSet`, `TaskClear`, `TaskToggle` types have been replaced with `Event` (#?)

## [0.21.1]

Expand Down
8 changes: 8 additions & 0 deletions esp-hal/MIGRATING-0.21.md
Original file line number Diff line number Diff line change
Expand Up @@ -192,3 +192,11 @@ The previous signal function have been replaced by `split`. This change affects
-let output_signal = gpioN.into_peripheral_output();
+let (input_signal, output_signal) = gpioN.split();
```

# ETM simplifications

- The types are no longer prefixed with `GpioEtm`, `TimerEtm` or `SysTimerEtm`. You can still use
import aliasses in case you need to differentiate due to name collisions
(e.g. `use esp_hal::gpio::etm::Event as GpioEtmEvent`).
- The old task and event types have been replaced by `Task` and `Event`.
- GPIO tasks and events are no longer generic.
Loading

0 comments on commit 49a87c4

Please sign in to comment.