PIC24 Support Libraries
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
button_semaphore.c File Reference
#include "pic24_all.h"

Go to the source code of this file.

Macros

#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.