@@ -29,8 +29,8 @@ extern volatile unsigned int pico_ms_tick;
2929extern void * pico_mutex_init (void );
3030extern void pico_mutex_lock (void * );
3131extern void pico_mutex_unlock (void * );
32- extern void * pvPortMalloc ( size_t xSize );
33- extern void vPortFree ( void * pv );
32+ extern void * pvPortMalloc (size_t xSize );
33+ extern void vPortFree (void * pv );
3434
3535 #define pico_free (x ) vPortFree(x)
3636 #define free (x ) vPortFree(x)
@@ -39,7 +39,7 @@ static inline void *pico_zalloc(size_t size)
3939{
4040 void * ptr = pvPortMalloc (size );
4141
42- if (ptr )
42+ if (ptr )
4343 memset (ptr , 0u , size );
4444
4545 return ptr ;
@@ -53,25 +53,25 @@ extern int32_t prescale_time;
5353static inline pico_time PICO_TIME_MS ()
5454{
5555 #ifdef TIME_PRESCALE
56- return pico_ms_tick << prescale_time ;
56+ return pico_ms_tick << prescale_time ;
5757 #else
58- return pico_ms_tick ;
58+ return pico_ms_tick ;
5959 #endif
6060}
6161
6262static inline pico_time PICO_TIME ()
6363{
6464 #ifdef TIME_PRESCALE
65- return (pico_ms_tick / 1000 ) << prescale_time ;
65+ return (pico_ms_tick / 1000 ) << prescale_time ;
6666 #else
67- return (pico_ms_tick / 1000 );
67+ return (pico_ms_tick / 1000 );
6868 #endif
6969}
7070
7171static inline void PICO_IDLE (void )
7272{
7373 pico_time now = PICO_TIME_MS ();
74- while (now == PICO_TIME_MS ()) ;
74+ while (now == PICO_TIME_MS ());
7575}
7676
7777#else /* NO RTOS SUPPORT */
@@ -88,7 +88,7 @@ extern void memmeas_free(void *);
8888static inline void * pico_zalloc (size_t size )
8989{
9090 void * ptr = malloc (size );
91- if (ptr )
91+ if (ptr )
9292 memset (ptr , 0u , size );
9393
9494 return ptr ;
@@ -108,7 +108,7 @@ static inline pico_time PICO_TIME(void)
108108static inline void PICO_IDLE (void )
109109{
110110 unsigned int now = pico_ms_tick ;
111- while (now == pico_ms_tick ) ;
111+ while (now == pico_ms_tick );
112112}
113113
114114#endif /* IFNDEF RTOS */
0 commit comments