This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Init a structure with the field names doesn't seem to work?

struct ti_sdo_io_IDriver_Fxns__ osu_uart = {

  .open = osu_uart_open,

  .close = osu_uart_close,

  .submit = NULL,

 .control = osu_uart_control

};

Compiler gives the error "#29 expected an expression" on all 4 lines.

As far as I can tell this is vaild.  The functions are defined.

So what am I doing wrong?

Thanks