Advertisement
Guest User

Untitled

a guest
Jun 12th, 2013
168
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.64 KB | None | 0 0
  1. The following was the output from 'avr-gcc (GCC) 4.7.0', on Linux Mint 14 Nadia.
  2. I simply retrieved this with
  3. git clone git://github.com/ComputerNerd/sst39sf040-avr.git
  4.  
  5.  
  6. $ avr-gcc main.c
  7. In file included from main.c:2:0:
  8. /usr/lib/gcc/avr/4.7.0/../../../avr/include/avr/io.h:428:6: warning: #warning "device type not defined" [-Wcpp]
  9. In file included from main.c:4:0:
  10. /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]
  11. main.c: In function ‘shift24’:
  12. main.c:18:2: error: ‘PORTB’ undeclared (first use in this function)
  13. main.c:18:2: note: each undeclared identifier is reported only once for each function it appears in
  14. main.c:19:2: error: ‘PORTD’ undeclared (first use in this function)
  15. main.c: In function ‘serialWrB’:
  16. main.c:81:2: error: ‘UDR0’ undeclared (first use in this function)
  17. main.c:82:13: error: ‘UCSR0A’ undeclared (first use in this function)
  18. main.c:82:26: error: ‘UDRE0’ undeclared (first use in this function)
  19. main.c: In function ‘USART_Receive’:
  20. main.c:87:12: error: ‘UCSR0A’ undeclared (first use in this function)
  21. main.c:87:25: error: ‘RXC0’ undeclared (first use in this function)
  22. main.c:89:9: error: ‘UDR0’ undeclared (first use in this function)
  23. main.c: In function ‘rdDat’:
  24. main.c:105:10: error: ‘PIND’ undeclared (first use in this function)
  25. main.c:105:21: error: ‘PINC’ undeclared (first use in this function)
  26. main.c: In function ‘wrDat’:
  27. main.c:109:2: error: ‘PORTD’ undeclared (first use in this function)
  28. main.c:111:2: error: ‘PORTC’ undeclared (first use in this function)
  29. main.c: In function ‘sendCmd’:
  30. main.c:117:3: error: ‘PORTB’ undeclared (first use in this function)
  31. main.c: In function ‘sendCmdSlowAddr’:
  32. main.c:124:3: error: ‘PORTB’ undeclared (first use in this function)
  33. main.c: In function ‘ReadChip’:
  34. main.c:133:3: error: ‘DDRC’ undeclared (first use in this function)
  35. main.c:133:3: error: ‘DDRD’ undeclared (first use in this function)
  36. main.c:134:3: error: ‘PORTB’ undeclared (first use in this function)
  37. main.c: In function ‘readB’:
  38. main.c:147:3: error: ‘DDRC’ undeclared (first use in this function)
  39. main.c:147:3: error: ‘DDRD’ undeclared (first use in this function)
  40. main.c:148:3: error: ‘PORTB’ undeclared (first use in this function)
  41. main.c: In function ‘pollB’:
  42. main.c:159:3: error: ‘PORTB’ undeclared (first use in this function)
  43. main.c: In function ‘verifyF’:
  44. main.c:169:3: error: ‘DDRC’ undeclared (first use in this function)
  45. main.c:169:3: error: ‘DDRD’ undeclared (first use in this function)
  46. main.c:170:3: error: ‘PORTB’ undeclared (first use in this function)
  47. main.c: In function ‘chipErase’:
  48. main.c:189:2: error: ‘DDRC’ undeclared (first use in this function)
  49. main.c:189:2: error: ‘DDRD’ undeclared (first use in this function)
  50. main.c:190:2: error: ‘PORTB’ undeclared (first use in this function)
  51. main.c: In function ‘readId’:
  52. main.c:205:3: error: ‘DDRC’ undeclared (first use in this function)
  53. main.c:205:3: error: ‘DDRD’ undeclared (first use in this function)
  54. main.c:206:3: error: ‘PORTB’ undeclared (first use in this function)
  55. main.c: In function ‘pgmB’:
  56. main.c:238:3: error: ‘DDRC’ undeclared (first use in this function)
  57. main.c:238:3: error: ‘DDRD’ undeclared (first use in this function)
  58. main.c:239:3: error: ‘PORTB’ undeclared (first use in this function)
  59. main.c: In function ‘main’:
  60. main.c:270:2: error: ‘DDRD’ undeclared (first use in this function)
  61. main.c:271:2: error: ‘DDRB’ undeclared (first use in this function)
  62. main.c:272:2: error: ‘UBRR0H’ undeclared (first use in this function)
  63. main.c:273:2: error: ‘UBRR0L’ undeclared (first use in this function)
  64. main.c:274:2: error: ‘UCSR0A’ undeclared (first use in this function)
  65. main.c:275:2: error: ‘UCSR0B’ undeclared (first use in this function)
  66. main.c:275:15: error: ‘RXEN0’ undeclared (first use in this function)
  67. main.c:275:26: error: ‘TXEN0’ undeclared (first use in this function)
  68. main.c:276:2: error: ‘UCSR0C’ undeclared (first use in this function)
  69. main.c:313:2: warning: passing argument 1 of ‘StringPgm’ discards ‘const’ qualifier from pointer target type [enabled by default]
  70. main.c:91:6: note: expected ‘char *’ but argument is of type ‘const char *’
  71. main.c:316:2: warning: passing argument 1 of ‘StringPgm’ discards ‘const’ qualifier from pointer target type [enabled by default]
  72. main.c:91:6: note: expected ‘char *’ but argument is of type ‘const char *’
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement