• Switch / Case Optimization
    I've read through this thread: http://www.keil.com/forum/8020/ and I understand that: 1. For "a few" case values, I'll get a series of if / else if's. Not sure how many that is. 2. If the case...
  • switch case fail
    void xx(char cc) { char aa; switch(cc) { case 1:case 0: aa=1; break; case 2,3: aa=2; break; } } //---------------------------------- xx(0); //run OK xx(1); //run OK xx(2); //run FAIL <<*...
  • Switch / Case Optimization
    I've read through this thread: http://www.keil.com/forum/8020/ and I understand that: 1. For "a few" case values, I'll get a series of if / else if's. Not sure how many that is. 2. If the case...
  • switch case fail
    void xx(char cc) { char aa; switch(cc) { case 1:case 0: aa=1; break; case 2,3: aa=2; break; } } //---------------------------------- xx(0); //run OK xx(1); //run OK xx(2); //run FAIL <<*...
  • switch case statement bouncing
    switch(periodplay) { default : NVIC_ST_RELOAD_R = 0;Sound_Off(); break; case 0x01: NVIC_ST_RELOAD_R = beatC0 ; break; case 0x02: NVIC_ST_RELOAD_R = beatD; break; case 0x04 : NVIC_ST_RELOAD_R =...