Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 4861

SDK • Re: troubletrouble defining a macro to replace a zero argument fn call: micros()

$
0
0
Hmm, compiler does not like me redefining this using an inline. Am I doing this incorrectly.

Code:

 error: ambiguating new declaration of 'uint64_t micros()'   25 |       static inline uint64_t micros(void) {return time_us_64() ;}ArduinoCore-API/api/Common.h:106:15: note: old declaration 'long unsigned int micros()'  106 | unsigned long micros(void);
unsigned long is uint32_t it seems , which is consistent with the defective 32 bit arduino code.

Statistics: Posted by pie_face — Sat Oct 05, 2024 9:50 am



Viewing all articles
Browse latest Browse all 4861

Trending Articles