Fix action.h according to our coding standards.

This commit is contained in:
László Monda
2017-06-15 19:21:00 +02:00
parent 2e9048bbb0
commit a2c13dee1f

View File

@@ -1,13 +1,24 @@
#ifndef __ACTION_H__ #ifndef __ACTION_H__
#define __ACTION_H__ #define __ACTION_H__
// Includes:
#include <stdint.h> #include <stdint.h>
#include "lufa/HIDClassCommon.h" #include "lufa/HIDClassCommon.h"
#include "usb_composite_device.h" #include "usb_composite_device.h"
#include "main.h" #include "main.h"
#include "module.h" #include "module.h"
// Macros:
#define MOUSE_WHEEL_SPEED 1
#define MOUSE_WHEEL_DIVISOR 4
#define MOUSE_MAX_SPEED 10
#define MOUSE_SPEED_ACCEL_DIVISOR 50
// Typedefs:
typedef enum { typedef enum {
KeyActionType_None, KeyActionType_None,
KeyActionType_Keystroke, KeyActionType_Keystroke,
@@ -59,12 +70,6 @@ typedef enum {
TestAction_DisableLedDriverPwm, TestAction_DisableLedDriverPwm,
} test_action_t; } test_action_t;
#define MOUSE_WHEEL_SPEED 1
#define MOUSE_WHEEL_DIVISOR 4
#define MOUSE_MAX_SPEED 10
#define MOUSE_SPEED_ACCEL_DIVISOR 50
typedef struct { typedef struct {
uint8_t type; uint8_t type;
union { union {
@@ -95,6 +100,8 @@ typedef struct {
}; };
} __attribute__ ((packed)) key_action_t; } __attribute__ ((packed)) key_action_t;
// Variables:
extern void UpdateActiveUsbReports(); extern void UpdateActiveUsbReports();
#endif #endif