remove tusb_isr(), rename hal_hcd_isr() and hal_dcd_isr()
This commit is contained in:
		| @@ -68,9 +68,6 @@ static inline bool endpointhandle_is_equal(endpoint_handle_t x, endpoint_handle_ | ||||
|   return (x.coreid == y.coreid) && (x.index == y.index); | ||||
| } | ||||
|  | ||||
|  | ||||
| void dcd_isr(uint8_t coreid); | ||||
|  | ||||
| //------------- Controller API -------------// | ||||
| bool hal_dcd_init        (uint8_t coreid); | ||||
| void hal_dcd_connect     (uint8_t coreid); | ||||
|   | ||||
| @@ -216,7 +216,7 @@ static void endpoint_control_isr(void) | ||||
|   LPC_USB->USBEpIntClr = endpoint_int_status; // acknowledge interrupt TODO cannot immediately acknowledge setup packet | ||||
| } | ||||
|  | ||||
| void dcd_isr(uint8_t coreid) | ||||
| void hal_dcd_isr(uint8_t coreid) | ||||
| { | ||||
|   (void) coreid; | ||||
|   uint32_t const device_int_enable = LPC_USB->USBDevIntEn; | ||||
| @@ -402,7 +402,7 @@ bool hal_dcd_control_xfer(uint8_t coreid, tusb_direction_t dir, uint8_t * p_buff | ||||
|  | ||||
|   //------------- Status Phase (opposite direct to Data) -------------// | ||||
|   if (dir == TUSB_DIR_HOST_TO_DEV) | ||||
|   { // only write for CONTROL OUT, CONTROL IN data will be retrieved in dcd_isr // TODO ???? | ||||
|   { // only write for CONTROL OUT, CONTROL IN data will be retrieved in hal_dcd_isr // TODO ???? | ||||
|     VERIFY_STATUS ( pipe_control_write(NULL, 0), false ); | ||||
|   } | ||||
|  | ||||
|   | ||||
| @@ -296,7 +296,7 @@ static void endpoint_control_isr(uint32_t int_status) | ||||
|   } | ||||
| } | ||||
|  | ||||
| void dcd_isr(uint8_t coreid) | ||||
| void hal_dcd_isr(uint8_t coreid) | ||||
| { | ||||
|   (void) coreid; | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 hathach
					hathach