Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if(TIM10->CNT == 65535)
- {
- do{
- ticks_count = (((TIM9->CNT)-1)<<16) | 65535;
- }while((TIM10->CNT)==0);
- }
- else{
- ticks_count = ((TIM9->CNT)<<16) | (TIM10->CNT);
- }
- /******************/
- if(((ticks_count = (((TIM9->CNT))<<16) | TIM10->CNT) & 0xffff ) == 65535)
- {
- do{
- ticks_count = (((TIM9->CNT)-1)<<16) | 65535;
- }while((TIM10->CNT)==0);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement