The unified diff between revisions [a39fe798..] and [81e4dce2..] is displayed below. It can also be downloaded as a raw diff.
This diff has been restricted to the following files: 'i2c.c'
# # old_revision [a39fe7980c8f14b70401f4c97f3e10232dce016a] # new_revision [81e4dce274e79dd9187ed4bd182e1d6fc0fdfb37] # # patch "i2c.c" # from [ebacb54424d6c1bd22ce75978f6c6756eecf488c] # to [7f5362fc29f8f8f81682424c73930b5e3044c994] # ============================================================ --- i2c.c ebacb54424d6c1bd22ce75978f6c6756eecf488c +++ i2c.c 7f5362fc29f8f8f81682424c73930b5e3044c994 @@ -1,6 +1,7 @@ #include "i2c.h" #include "interrupt.h" +#include "event.h" #define I2CBASE 0xE001C000 @@ -108,6 +109,7 @@ void __attribute__((interrupt("IRQ"))) i i2c_transaction = NULL; IREG(I2CONSET) = STOFLAG; IREG(I2CONCLR) = STAFLAG | AAFLAG | SIFLAG; + event_set(EVENT_I2C_COMPLETE); } } break; @@ -138,6 +140,7 @@ void __attribute__((interrupt("IRQ"))) i i2c_transaction = NULL; IREG(I2CONSET) = STOFLAG; IREG(I2CONCLR) = STAFLAG | AAFLAG | SIFLAG; + event_set(EVENT_I2C_COMPLETE); } break; @@ -150,6 +153,7 @@ void __attribute__((interrupt("IRQ"))) i i2c_transaction = NULL; IREG(I2CONSET) = STOFLAG; IREG(I2CONCLR) = STAFLAG | AAFLAG | SIFLAG; + event_set(EVENT_I2C_COMPLETE); break; /* We don't handle slave mode */