add/correct docs for gpio::OutputSignal and add PWM output signal to ESP32-S3

This commit is contained in:
dimi 2022-11-07 01:41:11 +01:00
parent 1ab2bb0e3e
commit 7df93cb359
4 changed files with 18 additions and 2 deletions

View File

@ -5,6 +5,7 @@ pub const INPUT_SIGNAL_MAX: u8 = 100;
pub const ONE_INPUT: u8 = 0x1e;
pub const ZERO_INPUT: u8 = 0x1f;
/// Peripheral input signals for the GPIO mux
#[allow(non_camel_case_types)]
#[derive(Clone, Copy, PartialEq)]
pub enum InputSignal {
@ -43,6 +44,7 @@ pub enum InputSignal {
SIG_FUNC_100 = 100,
}
/// Peripheral output signals for the GPIO mux
#[allow(non_camel_case_types)]
#[derive(Clone, Copy, PartialEq)]
pub enum OutputSignal {

View File

@ -5,6 +5,7 @@ pub const INPUT_SIGNAL_MAX: u8 = 100;
pub const ONE_INPUT: u8 = 0x1e;
pub const ZERO_INPUT: u8 = 0x1f;
/// Peripheral input signals for the GPIO mux
#[allow(non_camel_case_types)]
#[derive(Clone, Copy, PartialEq)]
pub enum InputSignal {
@ -52,6 +53,7 @@ pub enum InputSignal {
SIG_FUNC_100 = 100,
}
/// Peripheral output signals for the GPIO mux
#[allow(non_camel_case_types)]
#[derive(Clone, Copy, PartialEq)]
pub enum OutputSignal {

View File

@ -69,7 +69,7 @@ pub enum InputSignal {
PCMCLK = 204,
}
/// Peripheral input signals for the GPIO mux
/// Peripheral output signals for the GPIO mux
#[allow(non_camel_case_types)]
#[derive(PartialEq, Copy, Clone)]
pub enum OutputSignal {

View File

@ -102,7 +102,7 @@ pub enum InputSignal {
PCMCLK = 189,
}
/// Peripheral input signals for the GPIO mux
/// Peripheral output signals for the GPIO mux
#[allow(non_camel_case_types)]
#[derive(PartialEq, Copy, Clone)]
pub enum OutputSignal {
@ -200,6 +200,18 @@ pub enum OutputSignal {
SUBSPID6 = 157,
SUBSPID7 = 158,
SUBSPIDQS = 159,
PWM0_0A = 160,
PWM0_0B = 161,
PWM0_1A = 162,
PWM0_1B = 163,
PWM0_2A = 164,
PWM0_2B = 165,
PWM1_0A = 166,
PWM1_0B = 167,
PWM1_1A = 168,
PWM1_1B = 169,
PWM1_2A = 170,
PWM1_2B = 171,
SDIO_TOHOST_INT = 177,
PCMFSYNC = 194,
PCMCLK = 195,