diff options
author | Joel Challis <git@zvecr.com> | 2020-09-17 01:45:07 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-09-17 10:45:07 +1000 |
commit | 410d09675a58f1890c24068066bb8eace21c2416 (patch) | |
tree | e73317b854be32f53cce9c20ccf1767142896823 /keyboards/meira/TWIlib.c | |
parent | e9b3a12c6e43444f5f6a6e3f63b5e4ece80740eb (diff) | |
download | qmk_firmware-410d09675a58f1890c24068066bb8eace21c2416.tar.gz |
Fix TWIlib compilation on avr-gcc 10 (#9273)
Diffstat (limited to 'keyboards/meira/TWIlib.c')
-rwxr-xr-x | keyboards/meira/TWIlib.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/keyboards/meira/TWIlib.c b/keyboards/meira/TWIlib.c index 8e0c97438..4091429b4 100755 --- a/keyboards/meira/TWIlib.c +++ b/keyboards/meira/TWIlib.c @@ -11,6 +11,19 @@ #include "util/delay.h" #include "print.h" +// Global transmit buffer +volatile uint8_t *TWITransmitBuffer; +// Global receive buffer +volatile uint8_t TWIReceiveBuffer[RXMAXBUFLEN]; +// Buffer indexes +volatile int TXBuffIndex; // Index of the transmit buffer. Is volatile, can change at any time. +int RXBuffIndex; // Current index in the receive buffer +// Buffer lengths +int TXBuffLen; // The total length of the transmit buffer +int RXBuffLen; // The total number of bytes to read (should be less than RXMAXBUFFLEN) + +TWIInfoStruct TWIInfo; + void TWIInit() { TWIInfo.mode = Ready; |