Skip to content

Instantly share code, notes, and snippets.

@brimston3
Created May 2, 2017 15:04
Show Gist options
  • Save brimston3/72d152d37148976c420a6da047b0be5a to your computer and use it in GitHub Desktop.
Save brimston3/72d152d37148976c420a6da047b0be5a to your computer and use it in GitHub Desktop.
xc8 1.41 syntax error in temporary file
#include <xc.h>
#include <stdint.h>
typedef struct _cmd_read_write_disp
{
uint8_t cmd;
void (*newseq)();
// ... Reduced for brevity ...
} CMD_READ_WRITE_DISP_ST;
#define I2C_NOOP 0x00
typedef void (*NULLFN_T)();
const NULLFN_T nullfcn = 0;
const static CMD_READ_WRITE_DISP_ST cmd_disp[] = {
{I2C_NOOP, nullfcn}
};
void main(void) {
return;
}
@brimston3
Copy link
Author

Test project uses pic16f15345.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment