Teade

Collapse

Foorumi reeglid.

Foorumi reeglistik on uuendatud. Palume tutvuda ja arvesse võtta.
See more
See less

Uno32 ja Onewire

Collapse
X
 
  • Filter
  • Kellaaeg
  • Show
Clear All
new posts

    Uno32 ja Onewire

    üritan uno32 jaoks Mpide 0023 kasutades DS18x20_Temperature näidist kompileerida
    aga saan arvukalt erroreid
    näiteks:

    .../GenericTypeDefs.h:342:33: error: expected unqualified-id before numeric constant
    .../i2c.h:717:32: error: 'BOOL' has not been declared
    .../uart.h:790:15: error: 'BOOL' does not name a type
    .../uart.h:833:86: error: expected identifier before numeric constant
    .../uart.h:833:86: error: expected ',' or '...' before numeric constant
    .../uart.h: In function 'void UARTSendDataByte(UART_MODULE, int)':
    .../uart.h:835:27: error: 'data' was not declared in this scope

    proovisin nii mac os kui ka windows peal kui tulemus suht sarnane

    kuidas asja tööle saaks?

    #2
    Vs: uno32 ja onewire

    esimest veateate rida googeldades leiab midagi sarnast
    Explore the GitHub Discussions forum for chipKIT32 chipKIT-core. Discuss code, ask questions & collaborate with the developer community.

    ja seal 1 variant soovitab vahetada <plib.h> to <p32xxx.h>
    ja teine variant lisab vist ühe täiendava #include <WProgram.h>

    võid ju proovida.
    aga ilmselgelt on mingi vajalik .h fail puudu või siis pole seal vajalikku nähtavust - erineva riistvara jaoks on vaja kas üldises projekti settingutes või koodis teha esmalt raua määratlemiseks midagi taolist
    #define P32xxx
    ja see siis avab vajalikud definitsioonid .h failides

    ja veel 1 soovitus #include <plib.h> eemaldamiseks
    Explore the GitHub Discussions forum for chipKIT32 chipKIT-core. Discuss code, ask questions & collaborate with the developer community.
    viimati muutis kasutaja dieter; 12 m 2012, 10:57.

    Comment


      #3
      Vs: uno32 ja onewire

      tänud asjaliku viite eest!
      plib.h osutus tõesti põhjuseks

      Comment

      Working...
      X