Hall_sensors.c File Reference

#include "config.h"
#include "Hall_sensors.h"

Include dependency graph for Hall_sensors.c:

Go to the source code of this file.

Functions

void Hall_sensors_ISR_init (void)
 Hall_sensors_ISR_init set-up Pin change interrupts on optionnal hall sensors inputs
  • Enable PCINT7 to PCINT0 mask
  • Configure Hall 1, and Hall 2 resp. PCINT7 and PCINT6 to generate interrupts on both rising or falling edges.


Function Documentation

void Hall_sensors_ISR_init ( void   ) 

Hall_sensors_ISR_init set-up Pin change interrupts on optionnal hall sensors inputs

Definition at line 50 of file Hall_sensors.c.

Referenced by main().

00051 {
00052     /*init PCINT0  Pin change interrupt initialisation */
00053     // PCINT7...0 interrupt pins enabled
00054   PCICR |= 1 << PCIE0;   
00055     // PCINT7/6 interrupt pin are enabled    
00056   PCMSK0 |= (1 << PCINT7) | (1 << PCINT6);  
00057 }


Generated on Wed Mar 14 10:53:33 2007 for Mega88_&_ATA6824_High_temperature_H-Bridge_system by  doxygen 1.4.7