Was using UART2, should be UART3teensy4-core
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 | ||||
} | } |