aboutsummaryrefslogtreecommitdiff
path: root/drivers/avr
diff options
context:
space:
mode:
authorRyan <fauxpark@gmail.com>2020-12-26 15:56:11 +1100
committerGitHub <noreply@github.com>2020-12-26 15:56:11 +1100
commit1d1d5da43f86d9dded47c66afec94991d623f114 (patch)
tree5f0d4d303a1f5dd67a3d9a19b0f99b8e3f06a4e6 /drivers/avr
parent48f4768d33313e6a6ed48c31f95eb44feda10a51 (diff)
downloadqmk_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')
-rw-r--r--drivers/avr/hd44780.h6
-rw-r--r--drivers/avr/i2c_master.h5
-rw-r--r--drivers/avr/i2c_slave.h5
-rw-r--r--drivers/avr/ssd1306.h5
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
42i2c_status_t i2c_writeReg(uint8_t devaddr, uint8_t regaddr, const uint8_t* data, uint16_t length, uint16_t timeout); 41i2c_status_t i2c_writeReg(uint8_t devaddr, uint8_t regaddr, const uint8_t* data, uint16_t length, uint16_t timeout);
43i2c_status_t i2c_readReg(uint8_t devaddr, uint8_t regaddr, uint8_t* data, uint16_t length, uint16_t timeout); 42i2c_status_t i2c_readReg(uint8_t devaddr, uint8_t regaddr, uint8_t* data, uint16_t length, uint16_t timeout);
44void i2c_stop(void); 43void 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
30void i2c_slave_init(uint8_t address); 29void i2c_slave_init(uint8_t address);
31void i2c_slave_stop(void); 30void 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);
86void matrix_write(struct CharacterMatrix *matrix, const char *data); 85void matrix_write(struct CharacterMatrix *matrix, const char *data);
87void matrix_write_P(struct CharacterMatrix *matrix, const char *data); 86void matrix_write_P(struct CharacterMatrix *matrix, const char *data);
88void matrix_render(struct CharacterMatrix *matrix); 87void matrix_render(struct CharacterMatrix *matrix);
89
90#endif