mirror of
https://github.com/eddyem/stm32samples.git
synced 2026-05-07 13:26:56 +03:00
add enable/disable command
This commit is contained in:
@@ -48,6 +48,7 @@ int main(void){
|
||||
|
||||
uint32_t SPIctr = Tms;
|
||||
while(1){
|
||||
// TODO: add CAN bus parsing
|
||||
IWDG->KR = IWDG_REFRESH;
|
||||
if(Tms - SPIctr > CANONPROC_INTERVAL){ // not more than once per 10ms
|
||||
SPIctr = Tms;
|
||||
|
||||
Reference in New Issue
Block a user