File tree Expand file tree Collapse file tree 2 files changed +5
-1
lines changed
src/portable/renesas/rusb2 Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -407,7 +407,7 @@ static void process_pipe0_bemp(uint8_t rhport)
407407static void process_pipe_nrdy (uint8_t rhport , unsigned num )
408408{
409409 (void )rhport ;
410- unsigned result ;
410+ xfer_result_t result ;
411411 uint16_t volatile * ctr = get_pipectr (num );
412412 // TU_LOG1("NRDY %d %x\n", num, *ctr);
413413 switch (* ctr & RUSB2_PIPE_CTR_PID_Msk ) {
Original file line number Diff line number Diff line change @@ -36,6 +36,10 @@ extern "C" {
3636
3737#define RUSB2_REG_BASE (0x40090000)
3838
39+ #if defined(__ICCARM__ )
40+ #define __builtin_ctz (x ) __iar_builtin_CLZ(__iar_builtin_RBIT(x))
41+ #endif
42+
3943TU_ATTR_ALWAYS_INLINE static inline void rusb2_int_enable (uint8_t rhport )
4044{
4145 (void ) rhport ;
You can’t perform that action at this time.
0 commit comments