rename hal_interrupt_* to hal_usb_int_*
This commit is contained in:
		| @@ -191,11 +191,11 @@ static inline void osal_queue_flush(osal_queue_t const queue_hdl) | ||||
|       else\ | ||||
|         return TUSB_ERROR_OSAL_WAITING;\ | ||||
|     } else{\ | ||||
|       /*TODO mutex lock hal_interrupt_disable */\ | ||||
|       /*TODO mutex lock hal_usb_int_disable */\ | ||||
|       memcpy(p_data, queue_hdl->buffer + (queue_hdl->rd_idx * queue_hdl->item_size), queue_hdl->item_size);\ | ||||
|       queue_hdl->rd_idx = (queue_hdl->rd_idx + 1) % queue_hdl->depth;\ | ||||
|       queue_hdl->count--;\ | ||||
|       /*TODO mutex unlock hal_interrupt_enable */\ | ||||
|       /*TODO mutex unlock hal_usb_int_enable */\ | ||||
|       *(p_error) = TUSB_ERROR_NONE;\ | ||||
|     }\ | ||||
|   }while(0) | ||||
| @@ -245,7 +245,7 @@ static inline void osal_semaphore_reset(osal_semaphore_t sem_hdl) | ||||
|       else\ | ||||
|         return TUSB_ERROR_OSAL_WAITING;\ | ||||
|     } else{\ | ||||
|       if (sem_hdl->count) sem_hdl->count--; /*TODO mutex hal_interrupt_disable consideration*/\ | ||||
|       if (sem_hdl->count) sem_hdl->count--; /*TODO mutex hal_usb_int_disable consideration*/\ | ||||
|       *(p_error) = TUSB_ERROR_NONE;\ | ||||
|     }\ | ||||
|   }while(0) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 hathach
					hathach