Advertisement
Guest User

Untitled

a guest
Jun 14th, 2021
41
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.13 KB | None | 0 0
  1. uint32_t timestamp()
  2. {
  3. static uint32_t now = 0;
  4. return now += ( (uint16_t)( CT_ECAP.TSCTR >> 16 ) - (uint16_t)now );
  5. }
  6.  
  7.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement