WinAVR-20100110
"make.exe" all
-------- begin --------
avr-gcc (AVR_8_bit_GNU_Toolchain_3.4.4_1229) 4.8.1
Copyright (C) 2013 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Compiling: Voltmetr.c
avr-gcc -c -mmcu=atmega8 -I. -gstabs -DF_CPU=1000000UL -O2 -funsigned-char -funsigned-bitfields -fpack-struct -fshort-enums -Wall -Wstrict-prototypes -Wa,-adhlns=Voltmetr.lst -std=gnu99 -MD -MP -MF .dep/Voltmetr.o.d Voltmetr.c -o Voltmetr.o
Voltmetr.c:39:48: error: variable 'SEGMENTE' must be const in order to be put into read-only section by means of '__attribute__((progmem))'
static unsigned char __attribute__ ((progmem)) SEGMENTE[] = {0x03, 0xDB, 0x85, 0x91, 0x59, 0x31, 0x21, 0x9B, 0x01, 0x11, 0xFE, 0xFF, 0xFD};
^
Voltmetr.c:42:48: error: variable 'RAZR' must be const in order to be put into read-only section by means of '__attribute__((progmem))'
static unsigned char __attribute__ ((progmem)) RAZR[] = { 0b00001000, 0b00000001, 0b00000010, 0b00000100 };
^
Voltmetr.c:60:48: error: variable 'StRazr' must be const in order to be put into read-only section by means of '__attribute__((progmem))'
static unsigned char __attribute__ ((progmem)) StRazr = 1; //Максимальная цифра старшего разряда - 1
^
Voltmetr.c:61:47: error: variable 'Lim_mV' must be const in order to be put into read-only section by means of '__attribute__((progmem))'
static unsigned int __attribute__ ((progmem)) Lim_mV = 1999;//Максимальное индицируемое число - 1999
^
Voltmetr.c:62:48: error: variable 'Kdel' must be const in order to be put into read-only section by means of '__attribute__((progmem))'
static unsigned char __attribute__ ((progmem)) Kdel = 32; //Делитель=32
^
make.exe: *** [Voltmetr.o] Error 1
> Process Exit Code: 2
> Time Taken: 00:00
Как поменять вход АЦП с PC4 на PC2?


