mirror of https://github.com/ARMmbed/mbed-os.git
[RZ/A1H] Deletes the tab codes
parent
d517c2863b
commit
319724621d
|
@ -223,56 +223,56 @@ USBHAL::USBHAL(void)
|
||||||
* Function Name: usb0_api_function_init
|
* Function Name: usb0_api_function_init
|
||||||
* Description : Initializes the USB module in the USB function mode.
|
* Description : Initializes the USB module in the USB function mode.
|
||||||
*****************************************************************************/
|
*****************************************************************************/
|
||||||
/* The clock of USB0 modules is permitted */
|
/* The clock of USB0 modules is permitted */
|
||||||
CPG.STBCR7 &= ~(CPG_STBCR7_MSTP71);
|
CPG.STBCR7 &= ~(CPG_STBCR7_MSTP71);
|
||||||
volatile uint8_t dummy8;
|
volatile uint8_t dummy8;
|
||||||
dummy8 = CPG.STBCR7;
|
dummy8 = CPG.STBCR7;
|
||||||
|
|
||||||
{
|
{
|
||||||
/******************************************************************************
|
/******************************************************************************
|
||||||
* Function Name: usb0_function_setting_interrupt
|
* Function Name: usb0_function_setting_interrupt
|
||||||
* Description : Sets the USB module interrupt level.
|
* Description : Sets the USB module interrupt level.
|
||||||
*****************************************************************************/
|
*****************************************************************************/
|
||||||
#if 0 /*DMA is not supported*/
|
#if 0 /*DMA is not supported*/
|
||||||
IRQn_Type d0fifo_dmaintid;
|
IRQn_Type d0fifo_dmaintid;
|
||||||
IRQn_Type d1fifo_dmaintid;
|
IRQn_Type d1fifo_dmaintid;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
InterruptHandlerRegister(int_id, &_usbisr);
|
InterruptHandlerRegister(int_id, &_usbisr);
|
||||||
GIC_SetPriority(int_id, int_level);
|
GIC_SetPriority(int_id, int_level);
|
||||||
GIC_EnableIRQ(int_id);
|
GIC_EnableIRQ(int_id);
|
||||||
|
|
||||||
#if 0 /*DMA is not supported*/
|
#if 0 /*DMA is not supported*/
|
||||||
d0fifo_dmaintid = Userdef_USB_usb0_function_d0fifo_dmaintid();
|
d0fifo_dmaintid = Userdef_USB_usb0_function_d0fifo_dmaintid();
|
||||||
if (d0fifo_dmaintid != 0xFFFF)
|
if (d0fifo_dmaintid != 0xFFFF)
|
||||||
{
|
{
|
||||||
InterruptHandlerRegister(d0fifo_dmaintid, usb0_function_dma_interrupt_d0fifo);
|
InterruptHandlerRegister(d0fifo_dmaintid, usb0_function_dma_interrupt_d0fifo);
|
||||||
GIC_SetPriority(d0fifo_dmaintid, int_level);
|
GIC_SetPriority(d0fifo_dmaintid, int_level);
|
||||||
GIC_EnableIRQ(d0fifo_dmaintid);
|
GIC_EnableIRQ(d0fifo_dmaintid);
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if 0 /*DMA is not supported*/
|
#if 0 /*DMA is not supported*/
|
||||||
d1fifo_dmaintid = Userdef_USB_usb0_function_d1fifo_dmaintid();
|
d1fifo_dmaintid = Userdef_USB_usb0_function_d1fifo_dmaintid();
|
||||||
if (d1fifo_dmaintid != 0xFFFF)
|
if (d1fifo_dmaintid != 0xFFFF)
|
||||||
{
|
{
|
||||||
InterruptHandlerRegister(d1fifo_dmaintid, usb0_function_dma_interrupt_d1fifo);
|
InterruptHandlerRegister(d1fifo_dmaintid, usb0_function_dma_interrupt_d1fifo);
|
||||||
GIC_SetPriority(d1fifo_dmaintid, int_level);
|
GIC_SetPriority(d1fifo_dmaintid, int_level);
|
||||||
GIC_EnableIRQ(d1fifo_dmaintid);
|
GIC_EnableIRQ(d1fifo_dmaintid);
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
}
|
}
|
||||||
|
|
||||||
/* reset USB module with setting tranciever and HSE=1 */
|
/* reset USB module with setting tranciever and HSE=1 */
|
||||||
usb0_function_reset_module(clock_mode);
|
usb0_function_reset_module(clock_mode);
|
||||||
|
|
||||||
/* clear variables */
|
/* clear variables */
|
||||||
usb0_function_init_status();
|
usb0_function_init_status();
|
||||||
|
|
||||||
/* select USB Function and Interrupt Enable */
|
/* select USB Function and Interrupt Enable */
|
||||||
/* Detect USB Device to attach or detach */
|
/* Detect USB Device to attach or detach */
|
||||||
usb0_function_InitModule(mode);
|
usb0_function_InitModule(mode);
|
||||||
|
|
||||||
{
|
{
|
||||||
uint16_t buf;
|
uint16_t buf;
|
||||||
|
|
Loading…
Reference in New Issue