X-Git-Url: https://jxself.org/git/?a=blobdiff_plain;f=carlfw%2Finclude%2Fusb.h;h=3f35567f8b9910133cb45fb401a28c56ab39a859;hb=0eb34487ee8e70ecb8e4ee2ed5092b2788eb7f26;hp=f4357603029f8b093286d7615efb58330b13eb63;hpb=95e0b3d5f76e191546422c4dbb7afd2ad679ff8d;p=carl9170fw.git diff --git a/carlfw/include/usb.h b/carlfw/include/usb.h index f435760..3f35567 100644 --- a/carlfw/include/usb.h +++ b/carlfw/include/usb.h @@ -122,12 +122,12 @@ static inline __inline void usb_data_in0Byte(void) static inline __inline void usb_stop_down_queue(void) { - andl(AR9170_USB_REG_DMA_CTL, ~AR9170_DMA_CTL_ENABLE_TO_DEVICE); + andl(AR9170_USB_REG_DMA_CTL, ~AR9170_USB_DMA_CTL_ENABLE_TO_DEVICE); } static inline __inline void usb_start_down_queue(void) { - orl(AR9170_USB_REG_DMA_CTL, AR9170_DMA_CTL_ENABLE_TO_DEVICE); + orl(AR9170_USB_REG_DMA_CTL, AR9170_USB_DMA_CTL_ENABLE_TO_DEVICE); } static inline __inline void usb_clear_input_ep_toggle(unsigned int ep) @@ -162,7 +162,7 @@ static inline void usb_structure_check(void) BUILD_BUG_ON(sizeof(struct usb_interface_descriptor) != USB_DT_INTERFACE_SIZE); } -void __attribute__((noreturn)) jump_to_bootcode(void); +void __noreturn jump_to_bootcode(void); void send_cmd_to_host(const uint8_t len, const uint8_t type, const uint8_t ext, const uint8_t *body); @@ -180,7 +180,7 @@ void usb_print_hex_dump(const void *buf, int len); void usb_init_highspeed_fifo_cfg(void); void usb_init_fullspeed_fifo_cfg(void); -void start(void); -void __attribute__((noreturn)) reboot(void); +void __noreturn start(void); +void __noreturn reboot(void); #endif /* __CARL9170FW_USB_H */