Advertisement
nikke343

ljusresistor.h

Dec 17th, 2014
144
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.71 KB | None | 0 0
  1. #ifndef LJUSRESISTOR_H_INCLUDED
  2. #define LJUSRESISTOR_H_INCLUDED
  3. #include "at91sam3x8.h"
  4. #include <stdio.h>
  5. #include "interupts.h"
  6. #include "delay.h"
  7. #include "led.h"
  8. #define ADC_CHER ((volatile unsigned int*)0x400C0010)
  9. #define ADC_CR ((volatile unsigned int*)0x400C0000)
  10. #define ADC_CDR_CH5 ((volatile unsigned int*)0x400C0064)
  11. #define ADC_LCDR ((volatile unsigned int*)0x400C0020)
  12. #define ADC_MR ((volatile unsigned int*)0x400C0004)
  13. extern char lightToChar[4];
  14. extern int finalValue;
  15. extern int countten;            //Which Position In Array is Running "number"
  16. extern int lightcount;
  17. extern int lightValue;
  18. void updateLight();
  19. void lightInit(void);
  20. void measureLight(void);
  21. void printLight(void);
  22. #endif
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement