From 08c778d18d9351dd290ee21e2a96c8ec30a5bf06 Mon Sep 17 00:00:00 2001 From: ccli8 Date: Tue, 9 May 2017 09:22:41 +0800 Subject: [PATCH] [NUC472/M453] Change comment for serial_getc/serial_putc --- targets/TARGET_NUVOTON/TARGET_M451/serial_api.c | 4 ++-- targets/TARGET_NUVOTON/TARGET_NUC472/serial_api.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/targets/TARGET_NUVOTON/TARGET_M451/serial_api.c b/targets/TARGET_NUVOTON/TARGET_M451/serial_api.c index deee90462d..4fa7e7a47a 100644 --- a/targets/TARGET_NUVOTON/TARGET_M451/serial_api.c +++ b/targets/TARGET_NUVOTON/TARGET_M451/serial_api.c @@ -350,7 +350,7 @@ void serial_irq_set(serial_t *obj, SerialIrq irq, uint32_t enable) int serial_getc(serial_t *obj) { - // TODO: Fix every byte access requires accompaniment of one interrupt. This has side effect of performance degradation. + // NOTE: Every byte access requires accompaniment of one interrupt. This has side effect of performance degradation. while (! serial_readable(obj)); int c = UART_READ(((UART_T *) NU_MODBASE(obj->serial.uart))); @@ -365,7 +365,7 @@ int serial_getc(serial_t *obj) void serial_putc(serial_t *obj, int c) { - // TODO: Fix every byte access requires accompaniment of one interrupt. This has side effect of performance degradation. + // NOTE: Every byte access requires accompaniment of one interrupt. This has side effect of performance degradation. while (! serial_writable(obj)); UART_WRITE(((UART_T *) NU_MODBASE(obj->serial.uart)), c); diff --git a/targets/TARGET_NUVOTON/TARGET_NUC472/serial_api.c b/targets/TARGET_NUVOTON/TARGET_NUC472/serial_api.c index 426b2348a4..a67684d8d4 100644 --- a/targets/TARGET_NUVOTON/TARGET_NUC472/serial_api.c +++ b/targets/TARGET_NUVOTON/TARGET_NUC472/serial_api.c @@ -382,7 +382,7 @@ void serial_irq_set(serial_t *obj, SerialIrq irq, uint32_t enable) int serial_getc(serial_t *obj) { - // TODO: Fix every byte access requires accompaniment of one interrupt. This has side effect of performance degradation. + // NOTE: Every byte access requires accompaniment of one interrupt. This has side effect of performance degradation. while (! serial_readable(obj)); int c = UART_READ(((UART_T *) NU_MODBASE(obj->serial.uart))); @@ -397,7 +397,7 @@ int serial_getc(serial_t *obj) void serial_putc(serial_t *obj, int c) { - // TODO: Fix every byte access requires accompaniment of one interrupt. This has side effect of performance degradation. + // NOTE: Every byte access requires accompaniment of one interrupt. This has side effect of performance degradation. while (! serial_writable(obj)); UART_WRITE(((UART_T *) NU_MODBASE(obj->serial.uart)), c);