Microchip® Advanced Software Framework

mega_gpio_example.c File Reference

megaAVR STK600 GPIO Example

Copyright (c) 2014-2018 Microchip Technology Inc. and its subsidiaries.

#include "compiler.h"
#include <avr/interrupt.h>
#include "conf_example.h"

Functions

 ISR (EXAMPLE_PCINT_vect)
 Pin change interrupt handler for PB0. More...
 
int main (void)
 Main routine. More...
 

ISR ( EXAMPLE_PCINT_vect  )

Pin change interrupt handler for PB0.

Create breakpoint here and then run. Press SW0 in order to test this.

int main ( void  )

Main routine.

References EXAMPLE_PCICR, EXAMPLE_PCIE, and EXAMPLE_PCMSK.