mshh
Full Member level 6
I am trying o write a code for this emulated pacemaker device, but i couldn't i need some help. the requirement in the attached pic
Code:
if (SW1==0x10){
//if(GPIO_PORTF_DATA_R &= ~0x08){
Delay1ms(250); //
GPIO_PORTF_DATA_R |= 0x02; // LED is on
Delay1ms(250); //
GPIO_PORTF_DATA_R &= ~0x02; // LED is off
//GPIO_PORTF_DATA_R |= 0x08; // LED green is on
//}
}else{
GPIO_PORTF_DATA_R &= ~0x08; // LED green is on
Delay1ms(10); //
}