Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compiling ERROR in _WIZCHIP instance #112

Open
JefersonDeLeon opened this issue May 9, 2021 · 0 comments
Open

Compiling ERROR in _WIZCHIP instance #112

JefersonDeLeon opened this issue May 9, 2021 · 0 comments

Comments

@JefersonDeLeon
Copy link

`
/**

  • @\ref _WIZCHIP instance
    */
    _WIZCHIP WIZCHIP =
    {
    .id = WIZCHIP_ID,
    .if_mode = WIZCHIP_IO_MODE,
    .CRIS._enter = wizchip_cris_enter,
    .CRIS._exit = wizchip_cris_exit,
    .CS._select = wizchip_cs_select,
    .CS._deselect = wizchip_cs_deselect,
    .IF.BUS._read_byte = wizchip_bus_readbyte,
    .IF.BUS._write_byte = wizchip_bus_writebyte
    // .IF.SPI._read_byte = wizchip_spi_readbyte,
    // .IF.SPI._write_byte = wizchip_spi_writebyte
    };
    `

I'm using arduino IDE and ESP8266 baord to compile the library, but this is the eeror im facing.

`C:\Users\user\Documents\Arduino\libraries\lanTest\wizchip_conf.cpp:114:7: error: expected primary-expression before '.' token

   .CRIS._enter         = wizchip_cris_enter,

   ^

C:\Users\user\Documents\Arduino\libraries\lanTest\wizchip_conf.cpp:115:7: error: expected primary-expression before '.' token

   .CRIS._exit          = wizchip_cris_exit,

   ^

C:\Users\user\Documents\Arduino\libraries\lanTest\wizchip_conf.cpp:116:7: error: expected primary-expression before '.' token

   .CS._select          = wizchip_cs_select,

   ^

C:\Users\user\Documents\Arduino\libraries\lanTest\wizchip_conf.cpp:117:7: error: expected primary-expression before '.' token

   .CS._deselect        = wizchip_cs_deselect,

   ^

C:\Users\user\Documents\Arduino\libraries\lanTest\wizchip_conf.cpp:118:7: error: expected primary-expression before '.' token

   .IF.BUS._read_byte   = wizchip_bus_readbyte,

   ^

C:\Users\user\Documents\Arduino\libraries\lanTest\wizchip_conf.cpp:119:7: error: expected primary-expression before '.' token

   .IF.BUS._write_byte  = wizchip_bus_writebyte

   ^

C:\Users\user\Documents\Arduino\libraries\lanTest\wizchip_conf.cpp:122:7: error: C99 designator 'id' outside aggregate initializer

   };

   ^

`

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant