完成CANFD通信调试
This commit is contained in:
@@ -56,7 +56,19 @@ void systick_config(void)
|
||||
/* configure the systick handler priority */
|
||||
NVIC_SetPriority(SysTick_IRQn, 0x00U);
|
||||
}
|
||||
|
||||
/*!
|
||||
\brief delay a time in seconds
|
||||
\param[in] count: count in seconds
|
||||
\param[out] none
|
||||
\retval none
|
||||
*/
|
||||
void delay_1s(uint32_t count)
|
||||
{
|
||||
uint32_t i;
|
||||
for(i = 0; i < count; i++){
|
||||
delay_1ms(1000);
|
||||
}
|
||||
}
|
||||
/*!
|
||||
\brief delay a time in milliseconds
|
||||
\param[in] count: count in milliseconds
|
||||
@@ -66,8 +78,8 @@ void systick_config(void)
|
||||
void delay_1ms(uint32_t count)
|
||||
{
|
||||
delay = count;
|
||||
|
||||
while(0U != delay){
|
||||
fwdgt_counter_reload();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user