Explorar el Código

Use IRQ_PRIORITY (not hard-coded number) in Serial3

teensy4-core
PaulStoffregen hace 11 años
padre
commit
f2cecda077
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. +1
    -1
      teensy3/serial3.c

+ 1
- 1
teensy3/serial3.c Ver fichero

UART2_C1 = 0; UART2_C1 = 0;
UART2_PFIFO = 0; UART2_PFIFO = 0;
UART2_C2 = C2_TX_INACTIVE; UART2_C2 = C2_TX_INACTIVE;
NVIC_SET_PRIORITY(IRQ_UART2_STATUS, 64);
NVIC_SET_PRIORITY(IRQ_UART2_STATUS, IRQ_PRIORITY);
NVIC_ENABLE_IRQ(IRQ_UART2_STATUS); NVIC_ENABLE_IRQ(IRQ_UART2_STATUS);
} }



Cargando…
Cancelar
Guardar