Carga Dinâmica  0.1
Sistemas de Instrumentação Electrónica
interrup.h File Reference

configuratoin for i2c More...

#include <stdio.h>
#include <stdlib.h>
#include <xc.h>
#include <sys/attribs.h>
#include "ventoinha.h"
#include "led.h"
Include dependency graph for interrup.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define DisableInterrupts()   asm volatile("di")
 
#define EnableInterrupts()   asm volatile("ei")
 
#define ticPerSec   10000
 Number of ticks per secund.
 
#define freqTimerTigger   500
 5KHz, freq tigger to work
 
#define ticPerMin   ticPerSec*60
 

Functions

void confT1 ()
 config timer 1
 
void delay (unsigned int n_intervals)
 Delay for bebug.
 
void starTimer ()
 star timer interrup work
 
void stopTimer ()
 stop timer interrup work
 
void isr_T1 (void)
 timer T1, this timer send trigger for system work
 

Variables

uint32_t numberTICS
 

Detailed Description

configuratoin for i2c