aboutsummaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorRyan <fauxpark@gmail.com>2020-12-18 01:06:30 +1100
committerGitHub <noreply@github.com>2020-12-17 14:06:30 +0000
commit6ea4b06f9fc19825605477cdc27f5bec0f3dc0a9 (patch)
treea5266a6ea24a9dfa1627c0273a24198c5a436b3a /drivers
parentd9dcb716bfa9eef32560a95ecb50274a0f2b170c (diff)
downloadqmk_firmware-6ea4b06f9fc19825605477cdc27f5bec0f3dc0a9.tar.gz
qmk_firmware-6ea4b06f9fc19825605477cdc27f5bec0f3dc0a9.zip
Run cformat and dos2unix manually (#11235)
Diffstat (limited to 'drivers')
-rw-r--r--drivers/chibios/ws2812_pwm.c12
-rw-r--r--drivers/chibios/ws2812_spi.c2
-rw-r--r--drivers/issi/is31fl3731-simple.c2
3 files changed, 8 insertions, 8 deletions
diff --git a/drivers/chibios/ws2812_pwm.c b/drivers/chibios/ws2812_pwm.c
index 7595e2fa2..3af922c06 100644
--- a/drivers/chibios/ws2812_pwm.c
+++ b/drivers/chibios/ws2812_pwm.c
@@ -118,7 +118,7 @@
118 * 118 *
119 * @return The bit index 119 * @return The bit index
120 */ 120 */
121# define WS2812_RED_BIT(led, bit) WS2812_BIT((led), 1, (bit)) 121# define WS2812_RED_BIT(led, bit) WS2812_BIT((led), 1, (bit))
122 122
123/** 123/**
124 * @brief Determine the index in @ref ws2812_frame_buffer "the frame buffer" of a given green bit 124 * @brief Determine the index in @ref ws2812_frame_buffer "the frame buffer" of a given green bit
@@ -130,7 +130,7 @@
130 * 130 *
131 * @return The bit index 131 * @return The bit index
132 */ 132 */
133# define WS2812_GREEN_BIT(led, bit) WS2812_BIT((led), 0, (bit)) 133# define WS2812_GREEN_BIT(led, bit) WS2812_BIT((led), 0, (bit))
134 134
135/** 135/**
136 * @brief Determine the index in @ref ws2812_frame_buffer "the frame buffer" of a given blue bit 136 * @brief Determine the index in @ref ws2812_frame_buffer "the frame buffer" of a given blue bit
@@ -142,7 +142,7 @@
142 * 142 *
143 * @return The bit index 143 * @return The bit index
144 */ 144 */
145# define WS2812_BLUE_BIT(led, bit) WS2812_BIT((led), 2, (bit)) 145# define WS2812_BLUE_BIT(led, bit) WS2812_BIT((led), 2, (bit))
146 146
147#elif (WS2812_BYTE_ORDER == WS2812_BYTE_ORDER_RGB) 147#elif (WS2812_BYTE_ORDER == WS2812_BYTE_ORDER_RGB)
148/** 148/**
@@ -155,7 +155,7 @@
155 * 155 *
156 * @return The bit index 156 * @return The bit index
157 */ 157 */
158# define WS2812_RED_BIT(led, bit) WS2812_BIT((led), 0, (bit)) 158# define WS2812_RED_BIT(led, bit) WS2812_BIT((led), 0, (bit))
159 159
160/** 160/**
161 * @brief Determine the index in @ref ws2812_frame_buffer "the frame buffer" of a given green bit 161 * @brief Determine the index in @ref ws2812_frame_buffer "the frame buffer" of a given green bit
@@ -167,7 +167,7 @@
167 * 167 *
168 * @return The bit index 168 * @return The bit index
169 */ 169 */
170# define WS2812_GREEN_BIT(led, bit) WS2812_BIT((led), 1, (bit)) 170# define WS2812_GREEN_BIT(led, bit) WS2812_BIT((led), 1, (bit))
171 171
172/** 172/**
173 * @brief Determine the index in @ref ws2812_frame_buffer "the frame buffer" of a given blue bit 173 * @brief Determine the index in @ref ws2812_frame_buffer "the frame buffer" of a given blue bit
@@ -179,7 +179,7 @@
179 * 179 *
180 * @return The bit index 180 * @return The bit index
181 */ 181 */
182# define WS2812_BLUE_BIT(led, bit) WS2812_BIT((led), 2, (bit)) 182# define WS2812_BLUE_BIT(led, bit) WS2812_BIT((led), 2, (bit))
183#endif 183#endif
184 184
185/* --- PRIVATE VARIABLES ---------------------------------------------------- */ 185/* --- PRIVATE VARIABLES ---------------------------------------------------- */
diff --git a/drivers/chibios/ws2812_spi.c b/drivers/chibios/ws2812_spi.c
index 1dec1f516..a93342436 100644
--- a/drivers/chibios/ws2812_spi.c
+++ b/drivers/chibios/ws2812_spi.c
@@ -69,7 +69,7 @@ static void set_led_color_rgb(LED_TYPE color, int pos) {
69#elif (WS2812_BYTE_ORDER == WS2812_BYTE_ORDER_RGB) 69#elif (WS2812_BYTE_ORDER == WS2812_BYTE_ORDER_RGB)
70 for (int j = 0; j < 4; j++) tx_start[BYTES_FOR_LED * pos + j] = get_protocol_eq(color.r, j); 70 for (int j = 0; j < 4; j++) tx_start[BYTES_FOR_LED * pos + j] = get_protocol_eq(color.r, j);
71 for (int j = 0; j < 4; j++) tx_start[BYTES_FOR_LED * pos + BYTES_FOR_LED_BYTE + j] = get_protocol_eq(color.g, j); 71 for (int j = 0; j < 4; j++) tx_start[BYTES_FOR_LED * pos + BYTES_FOR_LED_BYTE + j] = get_protocol_eq(color.g, j);
72 for (int j = 0; j < 4; j++) tx_start[BYTES_FOR_LED * pos + BYTES_FOR_LED_BYTE * 2 + j] = get_protocol_eq(color.b, j); 72 for (int j = 0; j < 4; j++) tx_start[BYTES_FOR_LED * pos + BYTES_FOR_LED_BYTE * 2 + j] = get_protocol_eq(color.b, j);
73#endif 73#endif
74} 74}
75 75
diff --git a/drivers/issi/is31fl3731-simple.c b/drivers/issi/is31fl3731-simple.c
index cffb4d87f..7c86841f1 100644
--- a/drivers/issi/is31fl3731-simple.c
+++ b/drivers/issi/is31fl3731-simple.c
@@ -75,7 +75,7 @@ uint8_t g_led_control_registers[LED_DRIVER_COUNT][18] = {{0}, {0}, {0}};
75#elif LED_DRIVER_COUNT == 4 75#elif LED_DRIVER_COUNT == 4
76uint8_t g_led_control_registers[LED_DRIVER_COUNT][18] = {{0}, {0}, {0}, {0}}; 76uint8_t g_led_control_registers[LED_DRIVER_COUNT][18] = {{0}, {0}, {0}, {0}};
77#endif 77#endif
78bool g_led_control_registers_update_required[LED_DRIVER_COUNT] = {false}; 78bool g_led_control_registers_update_required[LED_DRIVER_COUNT] = {false};
79 79
80// This is the bit pattern in the LED control registers 80// This is the bit pattern in the LED control registers
81// (for matrix A, add one to register for matrix B) 81// (for matrix A, add one to register for matrix B)