diff options
author | NIIBE Yutaka <gniibe@fsij.org> | 2016-06-10 08:25:00 +0900 |
---|---|---|
committer | NIIBE Yutaka <gniibe@fsij.org> | 2016-06-10 08:25:00 +0900 |
commit | a6541cbcc650e86c893e5de2a8ca8c5607939c55 (patch) | |
tree | 8ecdb5134afef45f9a1dded1fe1c137df23bb862 /mcu | |
parent | 74c7b5bcb375b9098fe282abb5377eae574fc51b (diff) |
NONE sounds bad, use OK instead
Diffstat (limited to 'mcu')
-rw-r--r-- | mcu/usb-mkl27z.c | 12 | ||||
-rw-r--r-- | mcu/usb-stm32f103.c | 14 |
2 files changed, 13 insertions, 13 deletions
diff --git a/mcu/usb-mkl27z.c b/mcu/usb-mkl27z.c index 0b9b049..ae7e8af 100644 --- a/mcu/usb-mkl27z.c +++ b/mcu/usb-mkl27z.c @@ -332,7 +332,7 @@ usb_lld_ctrl_ack (struct usb_dev *dev) /* Zero length packet for ACK. */ dev->state = WAIT_STATUS_IN; kl27z_prepare_ep0_in (&dev->dev_req, 0, DATA1); - return USB_EVENT_NONE; + return USB_EVENT_OK; } @@ -392,7 +392,7 @@ usb_lld_event_handler (struct usb_dev *dev) USB_CTRL1->ISTAT = USB_IS_STALL; } - return USB_EVENT_NONE; + return USB_EVENT_OK; } @@ -736,7 +736,7 @@ handle_setup0 (struct usb_dev *dev) if ((r = (*handler) (dev)) < 0) { usb_lld_ctrl_error (dev); - return USB_EVENT_NONE; + return USB_EVENT_OK; } else return r; @@ -829,7 +829,7 @@ handle_transaction (struct usb_dev *dev, uint8_t stat) { handle_out0 (dev, stat); USB_CTRL1->ISTAT = USB_IS_TOKDNE; - return USB_EVENT_NONE; + return USB_EVENT_OK; } } else @@ -963,7 +963,7 @@ usb_lld_ctrl_recv (struct usb_dev *dev, void *p, size_t len) kl27z_prepare_ep0_out (p, len, DATA1); dev->state = OUT_DATA; - return USB_EVENT_NONE; + return USB_EVENT_OK; } /* @@ -1006,7 +1006,7 @@ usb_lld_ctrl_send (struct usb_dev *dev, const void *buf, size_t buflen) data_p->len -= len; data_p->addr += len; - return USB_EVENT_NONE; + return USB_EVENT_OK; } void diff --git a/mcu/usb-stm32f103.c b/mcu/usb-stm32f103.c index 9091d8d..347539f 100644 --- a/mcu/usb-stm32f103.c +++ b/mcu/usb-stm32f103.c @@ -359,7 +359,7 @@ usb_lld_ctrl_ack (struct usb_dev *dev) dev->state = WAIT_STATUS_IN; st103_set_tx_count (ENDP0, 0); st103_ep_set_rxtx_status (ENDP0, EP_RX_NAK, EP_TX_VALID); - return USB_EVENT_NONE; + return USB_EVENT_OK; } void usb_lld_init (struct usb_dev *dev, uint8_t feature) @@ -416,7 +416,7 @@ usb_lld_event_handler (struct usb_dev *dev) return usb_handle_transfer (dev, istr_value); } - return USB_EVENT_NONE; + return USB_EVENT_OK; } static void handle_datastage_out (struct usb_dev *dev) @@ -797,7 +797,7 @@ static int handle_setup0 (struct usb_dev *dev) if ((r = (*handler) (dev)) < 0) { usb_lld_ctrl_error (dev); - return USB_EVENT_NONE; + return USB_EVENT_OK; } else return r; @@ -885,7 +885,7 @@ usb_handle_transfer (struct usb_dev *dev, uint16_t istr_value) else { handle_out0 (dev); - return USB_EVENT_NONE; + return USB_EVENT_OK; } } } @@ -908,7 +908,7 @@ usb_handle_transfer (struct usb_dev *dev, uint16_t istr_value) } } - return USB_EVENT_NONE; + return USB_EVENT_OK; } void usb_lld_reset (struct usb_dev *dev, uint8_t feature) @@ -1016,7 +1016,7 @@ int usb_lld_ctrl_recv (struct usb_dev *dev, void *p, size_t len) struct ctrl_data *data_p = &dev->ctrl_data; data_p->addr = p; data_p->len = len; - return USB_EVENT_NONE; + return USB_EVENT_OK; } void usb_lld_to_pmabuf (const void *src, uint16_t addr, size_t n) @@ -1136,5 +1136,5 @@ usb_lld_ctrl_send (struct usb_dev *dev, const void *buf, size_t buflen) st103_set_tx_count (ENDP0, len); st103_ep_set_rxtx_status (ENDP0, EP_RX_NAK, EP_TX_VALID); - return USB_EVENT_NONE; + return USB_EVENT_OK; } |