2
main.c
2
main.c
@@ -1,5 +1,6 @@
|
||||
#include <xc.h>
|
||||
#include <stdio.h>
|
||||
|
||||
#pragma config FOSC = HS // Oscillator Selection bits
|
||||
#pragma config WDTE = OFF // Watchdog Timer Enable bit
|
||||
#pragma config PWRTE = OFF // Power-up Timer Enable bit
|
||||
@@ -7,6 +8,7 @@
|
||||
#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
|
||||
unsigned char rest = 0;
|
||||
unsigned int result = 0;
|
||||
|
||||
Reference in New Issue
Block a user