This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include"config.h" | |
#include<avr/io.h> | |
#include<util/delay.h> | |
//auto triggering mode is not used here in this library .. (ADATE in ADCSRA) | |
//differential input ADC has not been included in this library .. ADMUX (MUX[4:0]) | |
//see in the Internet how the shift register is optimized for the constant variable shifting .. | |
//whether a constant value is assigned or shifting process is left for the processor .. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#define PINSEL4 0x4002C010 | |
#define PINMODE4 0x4002C050 | |
#define PCONP 0x400FC0C4 | |
#define PINMODE_OD2 0x4002C070 | |
#define FIO2DIR 0x2009C040 | |
#define FIO2SET 0x2009C058 | |
#define FIO2CLR 0x2009C05C | |
int delay_ms(unsigned long millisecond) | |
{ |
NewerOlder