Skip to content

Instantly share code, notes, and snippets.

Created April 2, 2014 06:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/9928801 to your computer and use it in GitHub Desktop.
Save anonymous/9928801 to your computer and use it in GitHub Desktop.
#define CONST1 16666
#define WIDTH 400
int main(void) {
uint16_t u16_rpm = 19920;
uint32_t u32_adv = 500;
int16_t s16_test = (CONST1 * (WIDTH - u32_adv)) / u16_rpm;
while(1) {
}
return 0 ;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment