X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;ds=sidebyside;f=bertos%2Fdrv%2Fusb_serial.c;h=0a57a7b6da04c5dd76c26a36838dc757cbcac2ed;hb=745d9627b4c8b8db6a17511cf1b1ca380c4193d7;hp=fd1ae517b07b481404e7c819db11ccbfda667b36;hpb=493d98f6f007571506feb2d6b4250b63e2edc7e1;p=bertos.git diff --git a/bertos/drv/usb_serial.c b/bertos/drv/usb_serial.c index fd1ae517..0a57a7b6 100644 --- a/bertos/drv/usb_serial.c +++ b/bertos/drv/usb_serial.c @@ -178,7 +178,7 @@ static int usb_serial_hw_init(void) #if CONFIG_KERN MOD_CHECK(proc); #endif - if (usb_device_register(&usb_serial) < 0) + if (usb_deviceRegister(&usb_serial) < 0) return -1; LOG_INFO("usb-serial: registered new USB interface driver\n"); return 0; @@ -197,7 +197,7 @@ static size_t usb_serial_write(struct KFile *fd, /* Silent compiler warnings if _DEBUG is not enabled */ (void)fd; ASSERT(fds->is_open); - return usb_ep_write(usb_serial_ep_in_descriptor.bEndpointAddress, + return usb_endpointWrite(usb_serial_ep_in_descriptor.bEndpointAddress, buf, size); } @@ -213,7 +213,7 @@ static size_t usb_serial_read(struct KFile *fd, void *buf, size_t size) /* Silent compiler warnings if _DEBUG is not enabled */ (void)fd; ASSERT(fds->is_open); - return usb_ep_read(usb_serial_ep_out_descriptor.bEndpointAddress, + return usb_endpointRead(usb_serial_ep_out_descriptor.bEndpointAddress, buf, size); } @@ -293,7 +293,7 @@ static struct KFile *usb_serial_reopen(struct KFile *fd) * * \return 0 if OK, a negative value in case of error. */ -int usb_serial_init(struct USBSerial *fds, int unit) +int usb_serialInit(struct USBSerial *fds, int unit) { memset(fds, 0, sizeof(*fds));