Bladeren bron

Merge pull request #381 from KurtE/T4_pwm_sdcard_pins

T4 pwm sdcard pins
main
Paul Stoffregen 5 jaren geleden
bovenliggende
commit
6efa298f18
No account linked to committer's email address
2 gewijzigde bestanden met toevoegingen van 14 en 1 verwijderingen
  1. +1
    -1
      teensy4/HardwareSerial.h
  2. +13
    -0
      teensy4/pwm.c

+ 1
- 1
teensy4/HardwareSerial.h Bestand weergeven

@@ -146,7 +146,7 @@ public:
void (*serial_event_handler_check)(void);
volatile uint32_t &ccm_register;
const uint32_t ccm_value;
pin_info_t rx_pins[cnt_tx_pins];
pin_info_t rx_pins[cnt_rx_pins];
pin_info_t tx_pins[cnt_tx_pins];
const uint8_t cts_pin;
const uint8_t cts_mux_val;

+ 13
- 0
teensy4/pwm.c Bestand weergeven

@@ -51,6 +51,12 @@ const struct pwm_pin_info_struct pwm_pin_info[] = {
{0, M(1, 0), 0, 0},
{0, M(1, 0), 0, 0},
{1, M(2, 0), 2, 1}, // FlexPWM2_0_B 33 // EMC_07
{1, M(1, 1), 2, 1}, // FlexPWM1_1_B 34 // SD_B0_03
{1, M(1, 1), 1, 1}, // FlexPWM1_1_A 35 // SD_B0_02
{1, M(1, 0), 2, 1}, // FlexPWM1_0_B 36 // SD_B0_01
{1, M(1, 0), 1, 1}, // FlexPWM1_0_A 37 // SD_B0_00
{1, M(1, 2), 2, 1}, // FlexPWM1_2_B 38 // SD_B0_05
{1, M(1, 2), 1, 1}, // FlexPWM1_2_A 39 // SD_B0_04
};

#elif defined(__IMXRT1052__)
@@ -90,6 +96,13 @@ const struct pwm_pin_info_struct pwm_pin_info[] = {
{1, M(1, 0), 1, 1}, // FlexPWM1_0_A 31 // EMC_23
{0, M(1, 0), 0, 0},
{1, M(2, 1), 1, 1}, // FlexPWM2_1_A 33 // EMC_08
{1, M(2, 0), 2, 1}, // FlexPWM2_0_B 33 // EMC_07
{1, M(1, 1), 2, 1}, // FlexPWM1_1_B 34 // SD_B0_03
{1, M(1, 1), 1, 1}, // FlexPWM1_1_A 35 // SD_B0_02
{1, M(1, 0), 2, 1}, // FlexPWM1_0_B 36 // SD_B0_01
{1, M(1, 0), 1, 1}, // FlexPWM1_0_A 37 // SD_B0_00
{1, M(1, 2), 2, 1}, // FlexPWM1_2_B 38 // SD_B0_05
{1, M(1, 2), 1, 1}, // FlexPWM1_2_A 39 // SD_B0_04
};

#endif // __IMXRT1052__

Laden…
Annuleren
Opslaan