mirror of
https://github.com/espressif/esp-idf.git
synced 2024-09-20 00:36:01 -04:00
Change inline to static inline functions. Ref Github issue 62.
This commit is contained in:
parent
5642a8061e
commit
6d54fb004d
@ -192,7 +192,7 @@ void vPortEndScheduler( void ) PRIVILEGED_FUNCTION;
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* Multi-core: get current core ID */
|
/* Multi-core: get current core ID */
|
||||||
inline uint32_t xPortGetCoreID() {
|
static inline uint32_t xPortGetCoreID() {
|
||||||
int id;
|
int id;
|
||||||
asm volatile(
|
asm volatile(
|
||||||
"rsr.prid %0\n"
|
"rsr.prid %0\n"
|
||||||
|
@ -234,7 +234,7 @@ static inline unsigned portENTER_CRITICAL_NESTED() { unsigned state = XTOS_SET_I
|
|||||||
* *bitwise inverse* of the old mem if the mem wasn't written. This doesn't seem to happen on the
|
* *bitwise inverse* of the old mem if the mem wasn't written. This doesn't seem to happen on the
|
||||||
* ESP32, though. (Would show up directly if it did because the magic wouldn't match.)
|
* ESP32, though. (Would show up directly if it did because the magic wouldn't match.)
|
||||||
*/
|
*/
|
||||||
inline void uxPortCompareSet(volatile uint32_t *addr, uint32_t compare, uint32_t *set) {
|
static inline void uxPortCompareSet(volatile uint32_t *addr, uint32_t compare, uint32_t *set) {
|
||||||
__asm__ __volatile__(
|
__asm__ __volatile__(
|
||||||
"WSR %2,SCOMPARE1 \n"
|
"WSR %2,SCOMPARE1 \n"
|
||||||
"ISYNC \n"
|
"ISYNC \n"
|
||||||
|
Loading…
Reference in New Issue
Block a user