diff options
| author | hathach <[email protected]> | 2013-03-04 18:46:02 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2013-03-04 18:46:02 +0700 |
| commit | 2c8596edebaedd0ceae46a56385c71c83dda531c (patch) | |
| tree | de683bd9a77da9906879aa8e21d3cc546407b3c4 /tinyusb/tusb.c | |
| parent | a259be6edf5bb0f8c4e77f3b321a826d8e86bd25 (diff) | |
abstract call chains from hal usb isr
Diffstat (limited to 'tinyusb/tusb.c')
| -rw-r--r-- | tinyusb/tusb.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/tinyusb/tusb.c b/tinyusb/tusb.c index 49f8ef253..fb5cf013c 100644 --- a/tinyusb/tusb.c +++ b/tinyusb/tusb.c @@ -54,3 +54,15 @@ tusb_error_t tusb_init(void) return TUSB_ERROR_NONE; } +// called from hal layer +void tusb_isr(uint8_t controller_id) +{ +#if MODE_HOST_SUPPORTED + hcd_isr(controller_id); +#endif + +#ifdef TUSB_CFG_DEVICE + dcd_isr(controller_id); +#endif + +} |
