diff options
| author | Lars-Dominik Braun <lars@6xq.net> | 2014-07-22 16:45:10 +0200 |
|---|---|---|
| committer | Lars-Dominik Braun <lars@6xq.net> | 2014-07-22 16:55:55 +0200 |
| commit | c6f7452ab86675465959b5f8784e3140438a56ba (patch) | |
| tree | 3a8690baecebbd3db5db9200ddd03104c35813d4 /i2c.c | |
| parent | 5055ee55d1330b52182a35378f5b4f8055cefc54 (diff) | |
| download | hourglass-c6f7452ab86675465959b5f8784e3140438a56ba.tar.gz hourglass-c6f7452ab86675465959b5f8784e3140438a56ba.tar.bz2 hourglass-c6f7452ab86675465959b5f8784e3140438a56ba.zip | |
Use “volatile” on struct members
Not all struct members are written in an ISR.
Diffstat (limited to 'i2c.c')
| -rw-r--r-- | i2c.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -6,7 +6,7 @@ #include "i2c.h" #include "common.h" -volatile twReq twr; +twReq twr; static void twStartRaw () { /* disable stop, enable interrupt, reset twint, enable start, enable i2c */ |
