Joel Rosiene / DMX-K46Z

Dependents:   FRDM-Dowser

Fork of DMX by Suga koubou

You are viewing an older revision! See the latest version

Homepage

Need to update the UART references to the K46Z. The KE02 Sub-Family Reference Manual provides us with the required information.

The modifications are wrapped with the target for the K46: For example,

\#elif defined(TARGET_KL46Z)
if ((p_rx == PTE21) || (p_rx == PTA1)){
_uart = (UARTLP_Type *)UART0;
NVIC_SetPriority(UART0_IRQn, 1);
} else
if (p_rx == PTE1) {
_uart = (UARTLP_Type *)UART1;
NVIC_SetPriority(UART1_IRQn, 1);
} else
if ((p_rx == PTE23) || (p_rx == PTE17)) {
_uart = (UARTLP_Type *)UART2;
NVIC_SetPriority(UART2_IRQn, 1);
}


All wikipages