diff options
| author | Ryan <fauxpark@gmail.com> | 2020-12-26 15:56:11 +1100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-12-26 15:56:11 +1100 |
| commit | 1d1d5da43f86d9dded47c66afec94991d623f114 (patch) | |
| tree | 5f0d4d303a1f5dd67a3d9a19b0f99b8e3f06a4e6 /drivers/avr/i2c_master.h | |
| parent | 48f4768d33313e6a6ed48c31f95eb44feda10a51 (diff) | |
| download | qmk_firmware-1d1d5da43f86d9dded47c66afec94991d623f114.tar.gz qmk_firmware-1d1d5da43f86d9dded47c66afec94991d623f114.zip | |
Change include guards in tmk_core/ and drivers/ to pragma once (#11240)
Diffstat (limited to 'drivers/avr/i2c_master.h')
| -rw-r--r-- | drivers/avr/i2c_master.h | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/drivers/avr/i2c_master.h b/drivers/avr/i2c_master.h index 4a35867cd..e5af73364 100644 --- a/drivers/avr/i2c_master.h +++ b/drivers/avr/i2c_master.h | |||
| @@ -17,8 +17,7 @@ | |||
| 17 | * GitHub repository: https://github.com/g4lvanix/I2C-master-lib | 17 | * GitHub repository: https://github.com/g4lvanix/I2C-master-lib |
| 18 | */ | 18 | */ |
| 19 | 19 | ||
| 20 | #ifndef I2C_MASTER_H | 20 | #pragma once |
| 21 | #define I2C_MASTER_H | ||
| 22 | 21 | ||
| 23 | #define I2C_READ 0x01 | 22 | #define I2C_READ 0x01 |
| 24 | #define I2C_WRITE 0x00 | 23 | #define I2C_WRITE 0x00 |
| @@ -42,5 +41,3 @@ i2c_status_t i2c_receive(uint8_t address, uint8_t* data, uint16_t length, uint16 | |||
| 42 | i2c_status_t i2c_writeReg(uint8_t devaddr, uint8_t regaddr, const uint8_t* data, uint16_t length, uint16_t timeout); | 41 | i2c_status_t i2c_writeReg(uint8_t devaddr, uint8_t regaddr, const uint8_t* data, uint16_t length, uint16_t timeout); |
| 43 | i2c_status_t i2c_readReg(uint8_t devaddr, uint8_t regaddr, uint8_t* data, uint16_t length, uint16_t timeout); | 42 | i2c_status_t i2c_readReg(uint8_t devaddr, uint8_t regaddr, uint8_t* data, uint16_t length, uint16_t timeout); |
| 44 | void i2c_stop(void); | 43 | void i2c_stop(void); |
| 45 | |||
| 46 | #endif // I2C_MASTER_H | ||
