Skip to content

Commit

Permalink
Add __interupt() to pass compile with using xc8 v2.05
Browse files Browse the repository at this point in the history
  • Loading branch information
asukiaaa committed Jul 6, 2019
1 parent 1cd7aa5 commit 5ca25f7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pic_i2c_slave/i2c_slave.c
Expand Up @@ -115,7 +115,7 @@ void checkStateAndManageI2c() {
} // End switch (i2cStatus)
}

void interrupt I2Cinterrupt() {
void __interrupt() I2Cinterrupt() {
if (SSP1IF) {
SSP1IF = 0; // Clear interrupt flag
checkStateAndManageI2c();
Expand Down
2 changes: 1 addition & 1 deletion pic_i2c_slave/i2c_slave.h
Expand Up @@ -10,7 +10,7 @@ extern "C" {
#define RXBUFFER_SIZE 255

void setupI2CSlave(short address);
void interrupt I2Cinterrupt();
void __interrupt() I2Cinterrupt();

int (*onI2CReceiveCallback)(unsigned char address, unsigned char data);
int (*setI2CWriteCharCallback)(unsigned char address);
Expand Down

0 comments on commit 5ca25f7

Please sign in to comment.