Squirrels have fuzzy tails.
0 Members and 1 Guest are viewing this topic.
Compiling: timer.cavr-gcc -c -mmcu=atmega644 -I. -gstabs -O0 -funsigned-char -funsigned-bitfields -fpack-struct -fshort-enums -Wall -Wstrict-prototypes -Wa,-adhlns=timer.lst -std=gnu99 -Wp,-M,-MP,-MT,timer.o,-MF,.dep/timer.o.d timer.c -o timer.o timer.c: In function 'timer0Init':timer.c:98: error: 'TIMSK' undeclared (first use in this function)timer.c:98: error: (Each undeclared identifier is reported only oncetimer.c:98: error: for each function it appears in.)timer.c: In function 'timer1Init':timer.c:109: error: 'TIMSK' undeclared (first use in this function)timer.c: In function 'timer2Init':timer.c:118: error: 'TIMSK' undeclared (first use in this function)timer.c: In function 'timer0SetPrescaler':timer.c:127: error: 'TCCR0' undeclared (first use in this function)timer.c: In function 'timer2SetPrescaler':timer.c:140: error: 'TCCR2' undeclared (first use in this function)timer.c: In function 'timer0GetPrescaler':timer.c:147: error: 'TCCR0' undeclared (first use in this function)timer.c: In function 'timer2GetPrescaler':timer.c:163: error: 'TCCR2' undeclared (first use in this function)timer.c: At top level:timer.c:464: warning: 'SIG_OUTPUT_COMPARE2' appears to be a misspelled signal handlermake: *** [timer.o] Error 1
// create and initialize the uart transmit and receive buffersvoid uartInitBuffers(void){ #ifndef UART_BUFFERS_EXTERNAL_RAM // initialize the UART receive buffer bufferInit(&uartRxBuffer, uartRxData, UART_RX_BUFFER_SIZE); //line 70 // initialize the UART transmit buffer bufferInit(&uartTxBuffer, uartTxData, UART_TX_BUFFER_SIZE); //line 72 #else // initialize the UART receive buffer bufferInit(&uartRxBuffer, (u08*) UART_RX_BUFFER_ADDR, UART_RX_BUFFER_SIZE); // initialize the UART transmit buffer bufferInit(&uartTxBuffer, (u08*) UART_TX_BUFFER_ADDR, UART_TX_BUFFER_SIZE); #endif}
#ifndef UART_BUFFERS_EXTERNAL_RAM // initialize the UART receive buffer bufferInit(&uartRxBuffer, uartRxData, UART_RX_BUFFER_SIZE); // initialize the UART transmit buffer bufferInit(&uartTxBuffer, uartTxData, UART_TX_BUFFER_SIZE);
#ifndef UART_BUFFERS_EXTERNAL_RAM // initialize the UART receive buffer bufferInit(&uartRxBuffer, (u08*) uartRxData, UART_RX_BUFFER_SIZE); // initialize the UART transmit buffer bufferInit(&uartTxBuffer, (u08*) uartTxData, UART_TX_BUFFER_SIZE);
void uartInitBuffers(void){ #ifndef UART_BUFFERS_EXTERNAL_RAM // initialize the UART receive buffer bufferInit(&uartRxBuffer, (u08*) uartRxData, UART_RX_BUFFER_SIZE); // initialize the UART transmit buffer bufferInit(&uartTxBuffer, (u08*) uartTxData, UART_TX_BUFFER_SIZE); #else // initialize the UART receive buffer bufferInit(&uartRxBuffer, (u08*) UART_RX_BUFFER_ADDR, UART_RX_BUFFER_SIZE); // initialize the UART transmit buffer bufferInit(&uartTxBuffer, (u08*) UART_TX_BUFFER_ADDR, UART_TX_BUFFER_SIZE); #endif}
if (uartReceiveByte(&myReceivedByte)) // line 187{ // if there are bytes waiting on the serial port char inByte = uartGetByte(); // read a byte
// create and initialize the uart transmit and receive buffersvoid uartInitBuffers(void){ #ifndef UART_BUFFERS_EXTERNAL_RAM // initialize the UART receive buffer bufferInit(&uartRxBuffer, uartRxData, UART_RX_BUFFER_SIZE); // initialize the UART transmit buffer bufferInit(&uartTxBuffer, uartTxData, UART_TX_BUFFER_SIZE); #else // initialize the UART receive buffer bufferInit(&uartRxBuffer, (u08*) UART_RX_BUFFER_ADDR, UART_RX_BUFFER_SIZE); // initialize the UART transmit buffer bufferInit(&uartTxBuffer, (u08*) UART_TX_BUFFER_ADDR, UART_TX_BUFFER_SIZE); #endif}