Change include guards in quantum/ to pragma once (#11239)
This commit is contained in:
parent
53eb7f0774
commit
48f4768d33
50 changed files with 68 additions and 204 deletions
|
@ -19,8 +19,7 @@
|
|||
* Please use spaces instead of tabs in this file.
|
||||
*/
|
||||
|
||||
#ifndef COMMON_GFXCONF_H
|
||||
#define COMMON_GFXCONF_H
|
||||
#pragma once
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////
|
||||
// GFX - Compatibility options //
|
||||
|
@ -353,5 +352,3 @@
|
|||
#define GMISC_NEED_MATRIXFLOAT2D GFXON
|
||||
#define GMISC_NEED_MATRIXFIXED2D GFXOFF
|
||||
//#define GMISC_NEED_HITTEST_POLY GFXOFF
|
||||
|
||||
#endif /* COMMON_GFXCONF_H */
|
||||
|
|
|
@ -14,8 +14,7 @@
|
|||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#ifndef DEFAULT_ANIMATIONS_H_
|
||||
#define DEFAULT_ANIMATIONS_H_
|
||||
#pragma once
|
||||
|
||||
#include "visualizer.h"
|
||||
|
||||
|
@ -26,5 +25,3 @@ extern keyframe_animation_t default_suspend_animation;
|
|||
// An animation for testing and demonstrating the led support, should probably not be used for real world
|
||||
// cases
|
||||
extern keyframe_animation_t led_test_animation;
|
||||
|
||||
#endif /* DEFAULT_ANIMATIONS_H_ */
|
||||
|
|
|
@ -22,8 +22,8 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|||
SOFTWARE.
|
||||
*/
|
||||
|
||||
#ifndef LCD_BACKLIGHT_H_
|
||||
#define LCD_BACKLIGHT_H_
|
||||
#pragma once
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
// Helper macros for storing hue, staturation and intensity as unsigned integers
|
||||
|
@ -41,5 +41,3 @@ uint8_t lcd_get_backlight_brightness(void);
|
|||
|
||||
void lcd_backlight_hal_init(void);
|
||||
void lcd_backlight_hal_color(uint16_t r, uint16_t g, uint16_t b);
|
||||
|
||||
#endif /* LCD_BACKLIGHT_H_ */
|
||||
|
|
|
@ -14,8 +14,7 @@
|
|||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#ifndef QUANTUM_VISUALIZER_LCD_BACKLIGHT_KEYFRAMES_H_
|
||||
#define QUANTUM_VISUALIZER_LCD_BACKLIGHT_KEYFRAMES_H_
|
||||
#pragma once
|
||||
|
||||
#include "visualizer.h"
|
||||
|
||||
|
@ -26,5 +25,3 @@ bool lcd_backlight_keyframe_set_color(keyframe_animation_t* animation, visualize
|
|||
|
||||
bool lcd_backlight_keyframe_disable(keyframe_animation_t* animation, visualizer_state_t* state);
|
||||
bool lcd_backlight_keyframe_enable(keyframe_animation_t* animation, visualizer_state_t* state);
|
||||
|
||||
#endif /* QUANTUM_VISUALIZER_LCD_BACKLIGHT_KEYFRAMES_H_ */
|
||||
|
|
|
@ -14,8 +14,7 @@
|
|||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#ifndef QUANTUM_VISUALIZER_LCD_KEYFRAMES_H_
|
||||
#define QUANTUM_VISUALIZER_LCD_KEYFRAMES_H_
|
||||
#pragma once
|
||||
|
||||
#include "visualizer.h"
|
||||
|
||||
|
@ -34,5 +33,3 @@ bool lcd_keyframe_draw_logo(keyframe_animation_t* animation, visualizer_state_t*
|
|||
|
||||
bool lcd_keyframe_disable(keyframe_animation_t* animation, visualizer_state_t* state);
|
||||
bool lcd_keyframe_enable(keyframe_animation_t* animation, visualizer_state_t* state);
|
||||
|
||||
#endif /* QUANTUM_VISUALIZER_LCD_KEYFRAMES_H_ */
|
||||
|
|
|
@ -22,8 +22,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|||
SOFTWARE.
|
||||
*/
|
||||
|
||||
#ifndef LED_BACKLIGHT_KEYFRAMES_H
|
||||
#define LED_BACKLIGHT_KEYFRAMES_H
|
||||
#pragma once
|
||||
|
||||
#include "visualizer.h"
|
||||
|
||||
|
@ -39,5 +38,3 @@ bool led_backlight_keyframe_disable(keyframe_animation_t* animation, visualizer_
|
|||
bool led_backlight_keyframe_enable(keyframe_animation_t* animation, visualizer_state_t* state);
|
||||
|
||||
extern keyframe_animation_t led_test_animation;
|
||||
|
||||
#endif /* LED_KEYFRAMES_H */
|
||||
|
|
|
@ -14,13 +14,10 @@
|
|||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#ifndef QUANTUM_VISUALIZER_RESOURCES_RESOURCES_H_
|
||||
#define QUANTUM_VISUALIZER_RESOURCES_RESOURCES_H_
|
||||
#pragma once
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
#ifdef LCD_ENABLE
|
||||
extern const uint8_t resource_lcd_logo[];
|
||||
#endif
|
||||
|
||||
#endif /* QUANTUM_VISUALIZER_RESOURCES_RESOURCES_H_ */
|
||||
|
|
|
@ -22,8 +22,8 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|||
SOFTWARE.
|
||||
*/
|
||||
|
||||
#ifndef VISUALIZER_H
|
||||
#define VISUALIZER_H
|
||||
#pragma once
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <stdint.h>
|
||||
#include <stdbool.h>
|
||||
|
@ -152,5 +152,3 @@ void user_visualizer_suspend(visualizer_state_t* state);
|
|||
void initialize_user_visualizer(visualizer_state_t* state);
|
||||
// Called when the computer resumes from a suspend
|
||||
void user_visualizer_resume(visualizer_state_t* state);
|
||||
|
||||
#endif /* VISUALIZER_H */
|
||||
|
|
|
@ -14,13 +14,10 @@
|
|||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#ifndef QUANTUM_VISUALIZER_VISUALIZER_KEYFRAMES_H_
|
||||
#define QUANTUM_VISUALIZER_VISUALIZER_KEYFRAMES_H_
|
||||
#pragma once
|
||||
|
||||
#include "visualizer.h"
|
||||
|
||||
// Some predefined keyframe functions that can be used by the user code
|
||||
// Does nothing, useful for adding delays
|
||||
bool keyframe_no_operation(keyframe_animation_t* animation, visualizer_state_t* state);
|
||||
|
||||
#endif /* QUANTUM_VISUALIZER_VISUALIZER_KEYFRAMES_H_ */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue