diff options
| author | hathach <[email protected]> | 2018-12-05 13:20:25 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2018-12-05 13:20:25 +0700 |
| commit | a73017fdc23f7bedf38e754cba3a4ffbcf8d4c27 (patch) | |
| tree | 04c68202c20a45318ea61d27fede4bfd12e0beac /src/tusb.c | |
| parent | 6048a3bff48dc588849f83f4088367d20b6bc651 (diff) | |
hal clean up
- replace tusb_hal_int_enable/disable to dcd_int_enable/disable,
hcd_int_enable/disable
- remove tusb_hal_init(), this will be part of dcd_init/hcd_init,
anything beyond dcd/hcd should be inited by bsp
Diffstat (limited to 'src/tusb.c')
| -rw-r--r-- | src/tusb.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/src/tusb.c b/src/tusb.c index e9db184f2..81c4907fb 100644 --- a/src/tusb.c +++ b/src/tusb.c @@ -47,14 +47,11 @@ static bool _initialized = false;
-
tusb_error_t tusb_init(void)
{
// skip if already initialized
if (_initialized) return TUSB_ERROR_NONE;
- TU_VERIFY( tusb_hal_init(), TUSB_ERROR_FAILED ) ; // hardware init
-
#if MODE_HOST_SUPPORTED
TU_ASSERT_ERR( usbh_init() ); // host stack init
#endif
|
