witam, próbuję skompilować bibliotekę jak w temacie, dla procka m644 i ... zagwozdka
używam AVR Studio v4.19
poniżej procek + opis błędu + linia, w której jest błąd
1. m644pa
../usart.c: In function 'USART_init':
../usart.c:95:41: error: 'UCPHA0' undeclared (first use in this function)
../usart.c:95:41: note: each undeclared identifier is reported only once for each function it appears in
../usart.c:95:65: error: 'UDORD0' undeclared (first use in this function)
make: *** [usart.o] Błąd 1
Build failed with 2 errors and 0 warnings...
//m644
UCSR0C = (1<<UMSEL01)|(1<<UMSEL00)|(0<<UCPHA0)|(0<<UCPOL0)|(0<<UDORD0);
2. m644p, m644a, m644
../usart.c: In function 'USART_init':
../usart.c:95:65: error: 'UDORD0' undeclared (first use in this function)
../usart.c:95:65: note: each undeclared identifier is reported only once for each function it appears in
make: *** [usart.o] Błąd 1
Build failed with 1 errors and 0 warnings...
//m644
UCSR0C = (1<<UMSEL01)|(1<<UMSEL00)|(0<<UCPHA0)|(0<<UCPOL0)|(0<<UDORD0);
z datasheeta wynika, iż zarówno UART0 jak i UART1 mogą pracować w trybie SPI
(uart w trybie synchronicznym)
clock dla UART0 to pin PB0 a dla uart1 pin PD4
jeżeli zmienię UCPHA0 na UCPHA1 oraz UDORD0 na UDORD1 to także nie kompiluje
natomiast mam uruchomiony program na m88
stary toolchain ???
mam wersję avr-toolchain-installer-3.4.1.1195-win32.win32.x86
z opisu wynika, że obsługuje procki m644pa, 644a, 644p, 644
co jest nie tak ????
używam AVR Studio v4.19
poniżej procek + opis błędu + linia, w której jest błąd
1. m644pa
../usart.c: In function 'USART_init':
../usart.c:95:41: error: 'UCPHA0' undeclared (first use in this function)
../usart.c:95:41: note: each undeclared identifier is reported only once for each function it appears in
../usart.c:95:65: error: 'UDORD0' undeclared (first use in this function)
make: *** [usart.o] Błąd 1
Build failed with 2 errors and 0 warnings...
//m644
UCSR0C = (1<<UMSEL01)|(1<<UMSEL00)|(0<<UCPHA0)|(0<<UCPOL0)|(0<<UDORD0);
2. m644p, m644a, m644
../usart.c: In function 'USART_init':
../usart.c:95:65: error: 'UDORD0' undeclared (first use in this function)
../usart.c:95:65: note: each undeclared identifier is reported only once for each function it appears in
make: *** [usart.o] Błąd 1
Build failed with 1 errors and 0 warnings...
//m644
UCSR0C = (1<<UMSEL01)|(1<<UMSEL00)|(0<<UCPHA0)|(0<<UCPOL0)|(0<<UDORD0);
z datasheeta wynika, iż zarówno UART0 jak i UART1 mogą pracować w trybie SPI
(uart w trybie synchronicznym)
clock dla UART0 to pin PB0 a dla uart1 pin PD4
jeżeli zmienię UCPHA0 na UCPHA1 oraz UDORD0 na UDORD1 to także nie kompiluje
natomiast mam uruchomiony program na m88
stary toolchain ???
mam wersję avr-toolchain-installer-3.4.1.1195-win32.win32.x86
z opisu wynika, że obsługuje procki m644pa, 644a, 644p, 644
co jest nie tak ????