mirror of
https://github.com/hathach/tinyusb.git
synced 2025-02-07 05:54:11 +08:00
Merge pull request #2063 from abakosh/develop
fix(RA Host Portable): implement missing function __builtin_ctz(x)
This commit is contained in:
commit
eedafb23f7
@ -407,7 +407,7 @@ static void process_pipe0_bemp(uint8_t rhport)
|
|||||||
static void process_pipe_nrdy(uint8_t rhport, unsigned num)
|
static void process_pipe_nrdy(uint8_t rhport, unsigned num)
|
||||||
{
|
{
|
||||||
(void)rhport;
|
(void)rhport;
|
||||||
unsigned result;
|
xfer_result_t result;
|
||||||
uint16_t volatile *ctr = get_pipectr(num);
|
uint16_t volatile *ctr = get_pipectr(num);
|
||||||
// TU_LOG1("NRDY %d %x\n", num, *ctr);
|
// TU_LOG1("NRDY %d %x\n", num, *ctr);
|
||||||
switch (*ctr & RUSB2_PIPE_CTR_PID_Msk) {
|
switch (*ctr & RUSB2_PIPE_CTR_PID_Msk) {
|
||||||
|
@ -36,6 +36,10 @@ extern "C" {
|
|||||||
|
|
||||||
#define RUSB2_REG_BASE (0x40090000)
|
#define RUSB2_REG_BASE (0x40090000)
|
||||||
|
|
||||||
|
#if defined(__ICCARM__)
|
||||||
|
#define __builtin_ctz(x) __iar_builtin_CLZ(__iar_builtin_RBIT(x))
|
||||||
|
#endif
|
||||||
|
|
||||||
TU_ATTR_ALWAYS_INLINE static inline void rusb2_int_enable(uint8_t rhport)
|
TU_ATTR_ALWAYS_INLINE static inline void rusb2_int_enable(uint8_t rhport)
|
||||||
{
|
{
|
||||||
(void) rhport;
|
(void) rhport;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user