|
Carga Dinâmica
0.1
Sistemas de Instrumentação Electrónica
|
configuratoin for i2c More...
#include <stdio.h>#include <stdlib.h>#include <xc.h>#include <sys/attribs.h>#include "ventoinha.h"#include "led.h"

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 |
configuratoin for i2c