Skip to content

Commit 273e7b8

Browse files
committed
[ext] Update TinyUSB to v0.18.0
1 parent 83a8c5e commit 273e7b8

File tree

3 files changed

+12
-5
lines changed

3 files changed

+12
-5
lines changed

ext/hathach/tinyusb

Submodule tinyusb updated 95 files

ext/hathach/tusb_config.h.in

+1-1
Original file line numberDiff line numberDiff line change
@@ -44,4 +44,4 @@
4444
{ return _ret; } \
4545
} while(0)
4646

47-
#define TU_ASSERT(...) _GET_3RD_ARG(__VA_ARGS__, MODM_ASSERT_2ARGS, MODM_ASSERT_1ARGS,UNUSED)(__VA_ARGS__)
47+
#define TU_ASSERT(...) TU_GET_3RD_ARG(__VA_ARGS__, MODM_ASSERT_2ARGS, MODM_ASSERT_1ARGS,UNUSED)(__VA_ARGS__)

ext/hathach/tusb_port.cpp.in

+10-3
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,15 @@
1111
// ----------------------------------------------------------------------------
1212

1313
#include <modm/platform/device.hpp>
14-
#include <modm/architecture/interface/interrupt.hpp>
1514
#include <modm/architecture/interface/atomic_lock.hpp>
15+
#include <modm/architecture/interface/delay.hpp>
16+
#include <modm/architecture/interface/interrupt.hpp>
1617
#include "tusb.h"
1718

18-
%% for irq, port, mode in irqs | sort
19+
%% for irq, port, _ in irqs | sort
1920
MODM_ISR({{irq}})
2021
{
21-
tu{{mode}}_int_handler({{port}});
22+
tusb_int_handler({{port}}, true);
2223
}
2324
%% endfor
2425

@@ -99,6 +100,12 @@ tusb_get_device_serial(uint16_t *serial_str)
99100
return sizeof(raw_id) * 2;
100101
}
101102

103+
extern "C" void
104+
tusb_time_delay_ms_api(uint32_t ms)
105+
{
106+
modm::delay_ms(ms);
107+
}
108+
102109
%% if with_debug
103110
#ifdef CFG_TUSB_DEBUG
104111
#include <modm/debug.hpp>

0 commit comments

Comments
 (0)