chap9/button_semaphore.c File Reference
#include "pic24_all.h"
Go to the source code of this file.
|
Defines |
#define | CONFIG_LED1() CONFIG_RB14_AS_DIG_OUTPUT() |
| LED1.
|
Functions |
void | CONFIG_SW1 () |
| Switch1 configuration.
|
int | main (void) |
Detailed Description
Demonstrates the use of semaphore variable that is set in an interrupt service routine and read by the main loop. In this case, the semaphore indicates that a button press & release IO event has been received. The main loop toggles an LED when the semaphore is set.
Definition in file button_semaphore.c.
Function Documentation