摘要:
1 osTimerId timer; 2 3 uint32_t cnt=0; 4 void timerHandler( void * arg ) 5 { 6 cnt++; 7 osTimerStart( timer, 100 ); 8 } 9 10 osTimerDef( timer, ... 阅读全文
摘要:
osMutexDef( Mutex );osMutexId mutex;void Thread0( void * arg);void Thread1( void * arg);osThreadDef( Thread0, Thread0, osPriorityNormal, 512 );osThrea... 阅读全文
摘要:
1 #include "cmsis_os.h" 2 3 void Thread0( void * arg); 4 void Thread1( void * arg); 5 6 osThreadDef( Thread0, Thread0, osPriorityNormal, 512 ); 7 o... 阅读全文