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 | |
| parent | ffd7e44e5af660fbd131f67ef803ac3aad2123d6 (diff) | |
| parent | 1d1d5da43f86d9dded47c66afec94991d623f114 (diff) | |
| download | qmk_firmware-0b37c0dfa0690c60ddf0798d8d771b74f47ebca1.tar.gz qmk_firmware-0b37c0dfa0690c60ddf0798d8d771b74f47ebca1.zip | |
Merge remote-tracking branch 'origin/master' into develop
Diffstat (limited to 'drivers')
| -rw-r--r-- | drivers/avr/hd44780.h | 6 | ||||
| -rw-r--r-- | drivers/avr/i2c_master.h | 5 | ||||
| -rw-r--r-- | drivers/avr/i2c_slave.h | 5 | ||||
| -rw-r--r-- | drivers/avr/ssd1306.h | 5 |
4 files changed, 5 insertions, 16 deletions
diff --git a/drivers/avr/hd44780.h b/drivers/avr/hd44780.h index e60817e98..08e60f8a4 100644 --- a/drivers/avr/hd44780.h +++ b/drivers/avr/hd44780.h | |||
| @@ -1,5 +1,3 @@ | |||
| 1 | #ifndef LCD_H | ||
| 2 | #define LCD_H | ||
| 3 | /************************************************************************* | 1 | /************************************************************************* |
| 4 | Title : C include file for the HD44780U LCD library (lcd.c) | 2 | Title : C include file for the HD44780U LCD library (lcd.c) |
| 5 | Author: Peter Fleury <pfleury@gmx.ch> http://tinyurl.com/peterfleury | 3 | Author: Peter Fleury <pfleury@gmx.ch> http://tinyurl.com/peterfleury |
| @@ -43,6 +41,8 @@ | |||
| 43 | 41 | ||
| 44 | */ | 42 | */ |
| 45 | 43 | ||
| 44 | #pragma once | ||
| 45 | |||
| 46 | #include <inttypes.h> | 46 | #include <inttypes.h> |
| 47 | #include <avr/pgmspace.h> | 47 | #include <avr/pgmspace.h> |
| 48 | 48 | ||
| @@ -346,5 +346,3 @@ extern void lcd_data(uint8_t data); | |||
| 346 | #define lcd_puts_P(__s) lcd_puts_p(PSTR(__s)) | 346 | #define lcd_puts_P(__s) lcd_puts_p(PSTR(__s)) |
| 347 | 347 | ||
| 348 | /**@}*/ | 348 | /**@}*/ |
| 349 | |||
| 350 | #endif // LCD_H | ||
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 | ||
diff --git a/drivers/avr/i2c_slave.h b/drivers/avr/i2c_slave.h index 5d92150e6..1cd0625ef 100644 --- a/drivers/avr/i2c_slave.h +++ b/drivers/avr/i2c_slave.h | |||
| @@ -20,8 +20,7 @@ | |||
| 20 | Read or write to the necessary buffer according to the opperation. | 20 | Read or write to the necessary buffer according to the opperation. |
| 21 | */ | 21 | */ |
| 22 | 22 | ||
| 23 | #ifndef I2C_SLAVE_H | 23 | #pragma once |
| 24 | #define I2C_SLAVE_H | ||
| 25 | 24 | ||
| 26 | #define I2C_SLAVE_REG_COUNT 30 | 25 | #define I2C_SLAVE_REG_COUNT 30 |
| 27 | 26 | ||
| @@ -29,5 +28,3 @@ extern volatile uint8_t i2c_slave_reg[I2C_SLAVE_REG_COUNT]; | |||
| 29 | 28 | ||
| 30 | void i2c_slave_init(uint8_t address); | 29 | void i2c_slave_init(uint8_t address); |
| 31 | void i2c_slave_stop(void); | 30 | void i2c_slave_stop(void); |
| 32 | |||
| 33 | #endif // I2C_SLAVE_H | ||
diff --git a/drivers/avr/ssd1306.h b/drivers/avr/ssd1306.h index 9131afcf6..6eecdcfaa 100644 --- a/drivers/avr/ssd1306.h +++ b/drivers/avr/ssd1306.h | |||
| @@ -1,5 +1,4 @@ | |||
| 1 | #ifndef SSD1306_H | 1 | #pragma once |
| 2 | #define SSD1306_H | ||
| 3 | 2 | ||
| 4 | #include <stdbool.h> | 3 | #include <stdbool.h> |
| 5 | #include <stdio.h> | 4 | #include <stdio.h> |
| @@ -86,5 +85,3 @@ void matrix_write_char(struct CharacterMatrix *matrix, uint8_t c); | |||
| 86 | void matrix_write(struct CharacterMatrix *matrix, const char *data); | 85 | void matrix_write(struct CharacterMatrix *matrix, const char *data); |
| 87 | void matrix_write_P(struct CharacterMatrix *matrix, const char *data); | 86 | void matrix_write_P(struct CharacterMatrix *matrix, const char *data); |
| 88 | void matrix_render(struct CharacterMatrix *matrix); | 87 | void matrix_render(struct CharacterMatrix *matrix); |
| 89 | |||
| 90 | #endif | ||
