Browse Source

Use IRQ_PRIORITY (not hard-coded number) in Serial3

teensy4-core
PaulStoffregen 10 years ago
parent
commit
f2cecda077
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      teensy3/serial3.c

+ 1
- 1
teensy3/serial3.c View File

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);
} }



Loading…
Cancel
Save