diff options
author | QMK Bot <hello@qmk.fm> | 2020-12-26 04:56:43 +0000 |
---|---|---|
committer | QMK Bot <hello@qmk.fm> | 2020-12-26 04:56:43 +0000 |
commit | 0b37c0dfa0690c60ddf0798d8d771b74f47ebca1 (patch) | |
tree | 3fa910e5907b75137d047363eee6680cc89228ee /drivers/avr/i2c_master.h | |
parent | ffd7e44e5af660fbd131f67ef803ac3aad2123d6 (diff) | |
parent | 1d1d5da43f86d9dded47c66afec94991d623f114 (diff) |
Merge remote-tracking branch 'origin/master' into develop
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 4a35867cd0..e5af73364b 100644 --- a/drivers/avr/i2c_master.h +++ b/drivers/avr/i2c_master.h @@ -17,8 +17,7 @@ * GitHub repository: https://github.com/g4lvanix/I2C-master-lib */ -#ifndef I2C_MASTER_H -#define I2C_MASTER_H +#pragma once #define I2C_READ 0x01 #define I2C_WRITE 0x00 @@ -42,5 +41,3 @@ i2c_status_t i2c_receive(uint8_t address, uint8_t* data, uint16_t length, uint16 i2c_status_t i2c_writeReg(uint8_t devaddr, uint8_t regaddr, const uint8_t* data, uint16_t length, uint16_t timeout); i2c_status_t i2c_readReg(uint8_t devaddr, uint8_t regaddr, uint8_t* data, uint16_t length, uint16_t timeout); void i2c_stop(void); - -#endif // I2C_MASTER_H |