Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- The following was the output from 'avr-gcc (GCC) 4.7.0', on Linux Mint 14 Nadia.
- I simply retrieved this with
- git clone git://github.com/ComputerNerd/sst39sf040-avr.git
- $ avr-gcc main.c
- In file included from main.c:2:0:
- /usr/lib/gcc/avr/4.7.0/../../../avr/include/avr/io.h:428:6: warning: #warning "device type not defined" [-Wcpp]
- In file included from main.c:4:0:
- /usr/lib/gcc/avr/4.7.0/../../../avr/include/util/delay.h:95:3: warning: #warning "Compiler optimizations disabled; functions from <util/delay.h> won't work as designed" [-Wcpp]
- main.c: In function ‘shift24’:
- main.c:18:2: error: ‘PORTB’ undeclared (first use in this function)
- main.c:18:2: note: each undeclared identifier is reported only once for each function it appears in
- main.c:19:2: error: ‘PORTD’ undeclared (first use in this function)
- main.c: In function ‘serialWrB’:
- main.c:81:2: error: ‘UDR0’ undeclared (first use in this function)
- main.c:82:13: error: ‘UCSR0A’ undeclared (first use in this function)
- main.c:82:26: error: ‘UDRE0’ undeclared (first use in this function)
- main.c: In function ‘USART_Receive’:
- main.c:87:12: error: ‘UCSR0A’ undeclared (first use in this function)
- main.c:87:25: error: ‘RXC0’ undeclared (first use in this function)
- main.c:89:9: error: ‘UDR0’ undeclared (first use in this function)
- main.c: In function ‘rdDat’:
- main.c:105:10: error: ‘PIND’ undeclared (first use in this function)
- main.c:105:21: error: ‘PINC’ undeclared (first use in this function)
- main.c: In function ‘wrDat’:
- main.c:109:2: error: ‘PORTD’ undeclared (first use in this function)
- main.c:111:2: error: ‘PORTC’ undeclared (first use in this function)
- main.c: In function ‘sendCmd’:
- main.c:117:3: error: ‘PORTB’ undeclared (first use in this function)
- main.c: In function ‘sendCmdSlowAddr’:
- main.c:124:3: error: ‘PORTB’ undeclared (first use in this function)
- main.c: In function ‘ReadChip’:
- main.c:133:3: error: ‘DDRC’ undeclared (first use in this function)
- main.c:133:3: error: ‘DDRD’ undeclared (first use in this function)
- main.c:134:3: error: ‘PORTB’ undeclared (first use in this function)
- main.c: In function ‘readB’:
- main.c:147:3: error: ‘DDRC’ undeclared (first use in this function)
- main.c:147:3: error: ‘DDRD’ undeclared (first use in this function)
- main.c:148:3: error: ‘PORTB’ undeclared (first use in this function)
- main.c: In function ‘pollB’:
- main.c:159:3: error: ‘PORTB’ undeclared (first use in this function)
- main.c: In function ‘verifyF’:
- main.c:169:3: error: ‘DDRC’ undeclared (first use in this function)
- main.c:169:3: error: ‘DDRD’ undeclared (first use in this function)
- main.c:170:3: error: ‘PORTB’ undeclared (first use in this function)
- main.c: In function ‘chipErase’:
- main.c:189:2: error: ‘DDRC’ undeclared (first use in this function)
- main.c:189:2: error: ‘DDRD’ undeclared (first use in this function)
- main.c:190:2: error: ‘PORTB’ undeclared (first use in this function)
- main.c: In function ‘readId’:
- main.c:205:3: error: ‘DDRC’ undeclared (first use in this function)
- main.c:205:3: error: ‘DDRD’ undeclared (first use in this function)
- main.c:206:3: error: ‘PORTB’ undeclared (first use in this function)
- main.c: In function ‘pgmB’:
- main.c:238:3: error: ‘DDRC’ undeclared (first use in this function)
- main.c:238:3: error: ‘DDRD’ undeclared (first use in this function)
- main.c:239:3: error: ‘PORTB’ undeclared (first use in this function)
- main.c: In function ‘main’:
- main.c:270:2: error: ‘DDRD’ undeclared (first use in this function)
- main.c:271:2: error: ‘DDRB’ undeclared (first use in this function)
- main.c:272:2: error: ‘UBRR0H’ undeclared (first use in this function)
- main.c:273:2: error: ‘UBRR0L’ undeclared (first use in this function)
- main.c:274:2: error: ‘UCSR0A’ undeclared (first use in this function)
- main.c:275:2: error: ‘UCSR0B’ undeclared (first use in this function)
- main.c:275:15: error: ‘RXEN0’ undeclared (first use in this function)
- main.c:275:26: error: ‘TXEN0’ undeclared (first use in this function)
- main.c:276:2: error: ‘UCSR0C’ undeclared (first use in this function)
- main.c:313:2: warning: passing argument 1 of ‘StringPgm’ discards ‘const’ qualifier from pointer target type [enabled by default]
- main.c:91:6: note: expected ‘char *’ but argument is of type ‘const char *’
- main.c:316:2: warning: passing argument 1 of ‘StringPgm’ discards ‘const’ qualifier from pointer target type [enabled by default]
- main.c:91:6: note: expected ‘char *’ but argument is of type ‘const char *’
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement