اطلاعیه

Collapse
No announcement yet.

چگونه می شه کتابخانه avrlib به winavr یا eclipes اضافه کرد.

Collapse
X
 
  • فیلتر
  • زمان
  • Show
Clear All
new posts

    چگونه می شه کتابخانه avrlib به winavr یا eclipes اضافه کرد.

    سلام :applause:

    کسی میتونه کمک کنه که چطور می شه
    کتابخانه avrlib به winavr یا eclipes اضافه کرد.

    #2
    پاسخ : چگونه می شه کتابخانه avrlib به winavr یا eclipes اضافه کرد.

    از هر هدرش خواستی استفاده کنی اون هدرو رو در برنامه include میکنی
    و ازش استفاده می کنی
    خود فایل هدرم در مسیر برنامه قرار میدی
    www.tehranelec.com

    دیدگاه


      #3
      پاسخ : چگونه می شه کتابخانه avrlib به winavr یا eclipes اضافه کرد.


      سلام
      دوستان این میدونم .اما چون هر فایل شو استفاده میکنم مانند:lcd.h اون خودش داخلش چندتا فایل دیگر نیاز داره مثلاtimer,...من
      میخوام طوری به کمپایلر معرفی بشه که همه یه فایلا رو بدون خطا بشناسه. :angry: :angry: :angry:
      من روش قبلی رو امتحان کردم نشده فکر کنم تو mfile یا ..... باید تنظیم بشه ؟؟؟؟؟؟ :sad: :sad:
      این برنامه رو ببینید:




      کد PHP:
      #include<avr/io.h>
      #include"lcd.h"


      int main(void)
      {

      PORTC=0X00;
      DDRC=0XFF;


      //_delay_ms(100);

          
      for(;;)
          {

          }
          return(
      0);

      اینم خطاهاش :
      کد PHP:
      Description    Resource    Path    Location    Type
      'i' undeclared (first use in this function)    lcd.c    /lcd    line 410    C/C++ Problem
      'nBytes' undeclared (first use in this function)    lcd.c    /lcd    line 416    C/C++ Problem
      'u08' undeclared (first use in this function)    lcd.c    /lcd    line 342    C/C++ Problem
      avrlibdefs.hNo such file or directory    global.h    /lcd    line 25    C/C++ Problem
      avrlibtypes
      .hNo such file or directory    global.h    /lcd    line 27    C/C++ Problem
      expected 
      ')' before '*' token    lcd.c    /lcd    line 382    C/C++ Problem
      expected ')' before '*' token    lcd.h    /lcd    line 172    C/C++ Problem
      expected ')' before 'bitRes'    lcd        line 290, external location: ..\timer.h    C/C++ Problem
      expected ')' before 'data'    lcd.c    /lcd    line 125    C/C++ Problem
      expected ')' before 'data'    lcd.c    /lcd    line 220    C/C++ Problem
      expected ')' before 'data'    lcd.h    /lcd    line 141    C/C++ Problem
      expected ')' before 'data'    lcd.h    /lcd    line 145    C/C++ Problem
      expected ')' before 'interruptNum'    lcd        line 240, external location: ..\timer.h    C/C++ Problem
      expected ')' before 'interruptNum'    lcd        line 242, external location: ..\timer.h    C/C++ Problem
      expected ')' before 'prescale'    lcd        line 208, external location: ..\timer.h    C/C++ Problem
      expected ')' before 'prescale'    lcd        line 210, external location: ..\timer.h    C/C++ Problem
      expected ')' before 'prescale'    lcd        line 213, external location: ..\timer.h    C/C++ Problem
      expected ')' before 'progress'    lcd.c    /lcd    line 422    C/C++ Problem
      expected ')' before 'progress'    lcd.h    /lcd    line 181    C/C++ Problem
      expected ')' before 'pwmDuty'    lcd        line 306, external location: ..\timer.h    C/C++ Problem
      expected ')' before 'pwmDuty'    lcd        line 307, external location: ..\timer.h    C/C++ Problem
      expected ')' before 'row'    lcd.h    /lcd    line 166    C/C++ Problem
      expected ')' before 'topcount'    lcd        line 295, external location: ..\timer.h    C/C++ Problem
      expected ')' before 'x'    lcd.c    /lcd    line 364    C/C++ Problem
      expected '=', ',', ';', 'asm' or '__attribute__' before 'i'    lcd.c    /lcd    line 410    C/C++ Problem
      expected '=', ',', ';', 'asm' or '__attribute__' before 'lcdControlRead'    lcd.c    /lcd    line 173    C/C++ Problem
      expected '=', ',', ';', 'asm' or '__attribute__' before 'lcdControlRead'    lcd.h    /lcd    line 143    C/C++ Problem
      expected '=', ',', ';', 'asm' or '__attribute__' before 'lcdDataRead'    lcd.c    /lcd    line 268    C/C++ Problem
      expected '=', ',', ';', 'asm' or '__attribute__' before 'lcdDataRead'    lcd.h    /lcd    line 147    C/C++ Problem
      expected '=', ',', ';', 'asm' or '__attribute__' before 'timer0GetPrescaler'    lcd        line 209, external location: ..\timer.h    C/C++ Problem
      expected '=', ',', ';', 'asm' or '__attribute__' before 'timer1GetPrescaler'    lcd        line 211, external location: ..\timer.h    C/C++ Problem
      expected '=', ',', ';', 'asm' or '__attribute__' before 'timer2GetPrescaler'    lcd        line 214, external location: ..\timer.h    C/C++ Problem
      expected declaration specifiers or '...' before 'u08'    lcd.c    /lcd    line 408    C/C++ Problem
      expected declaration specifiers or '...' before 'u08'    lcd.h    /lcd    line 175    C/C++ Problem
      expected expression before ')' token    lcd.c    /lcd    line 342    C/C++ Problem
      expected expression before ')' token    lcd.c    /lcd    line 343    C/C++ Problem
      expected expression before ')' token    lcd.c    /lcd    line 344    C/C++ Problem
      expected expression before ')' token    lcd.c    /lcd    line 345    C/C++ Problem
      expected expression before ')' token    lcd.c    /lcd    line 346    C/C++ Problem
      expected expression before ')' token    lcd.c    /lcd    line 347    C/C++ Problem
      expected expression before ')' token    lcd.c    /lcd    line 348    C/C++ Problem
      expected expression before ')' token    lcd.c    /lcd    line 349    C/C++ Problem
      make: *** [lcd.oError 1    lcd        line 0    C/C++ Problem
      implicit declaration of 
      function 'cbi'    lcd.c    /lcd    line 59    C/C++ Problem
      implicit declaration of function 'inb'    lcd.c    /lcd    line 97    C/C++ Problem
      implicit declaration of function 'lcdControlWrite'    lcd.c    /lcd    line 327    C/C++ Problem
      implicit declaration of function 'lcdDataWrite'    lcd.c    /lcd    line 418    C/C++ Problem
      implicit declaration of function 'lcdLoadCustomChar'    lcd.c    /lcd    line 342    C/C++ Problem
      implicit declaration of function 'outb'    lcd.c    /lcd    line 72    C/C++ Problem
      implicit declaration of function 'sbi'    lcd.c    /lcd    line 63    C/C++ Problem 

      اگه کسی راهی بلده یا تنظیم ات کامل تو winavr یا اگر eclipse باشه که عالی

      دیدگاه


        #4
        پاسخ : چگونه می شه کتابخانه avrlib به winavr یا eclipes اضافه کرد.

        :angry: :angry: :angry:

        دیدگاه


          #5
          پاسخ : چگونه می شه کتابخانه avrlib به winavr یا eclipes اضافه کرد.

          صد در صد باید تو make file تنظیم شه
          اگر می خوای ببینی چطور این فایلو مطالعه کن خیلی راحت گفته که چطور make file درست کنیم
          http://www.4shared.com/document/10wxWw-N/install_config_WinAVR_InPersia.html
          www.tehranelec.com

          دیدگاه


            #6
            پاسخ : چگونه می شه کتابخانه avrlib به winavr یا eclipes اضافه کرد.

            یه چیزایی تو این گفتم اگه خواستی یه نگاهی بهش بنداز ( البته بیشتر avrstudio رو گفتم )

            http://iossd.org/data/article/win_avr_part1.rar


            A-Hosseini

            دیدگاه


              #7
              پاسخ : چگونه می شه کتابخانه avrlib به winavr یا eclipes اضافه کرد.

              سلام :applause:
              ممنون اما هنوز ..... من میخوام کل کتابخانه اضافه بشه :angry: :angry: :angry:

              دیدگاه


                #8
                پاسخ : چگونه می شه کتابخانه avrlib به winavr یا eclipes اضافه کرد.

                سلام :applause:
                جالب بود :read:
                اما اون چیزی که من میخوام نیست :angry: :cry2:
                اگر می شه راهی بگو که کل پوشه را به برنامه معرفی کنم :angry:

                دیدگاه

                لطفا صبر کنید...
                X