Hardware Abstraction Layer (HAL) is an abstraction layer, between the physical hardware and the tinyusb stack. Its function is to hide differences in hardware from most of MCUs, so that most of the stack code does not need to be changed to run on systems with a different MCU. HAL are sets of routines that emulate some platform-specific details, giving programs direct access to the hardware resources.
Initialize USB controller hardware.
- Returns
- tusb_error_t type to indicate success or error condition.
- Note
- This function is invoked by tusb_init as part of the initialization.
Definition at line 44 of file hal_lpc11uxx.c.
static void hal_interrupt_disable |
( |
uint8_t |
coreid | ) |
|
|
inlinestatic |
Disable USB Interrupt on a specific USB Controller.
- Parameters
-
[in] | coreid | is a zero-based index to identify USB controller's ID |
- Note
- Some MCUs such as NXP LPC43xx has multiple USB controllers. It is necessary to know which USB controller for those MCUs.
static void hal_interrupt_enable |
( |
uint8_t |
coreid | ) |
|
|
inlinestatic |
Enable USB Interrupt on a specific USB Controller.
- Parameters
-
[in] | coreid | is a zero-based index to identify USB controller's ID |
- Note
- Some MCUs such as NXP LPC43xx has multiple USB controllers. It is necessary to know which USB controller for those MCUs.