17.02.2015 Views

CCS C Compiler Manual PCB / PCM / PCH

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

#define PUSH_BUTTON PIN_A4<br />

int1 timeout_error;<br />

int1 timed_get_button_press(void){<br />

int16 timeout;<br />

}<br />

timeout_error=FALSE;<br />

timeout=0;<br />

while(input(PUSH_BUTTON) && (++timeout

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!