• Return Statements inside Case Statements
    I encountered a wierd runtime error after compiling and running the following statement: FuncCall(unsigned char casenum) { switch (casenum) { case 0x00: return 0x0100; default: return 0x1000;...
  • Switch Case Statement problem
    I am using switch statement as follows uint16 val; switch (val) { case 0x0000: ... break case 0x0001: ... break case 0x0000: ... break case 0x0000: ... break case 0x0000: ... break...
  • 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 =...
  • switch statement
    I need to use the switch statement with up to 255 cases? I keep getting the out of range error
  • problem with case statement
    I am executing the following code part (KEIL development environment, Microcontroller ADuC7020). if I do insert the "case: 1" structure in func1(), the debugger does not start. If I delete the "case...