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.
Fork of mbed-src by
Revision 588:3825fc0ad3d1, committed 2015-07-13
- Comitter:
- SteveKim
- Date:
- Mon Jul 13 04:35:05 2015 +0000
- Parent:
- 587:65ae2b45b53f
- Commit message:
- Added async_print for test.; Please refer to the below function.; static void uart_irq(UARTName name, int id) in serial_api.c
Changed in this revision
| targets/hal/TARGET_WIZNET/TARGET_W7500x/serial_api.c | Show annotated file Show diff for this revision Revisions of this file |
--- a/targets/hal/TARGET_WIZNET/TARGET_W7500x/serial_api.c Mon Jul 13 04:32:07 2015 +0000
+++ b/targets/hal/TARGET_WIZNET/TARGET_W7500x/serial_api.c Mon Jul 13 04:35:05 2015 +0000
@@ -182,26 +182,18 @@
// mbed Async Debug Print
void (*p_async_print)(const char *format, ...);
-int rx_irq_counter = 0;
static void uart_irq(UARTName name, int id)
{
UART = (UART_TypeDef *)name;
- p_async_print("B");
if (serial_irq_ids[id] != 0) {
- p_async_print("C");
if( UART_GetITStatus(UART,UART_IT_FLAG_TXI) != RESET ){
- p_async_print("D");
irq_handler(serial_irq_ids[id], TxIrq);
- p_async_print("E");
UART_ClearITPendingBit(UART,UART_IT_FLAG_TXI);
- p_async_print("F");
}
if( UART_GetITStatus(UART,UART_IT_FLAG_RXI) != RESET ){
- p_async_print("G");
irq_handler(serial_irq_ids[id], RxIrq);
- //p_async_print("IRQ : UART_IT_FLAG_RXI(%d) \r\n", id);
- p_async_print("H");
+ p_async_print("IRQ : UART_IT_FLAG_RXI(%d) \r\n", id);
}
}
p_async_print("I");
@@ -217,10 +209,7 @@
void UART1_Handler()
{
- rx_irq_counter++;
- p_async_print("A");
uart_irq(UART_1, 1);
- p_async_print("\r\n");
}
#ifdef __cplusplus
}
