Change keyboard level include guards to pragma once
(#14248)
* Change keyboard level include guards to `pragma once` And clean up a lot of layout macros * Oops * Remove dangling endif
This commit is contained in:
@@ -1,5 +1,4 @@
|
||||
#ifndef POWER_H
|
||||
#define POWER_H
|
||||
#pragma once
|
||||
|
||||
#include <stdint.h>
|
||||
#include <stdbool.h>
|
||||
@@ -31,5 +30,3 @@ battery_status_t battery_status(void);
|
||||
// ADC offset:16, resolution:5mV
|
||||
#define BATTERY_ADC_OFFSET 16
|
||||
#define BATTERY_ADC_RESOLUTION 5
|
||||
|
||||
#endif
|
||||
|
@@ -1,5 +1,4 @@
|
||||
#ifndef RN42_H
|
||||
#define RN42_H
|
||||
#pragma once
|
||||
|
||||
#include <stdbool.h>
|
||||
#include "host_driver.h"
|
||||
@@ -26,5 +25,3 @@ void rn42_send_str(const char *str);
|
||||
void rn42_print_response(void);
|
||||
#define SEND_STR(str) rn42_send_str(PSTR(str))
|
||||
#define SEND_COMMAND(cmd) rn42_send_command(PSTR(cmd))
|
||||
|
||||
#endif
|
||||
|
@@ -1,5 +1,4 @@
|
||||
#ifndef RN42_TASK_H
|
||||
#define RN42_TASK_H
|
||||
#pragma once
|
||||
|
||||
#include <stdbool.h>
|
||||
#include "rn42.h"
|
||||
@@ -10,5 +9,3 @@ bool rn42_nkro_last;
|
||||
|
||||
void rn42_task_init(void);
|
||||
void rn42_task(void);
|
||||
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user