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

int main ( void   ) 

GPIO config

Definition at line 111 of file button_semaphore.c.


Generated on Sun Mar 15 11:14:22 2009 for PIC24 Support Libraries by  doxygen 1.5.8