[freertos] Silence sign-conversion warning

This commit is contained in:
Renz Bagaporo
2020-12-17 10:52:15 +08:00
committed by Angus Gratton
parent 92ae75f955
commit ff2d9fd96c
4 changed files with 6 additions and 6 deletions

View File

@@ -29,14 +29,14 @@
extern "C" {
#endif
static inline int IRAM_ATTR cpu_ll_get_core_id(void)
static inline uint32_t IRAM_ATTR cpu_ll_get_core_id(void)
{
uint32_t id;
asm volatile (
"rsr.prid %0\n"
"extui %0,%0,13,1"
:"=r"(id));
return (int) id;
return id;
}
static inline uint32_t cpu_ll_get_cycle_count(void)