Bladeren bron

Fix Compile error for Teensy LC

teensy4-core
Kurt Eckhardt 8 jaren geleden
bovenliggende
commit
a8c467f5e6
1 gewijzigde bestanden met toevoegingen van 5 en 0 verwijderingen
  1. +5
    -0
      teensy3/serial2.c

+ 5
- 0
teensy3/serial2.c Bestand weergeven

@@ -184,6 +184,7 @@ void serial2_end(void)
while (transmitting) yield(); // wait for buffered data to send
NVIC_DISABLE_IRQ(IRQ_UART1_STATUS);
UART1_C2 = 0;
#if defined(KINETISK)
switch (rx_pin_num) {
case 9: CORE_PIN9_CONFIG = PORT_PCR_PE | PORT_PCR_PS | PORT_PCR_MUX(1); break; // PTC3
#if !(defined(__MK64FX512__) || defined(__MK66FX1M0__)) // not on T3.5 or T3.6
@@ -196,6 +197,10 @@ void serial2_end(void)
case 31: CORE_PIN31_CONFIG = PORT_PCR_PE | PORT_PCR_PS | PORT_PCR_MUX(1); break; // PTE0
#endif
}
#elif defined(KINETISL)
CORE_PIN9_CONFIG = PORT_PCR_PE | PORT_PCR_PS | PORT_PCR_MUX(1); // PTC3
CORE_PIN10_CONFIG = PORT_PCR_PE | PORT_PCR_PS | PORT_PCR_MUX(1); // PTC4
#endif
rx_buffer_head = 0;
rx_buffer_tail = 0;
if (rts_pin) rts_deassert();

Laden…
Annuleren
Opslaan