Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #ifndef LJUSRESISTOR_H_INCLUDED
- #define LJUSRESISTOR_H_INCLUDED
- #include "at91sam3x8.h"
- #include <stdio.h>
- #include "interupts.h"
- #include "delay.h"
- #include "led.h"
- #define ADC_CHER ((volatile unsigned int*)0x400C0010)
- #define ADC_CR ((volatile unsigned int*)0x400C0000)
- #define ADC_CDR_CH5 ((volatile unsigned int*)0x400C0064)
- #define ADC_LCDR ((volatile unsigned int*)0x400C0020)
- #define ADC_MR ((volatile unsigned int*)0x400C0004)
- extern char lightToChar[4];
- extern int finalValue;
- extern int countten; //Which Position In Array is Running "number"
- extern int lightcount;
- extern int lightValue;
- void updateLight();
- void lightInit(void);
- void measureLight(void);
- void printLight(void);
- #endif
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement