|
|
|
|
|
|
|
|
while (transmitting) yield(); // wait for buffered data to send |
|
|
while (transmitting) yield(); // wait for buffered data to send |
|
|
NVIC_DISABLE_IRQ(IRQ_UART3_STATUS); |
|
|
NVIC_DISABLE_IRQ(IRQ_UART3_STATUS); |
|
|
UART3_C2 = 0; |
|
|
UART3_C2 = 0; |
|
|
CORE_PIN31_CONFIG = PORT_PCR_PE | PORT_PCR_PS | PORT_PCR_MUX(1); |
|
|
|
|
|
CORE_PIN32_CONFIG = PORT_PCR_PE | PORT_PCR_PS | PORT_PCR_MUX(1); |
|
|
|
|
|
switch (rx_pin_num) { |
|
|
switch (rx_pin_num) { |
|
|
case 31: CORE_PIN31_CONFIG = PORT_PCR_PE | PORT_PCR_PS | PORT_PCR_MUX(1); break; // PTC3 |
|
|
case 31: CORE_PIN31_CONFIG = PORT_PCR_PE | PORT_PCR_PS | PORT_PCR_MUX(1); break; // PTC3 |
|
|
case 63: CORE_PIN63_CONFIG = 0; break; |
|
|
case 63: CORE_PIN63_CONFIG = 0; break; |