Browse Source

Serial4.setTX - used wrong SIm_SCGC4 test

Was using UART2, should be UART3
teensy4-core
Kurt Eckhardt 8 years ago
parent
commit
78189d6f15
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      teensy3/serial4.c

+ 1
- 1
teensy3/serial4.c View File



if (opendrain) pin |= 128; if (opendrain) pin |= 128;
if (pin == tx_pin_num) return; if (pin == tx_pin_num) return;
if ((SIM_SCGC4 & SIM_SCGC4_UART2)) {
if ((SIM_SCGC4 & SIM_SCGC4_UART3)) {
switch (tx_pin_num & 127) { switch (tx_pin_num & 127) {
case 32: CORE_PIN32_CONFIG = 0; break; // PTB11 case 32: CORE_PIN32_CONFIG = 0; break; // PTB11
} }

Loading…
Cancel
Save