Question: please help with this error 42 43 11 Function [Prototypes 44 void PortF_Init (void); 45 void EnableInterrupts (void) : 46 void Delayins (unsaned long time){
42 43 11 Function [Prototypes 44 void PortF_Init (void); 45 void EnableInterrupts (void) : 46 void Delayins (unsaned long time){ 47 unsigned long i 48 E while (time 0) 49 i 1333333: 50while (i > 0){ 51 i : 53 time time 1 54 56 57 L 58 1 3. Subroutines Section 59 I MAIN: Mandatory for a C Program to be executable 60int main (void) { 61 TExaS_Init (SW_PIN PF40, LED_PIN_PF321) 62 1 TExaS Init initializes the real board grader for lab 4 63 PortF Init 64 EnableInterrupts // The grader uses interrupts // Call initialization of port PF4, PF3, PE2, PFI, PFO 65 66 | int #0; //declare integer = 0 67 68 while (1)( uild Output Build target '1O' compiling main.c... (66): error: #268: declaration may not appear after executable statement in block int 1-0: //declare integer i0 main.c main.c: 0 warnings, 1 error ".\IO.axt" 1 Error (s), 0 Warning (s) Target not created
Step by Step Solution
There are 3 Steps involved in it
The error youre encountering is due to the declaration of the integer i after executable statements ... View full answer
Get step-by-step solutions from verified subject matter experts
