RasPiArduino
RasPiArduino copied to clipboard
(minor issue)
trafficstars
#define STCV ((uint64_t)(STCLO | ((uint64_t)STCHI << 32)))
#define micros() (unsigned long)(STCV) #define millis() (unsigned long)(STCV / 1000)
why bother converting to 64 bit, only to then convert back to 32 bit? how about:
#define micros() STCLO #define millis() (STCLO / 1000L)