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
Diff: iSerial_LPC11U24.h
- Revision:
- 10:04095c7f816a
diff -r 45be5c5d5101 -r 04095c7f816a iSerial_LPC11U24.h
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/iSerial_LPC11U24.h Fri Jan 02 10:45:12 2015 +0000
@@ -0,0 +1,29 @@
+#if defined(TARGET_LPC11U24)
+
+void
+iSerial::enable_uart_irq(void)
+{
+ switch(tx) {
+ case USBTX:
+ NVIC_EnableIRQ(UART_IRQn);
+ break;
+ case p9:
+ NVIC_EnableIRQ(UART_IRQn);
+ break;
+ }
+}
+
+void
+iSerial::disable_uart_irq(void)
+{
+ switch(tx) {
+ case USBTX:
+ NVIC_DisableIRQ(UART_IRQn);
+ break;
+ case p9:
+ NVIC_DisableIRQ(UART_IRQn);
+ break;
+ }
+}
+
+#endif
