Skip to content

Commit

Permalink
Merge branch 'esp-rs:main' into yanshay_fix_lcd_cam_i8080_sending_gar…
Browse files Browse the repository at this point in the history
…bage_try2
  • Loading branch information
yanshay authored Mar 21, 2024
2 parents 10ddd40 + 33c7c32 commit 3d03adf
Show file tree
Hide file tree
Showing 7 changed files with 701 additions and 225 deletions.
1 change: 1 addition & 0 deletions esp-hal/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- ESP32-C6 / ESP32-H2: Implement `ETM` for general purpose timers (#1274)
- `interrupt::enable` now has a direct CPU enable counter part, `interrupt::enable_direct` (#1310)
- `Delay::delay(time: fugit::MicrosDurationU64)`
- Added async support for TWAI (#1320)

### Fixed

Expand Down
5 changes: 5 additions & 0 deletions esp-hal/src/embassy/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,11 @@ pub fn init(clocks: &Clocks, td: time_driver::TimerType) {

crate::interrupt::enable(Interrupt::I2C_EXT0, Priority::min()).unwrap();
crate::interrupt::enable(Interrupt::GPIO, Priority::min()).unwrap();

#[cfg(twai0)]
crate::interrupt::enable(Interrupt::TWAI0, Priority::min()).unwrap();
#[cfg(twai1)]
crate::interrupt::enable(Interrupt::TWAI1, Priority::min()).unwrap();
}

EmbassyTimer::init(clocks, td)
Expand Down
4 changes: 2 additions & 2 deletions esp-hal/src/soc/esp32/gpio.rs
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ pub enum InputSignal {
RMT_SIG_6 = 89,
RMT_SIG_7 = 90,
EXT_ADC_START = 93,
CAN_RX = 94,
TWAI_RX = 94,
I2CEXT1_SCL = 95,
I2CEXT1_SDA = 96,
HOST_CARD_DETECT_N_1 = 97,
Expand Down Expand Up @@ -473,7 +473,7 @@ pub enum OutputSignal {
PWM2_3L = 119,
PWM2_4H = 120,
PWM2_4L = 121,
CAN_TX = 123,
TWAI_TX = 123,
CAN_BUS_OFF_ON = 124,
SPID4 = 128,
SPID5 = 129,
Expand Down
2 changes: 2 additions & 0 deletions esp-hal/src/soc/esp32s2/gpio.rs
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,7 @@ pub enum InputSignal {
FSPIIO6 = 115,
FSPIIO7 = 116,
FSPICS0 = 117,
TWAI_RX = 123,
SUBSPIQ = 127,
SUBSPID = 128,
SUBSPIHD = 129,
Expand Down Expand Up @@ -287,6 +288,7 @@ pub enum OutputSignal {
FSPICS3 = 120,
FSPICS4 = 121,
FSPICS5 = 122,
TWAI_TX = 123,
SUBSPICLK = 126,
SUBSPIQ = 127,
SUBSPID = 128,
Expand Down
Loading

0 comments on commit 3d03adf

Please sign in to comment.