Pages: [1]   Go Down
Author Topic: help needed with library code  (Read 1748 times)
0 Members and 1 Guest are viewing this topic.
0
Offline Offline
Newbie
*
Karma: 0
Posts: 3
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

hi i was trying to compile some codes from libraries...but i got certain errors..i know they arise because of lack of some arduino standard libraries... can u please tell me the library which is involved with these declarations :-/
  i am pasting the errors here
(
from C:\Users\lastvirus\Desktop\maple-ide-0.0.6\libraries\ITDB02_Graph\wiring.c:27:

C:\Users\lastvirus\Desktop\maple-ide-0.0.6\libraries\ITDB02_Graph\wiring.c: In function 'micros':

C:\Users\lastvirus\Desktop\maple-ide-0.0.6\libraries\ITDB02_Graph\wiring.c:85: error: 'TCNT0' undeclared (first use in this function)

C:\Users\lastvirus\Desktop\maple-ide-0.0.6\libraries\ITDB02_Graph\wiring.c:85: error: (Each undeclared identifier is reported only once

C:\Users\lastvirus\Desktop\maple-ide-0.0.6\libraries\ITDB02_Graph\wiring.c:85: error: for each function it appears in.)

C:\Users\lastvirus\Desktop\maple-ide-0.0.6\libraries\ITDB02_Graph\wiring.c:91: error: 'TIFR' undeclared (first use in this function)

C:\Users\lastvirus\Desktop\maple-ide-0.0.6\libraries\ITDB02_Graph\wiring.c:91: error: 'TOV0' undeclared (first use in this function)

C:\Users\lastvirus\Desktop\maple-ide-0.0.6\libraries\ITDB02_Graph\wiring.c: In function 'init':

C:\Users\lastvirus\Desktop\maple-ide-0.0.6\libraries\ITDB02_Graph\wiring.c:172: error: 'TCCR0A' undeclared (first use in this function)

C:\Users\lastvirus\Desktop\maple-ide-0.0.6\libraries\ITDB02_Graph\wiring.c:172: error: 'WGM01' undeclared (first use in this function)

C:\Users\lastvirus\Desktop\maple-ide-0.0.6\libraries\ITDB02_Graph\wiring.c:173: error: 'WGM00' undeclared (first use in this function)

C:\Users\lastvirus\Desktop\maple-ide-0.0.6\libraries\ITDB02_Graph\wiring.c:180: error: 'TCCR0B' undeclared (first use in this function)

C:\Users\lastvirus\Desktop\maple-ide-0.0.6\libraries\ITDB02_Graph\wiring.c:180: error: 'CS01' undeclared (first use in this function)

C:\Users\lastvirus\Desktop\maple-ide-0.0.6\libraries\ITDB02_Graph\wiring.c:181: error: 'CS00' undeclared (first use in this function)

C:\Users\lastvirus\Desktop\maple-ide-0.0.6\libraries\ITDB02_Graph\wiring.c:187: error: 'TIMSK0' undeclared (first use in this function)

C:\Users\lastvirus\Desktop\maple-ide-0.0.6\libraries\ITDB02_Graph\wiring.c:187: error: 'TOIE0' undeclared (first use in this function)

C:\Users\lastvirus\Desktop\maple-ide-0.0.6\libraries\ITDB02_Graph\wiring.c:196: error: 'TCCR1B' undeclared (first use in this function)

C:\Users\lastvirus\Desktop\maple-ide-0.0.6\libraries\ITDB02_Graph\wiring.c:196: error: 'CS11' undeclared (first use in this function)

C:\Users\lastvirus\Desktop\maple-ide-0.0.6\libraries\ITDB02_Graph\wiring.c:197: error: 'CS10' undeclared (first use in this function)

C:\Users\lastvirus\Desktop\maple-ide-0.0.6\libraries\ITDB02_Graph\wiring.c:199: error: 'TCCR1A' undeclared (first use in this function)

C:\Users\lastvirus\Desktop\maple-ide-0.0.6\libraries\ITDB02_Graph\wiring.c:199: error: 'WGM10' undeclared (first use in this function)

C:\Users\lastvirus\Desktop\maple-ide-0.0.6\libraries\ITDB02_Graph\wiring.c:205: error: 'TCCR2B' undeclared (first use in this function)

C:\Users\lastvirus\Desktop\maple-ide-0.0.6\libraries\ITDB02_Graph\wiring.c:205: error: 'CS22' undeclared (first use in this function)

C:\Users\lastvirus\Desktop\maple-ide-0.0.6\libraries\ITDB02_Graph\wiring.c:211: error: 'TCCR2A' undeclared (first use in this function)

C:\Users\lastvirus\Desktop\maple-ide-0.0.6\libraries\ITDB02_Graph\wiring.c:211: error: 'WGM20' undeclared (first use in this function)

C:\Users\lastvirus\Desktop\maple-ide-0.0.6\libraries\ITDB02_Graph\wiring.c:229: error: 'ADCSRA' undeclared (first use in this function)

C:\Users\lastvirus\Desktop\maple-ide-0.0.6\libraries\ITDB02_Graph\wiring.c:229: error: 'ADPS2' undeclared (first use in this function)

C:\Users\lastvirus\Desktop\maple-ide-0.0.6\libraries\ITDB02_Graph\wiring.c:230: error: 'ADPS1' undeclared (first use in this function)

C:\Users\lastvirus\Desktop\maple-ide-0.0.6\libraries\ITDB02_Graph\wiring.c:231: error: 'ADPS0' undeclared (first use in this function)

C:\Users\lastvirus\Desktop\maple-ide-0.0.6\libraries\ITDB02_Graph\wiring.c:234: error: 'ADEN' undeclared (first use in this function)

C:\Users\lastvirus\Desktop\maple-ide-0.0.6\libraries\ITDB02_Graph\wiring.c:242: error: 'UCSR0B' undeclared (first use in this function)


)


thanks
Logged

Global Moderator
Dallas
Offline Offline
Shannon Member
*****
Karma: 200
Posts: 12782
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset


Which board do you have selected?
Logged

0
Offline Offline
Newbie
*
Karma: 0
Posts: 3
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

i am trying to improt libraries to another board which follows arduino language.. its called Maple which uses arm m3..
i have removed many errors by identifying the libraries..but am not able to identify this..some library shud have these declarations..including that will help i guess.
Logged

Global Moderator
Dallas
Offline Offline
Shannon Member
*****
Karma: 200
Posts: 12782
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset


The declarations are AVR registers.  Search ATmega328 datasheet for the details.
Logged

0
Offline Offline
Newbie
*
Karma: 0
Posts: 3
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

eys but i need the header file in which these registers are declared for arduino
Logged

Seattle, WA USA
Offline Offline
Brattain Member
*****
Karma: 601
Posts: 48556
Seattle, WA USA
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
eys but i need the header file in which these registers are declared for arduino
The header file that the registers are defined in depends on which board you have selected. Since none of them are Maple flavored, you are going to have to make up your own.
Logged

Pages: [1]   Go Up
Jump to: