diff --git a/main.c b/main.c index 179df53..72ea9d7 100644 --- a/main.c +++ b/main.c @@ -1,6 +1,12 @@ #include #include +#pragma config FOSC = HS // Oscillator Selection bits +#pragma config WDTE = OFF // Watchdog Timer Enable bit +#pragma config PWRTE = OFF // Power-up Timer Enable bit +#pragma config CP = OFF // FLASH Program Memory Code Protection bit +#pragma config BOREN = OFF // Brown-out Reset Enable bit + #define LENGTH 8 unsigned int sum = 0; // Suma liczb 8-bitowych, zapisana w zmiennej 16-bitowej @@ -21,7 +27,7 @@ void print_results(void); void main(void) { config_ad(); - + while(1) { // g?ówna p?tla programu ad_go();