Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: Frequency_Counter_w_GPS_1PPS FreqCntr_GPS1PPS_F746F4xx_w_recipro
Fork of iSerial by
iSerial_NucleoF4xx.h
00001 #if defined(TARGET_NUCLEO_F411RE) || \ 00002 defined(TARGET_NUCLEO_F401RE) || \ 00003 defined(TARGET_NUCLEO_F446RE) 00004 00005 void 00006 iSerial::enable_uart_irq(void) 00007 { 00008 switch(tx) { 00009 case USBTX: 00010 // case SERIAL_TX: 00011 // case PA_2: 00012 // case D1: 00013 NVIC_EnableIRQ(USART2_IRQn); 00014 break; 00015 case PA_9: 00016 case PB_6: 00017 // case D8: 00018 NVIC_EnableIRQ(USART1_IRQn); 00019 break; 00020 case PA_11: 00021 case PC_6: 00022 NVIC_EnableIRQ(USART6_IRQn); 00023 break; 00024 } 00025 } 00026 00027 void 00028 iSerial::disable_uart_irq(void) 00029 { 00030 switch(tx) { 00031 case USBTX: 00032 // case SERIAL_TX: 00033 // case PA_2: 00034 // case D1: 00035 NVIC_DisableIRQ(USART2_IRQn); 00036 break; 00037 case PA_9: 00038 case PB_6: 00039 // case D8: 00040 NVIC_DisableIRQ(USART1_IRQn); 00041 break; 00042 case PA_11: 00043 case PC_6: 00044 NVIC_DisableIRQ(USART6_IRQn); 00045 break; 00046 } 00047 } 00048 00049 #endif
Generated on Wed Jul 13 2022 12:22:36 by
1.7.2
