diff options
| author | Ryan <fauxpark@gmail.com> | 2021-05-13 09:17:18 +1000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-05-13 09:17:18 +1000 |
| commit | 92fbadeb1bb9f9c37cfeef2a4f81f2f154e1226b (patch) | |
| tree | 0f8d8c57fdbde6db9d874e47e5fb008628a9598b /quantum | |
| parent | 07800e82c96c12919061beab25d37d10073fe57f (diff) | |
| download | qmk_firmware-92fbadeb1bb9f9c37cfeef2a4f81f2f154e1226b.tar.gz qmk_firmware-92fbadeb1bb9f9c37cfeef2a4f81f2f154e1226b.zip | |
Rename `point_t` -> `led_point_t` (#12864)
Diffstat (limited to 'quantum')
| -rw-r--r-- | quantum/led_matrix.c | 4 | ||||
| -rw-r--r-- | quantum/led_matrix_types.h | 8 | ||||
| -rw-r--r-- | quantum/rgb_matrix.c | 4 | ||||
| -rw-r--r-- | quantum/rgb_matrix_types.h | 8 |
4 files changed, 12 insertions, 12 deletions
diff --git a/quantum/led_matrix.c b/quantum/led_matrix.c index 58cda6413..d612fbfa9 100644 --- a/quantum/led_matrix.c +++ b/quantum/led_matrix.c | |||
| @@ -28,9 +28,9 @@ | |||
| 28 | #include <lib/lib8tion/lib8tion.h> | 28 | #include <lib/lib8tion/lib8tion.h> |
| 29 | 29 | ||
| 30 | #ifndef LED_MATRIX_CENTER | 30 | #ifndef LED_MATRIX_CENTER |
| 31 | const point_t k_led_matrix_center = {112, 32}; | 31 | const led_point_t k_led_matrix_center = {112, 32}; |
| 32 | #else | 32 | #else |
| 33 | const point_t k_led_matrix_center = LED_MATRIX_CENTER; | 33 | const led_point_t k_led_matrix_center = LED_MATRIX_CENTER; |
| 34 | #endif | 34 | #endif |
| 35 | 35 | ||
| 36 | // Generic effect runners | 36 | // Generic effect runners |
diff --git a/quantum/led_matrix_types.h b/quantum/led_matrix_types.h index 13f44b07e..61cdbd9b8 100644 --- a/quantum/led_matrix_types.h +++ b/quantum/led_matrix_types.h | |||
| @@ -61,7 +61,7 @@ typedef struct PACKED { | |||
| 61 | typedef struct PACKED { | 61 | typedef struct PACKED { |
| 62 | uint8_t x; | 62 | uint8_t x; |
| 63 | uint8_t y; | 63 | uint8_t y; |
| 64 | } point_t; | 64 | } led_point_t; |
| 65 | 65 | ||
| 66 | #define HAS_FLAGS(bits, flags) ((bits & flags) == flags) | 66 | #define HAS_FLAGS(bits, flags) ((bits & flags) == flags) |
| 67 | #define HAS_ANY_FLAGS(bits, flags) ((bits & flags) != 0x00) | 67 | #define HAS_ANY_FLAGS(bits, flags) ((bits & flags) != 0x00) |
| @@ -75,9 +75,9 @@ typedef struct PACKED { | |||
| 75 | #define NO_LED 255 | 75 | #define NO_LED 255 |
| 76 | 76 | ||
| 77 | typedef struct PACKED { | 77 | typedef struct PACKED { |
| 78 | uint8_t matrix_co[MATRIX_ROWS][MATRIX_COLS]; | 78 | uint8_t matrix_co[MATRIX_ROWS][MATRIX_COLS]; |
| 79 | point_t point[DRIVER_LED_TOTAL]; | 79 | led_point_t point[DRIVER_LED_TOTAL]; |
| 80 | uint8_t flags[DRIVER_LED_TOTAL]; | 80 | uint8_t flags[DRIVER_LED_TOTAL]; |
| 81 | } led_config_t; | 81 | } led_config_t; |
| 82 | 82 | ||
| 83 | typedef union { | 83 | typedef union { |
diff --git a/quantum/rgb_matrix.c b/quantum/rgb_matrix.c index 097c5302d..e716c6aad 100644 --- a/quantum/rgb_matrix.c +++ b/quantum/rgb_matrix.c | |||
| @@ -26,9 +26,9 @@ | |||
| 26 | #include <lib/lib8tion/lib8tion.h> | 26 | #include <lib/lib8tion/lib8tion.h> |
| 27 | 27 | ||
| 28 | #ifndef RGB_MATRIX_CENTER | 28 | #ifndef RGB_MATRIX_CENTER |
| 29 | const point_t k_rgb_matrix_center = {112, 32}; | 29 | const led_point_t k_rgb_matrix_center = {112, 32}; |
| 30 | #else | 30 | #else |
| 31 | const point_t k_rgb_matrix_center = RGB_MATRIX_CENTER; | 31 | const led_point_t k_rgb_matrix_center = RGB_MATRIX_CENTER; |
| 32 | #endif | 32 | #endif |
| 33 | 33 | ||
| 34 | __attribute__((weak)) RGB rgb_matrix_hsv_to_rgb(HSV hsv) { return hsv_to_rgb(hsv); } | 34 | __attribute__((weak)) RGB rgb_matrix_hsv_to_rgb(HSV hsv) { return hsv_to_rgb(hsv); } |
diff --git a/quantum/rgb_matrix_types.h b/quantum/rgb_matrix_types.h index 1a37922af..df575d657 100644 --- a/quantum/rgb_matrix_types.h +++ b/quantum/rgb_matrix_types.h | |||
| @@ -62,7 +62,7 @@ typedef struct PACKED { | |||
| 62 | typedef struct PACKED { | 62 | typedef struct PACKED { |
| 63 | uint8_t x; | 63 | uint8_t x; |
| 64 | uint8_t y; | 64 | uint8_t y; |
| 65 | } point_t; | 65 | } led_point_t; |
| 66 | 66 | ||
| 67 | #define HAS_FLAGS(bits, flags) ((bits & flags) == flags) | 67 | #define HAS_FLAGS(bits, flags) ((bits & flags) == flags) |
| 68 | #define HAS_ANY_FLAGS(bits, flags) ((bits & flags) != 0x00) | 68 | #define HAS_ANY_FLAGS(bits, flags) ((bits & flags) != 0x00) |
| @@ -77,9 +77,9 @@ typedef struct PACKED { | |||
| 77 | #define NO_LED 255 | 77 | #define NO_LED 255 |
| 78 | 78 | ||
| 79 | typedef struct PACKED { | 79 | typedef struct PACKED { |
| 80 | uint8_t matrix_co[MATRIX_ROWS][MATRIX_COLS]; | 80 | uint8_t matrix_co[MATRIX_ROWS][MATRIX_COLS]; |
| 81 | point_t point[DRIVER_LED_TOTAL]; | 81 | led_point_t point[DRIVER_LED_TOTAL]; |
| 82 | uint8_t flags[DRIVER_LED_TOTAL]; | 82 | uint8_t flags[DRIVER_LED_TOTAL]; |
| 83 | } led_config_t; | 83 | } led_config_t; |
| 84 | 84 | ||
| 85 | typedef union { | 85 | typedef union { |
