summaryrefslogtreecommitdiff
path: root/ao_usb.c
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2009-04-29 17:46:56 -0700
committerKeith Packard <keithp@keithp.com>2009-04-29 17:46:56 -0700
commitde7814c738488c2c16c6216c93fa78128895e5d5 (patch)
tree07a295d9f3786623e382a92bbab811ac19a78016 /ao_usb.c
parent4ae74fffb939d67424efa3e7f433637f1f920ebc (diff)
Use 'char' instead of 'uint8_t' for character data
String and character constants are of char type, so using uint8_t causes promotion to 16-bit types when comparing the two.
Diffstat (limited to 'ao_usb.c')
-rw-r--r--ao_usb.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/ao_usb.c b/ao_usb.c
index d02bfac8..69f87fc4 100644
--- a/ao_usb.c
+++ b/ao_usb.c
@@ -316,7 +316,7 @@ ao_usb_flush(void) __critical
}
void
-ao_usb_putchar(uint8_t c) __critical
+ao_usb_putchar(char c) __critical
{
for (;;) {
USBINDEX = AO_USB_IN_EP;
@@ -332,10 +332,10 @@ ao_usb_putchar(uint8_t c) __critical
}
}
-uint8_t
+char
ao_usb_getchar(void) __critical
{
- __xdata uint8_t c;
+ __xdata char c;
while (ao_usb_out_bytes == 0) {
for (;;) {
USBINDEX = AO_USB_OUT_EP;