Run cformat and dos2unix manually (#11235)
This commit is contained in:
		
							parent
							
								
									d9dcb716bf
								
							
						
					
					
						commit
						6ea4b06f9f
					
				
					 15 changed files with 550 additions and 570 deletions
				
			
		| 
						 | 
				
			
			@ -118,7 +118,7 @@
 | 
			
		|||
 *
 | 
			
		||||
 * @return                          The bit index
 | 
			
		||||
 */
 | 
			
		||||
#   define WS2812_RED_BIT(led, bit) WS2812_BIT((led), 1, (bit))
 | 
			
		||||
#    define WS2812_RED_BIT(led, bit) WS2812_BIT((led), 1, (bit))
 | 
			
		||||
 | 
			
		||||
/**
 | 
			
		||||
 * @brief   Determine the index in @ref ws2812_frame_buffer "the frame buffer" of a given green bit
 | 
			
		||||
| 
						 | 
				
			
			@ -130,7 +130,7 @@
 | 
			
		|||
 *
 | 
			
		||||
 * @return                          The bit index
 | 
			
		||||
 */
 | 
			
		||||
#   define WS2812_GREEN_BIT(led, bit) WS2812_BIT((led), 0, (bit))
 | 
			
		||||
#    define WS2812_GREEN_BIT(led, bit) WS2812_BIT((led), 0, (bit))
 | 
			
		||||
 | 
			
		||||
/**
 | 
			
		||||
 * @brief   Determine the index in @ref ws2812_frame_buffer "the frame buffer" of a given blue bit
 | 
			
		||||
| 
						 | 
				
			
			@ -142,7 +142,7 @@
 | 
			
		|||
 *
 | 
			
		||||
 * @return                          The bit index
 | 
			
		||||
 */
 | 
			
		||||
#   define WS2812_BLUE_BIT(led, bit) WS2812_BIT((led), 2, (bit))
 | 
			
		||||
#    define WS2812_BLUE_BIT(led, bit) WS2812_BIT((led), 2, (bit))
 | 
			
		||||
 | 
			
		||||
#elif (WS2812_BYTE_ORDER == WS2812_BYTE_ORDER_RGB)
 | 
			
		||||
/**
 | 
			
		||||
| 
						 | 
				
			
			@ -155,7 +155,7 @@
 | 
			
		|||
 *
 | 
			
		||||
 * @return                          The bit index
 | 
			
		||||
 */
 | 
			
		||||
#   define WS2812_RED_BIT(led, bit) WS2812_BIT((led), 0, (bit))
 | 
			
		||||
#    define WS2812_RED_BIT(led, bit) WS2812_BIT((led), 0, (bit))
 | 
			
		||||
 | 
			
		||||
/**
 | 
			
		||||
 * @brief   Determine the index in @ref ws2812_frame_buffer "the frame buffer" of a given green bit
 | 
			
		||||
| 
						 | 
				
			
			@ -167,7 +167,7 @@
 | 
			
		|||
 *
 | 
			
		||||
 * @return                          The bit index
 | 
			
		||||
 */
 | 
			
		||||
#   define WS2812_GREEN_BIT(led, bit) WS2812_BIT((led), 1, (bit))
 | 
			
		||||
#    define WS2812_GREEN_BIT(led, bit) WS2812_BIT((led), 1, (bit))
 | 
			
		||||
 | 
			
		||||
/**
 | 
			
		||||
 * @brief   Determine the index in @ref ws2812_frame_buffer "the frame buffer" of a given blue bit
 | 
			
		||||
| 
						 | 
				
			
			@ -179,7 +179,7 @@
 | 
			
		|||
 *
 | 
			
		||||
 * @return                          The bit index
 | 
			
		||||
 */
 | 
			
		||||
#   define WS2812_BLUE_BIT(led, bit) WS2812_BIT((led), 2, (bit))
 | 
			
		||||
#    define WS2812_BLUE_BIT(led, bit) WS2812_BIT((led), 2, (bit))
 | 
			
		||||
#endif
 | 
			
		||||
 | 
			
		||||
/* --- PRIVATE VARIABLES ---------------------------------------------------- */
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -69,7 +69,7 @@ static void set_led_color_rgb(LED_TYPE color, int pos) {
 | 
			
		|||
#elif (WS2812_BYTE_ORDER == WS2812_BYTE_ORDER_RGB)
 | 
			
		||||
    for (int j = 0; j < 4; j++) tx_start[BYTES_FOR_LED * pos + j] = get_protocol_eq(color.r, j);
 | 
			
		||||
    for (int j = 0; j < 4; j++) tx_start[BYTES_FOR_LED * pos + BYTES_FOR_LED_BYTE + j] = get_protocol_eq(color.g, j);
 | 
			
		||||
    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);    
 | 
			
		||||
    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);
 | 
			
		||||
#endif
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -75,7 +75,7 @@ uint8_t g_led_control_registers[LED_DRIVER_COUNT][18] = {{0}, {0}, {0}};
 | 
			
		|||
#elif LED_DRIVER_COUNT == 4
 | 
			
		||||
uint8_t g_led_control_registers[LED_DRIVER_COUNT][18] = {{0}, {0}, {0}, {0}};
 | 
			
		||||
#endif
 | 
			
		||||
bool    g_led_control_registers_update_required[LED_DRIVER_COUNT] = {false};
 | 
			
		||||
bool g_led_control_registers_update_required[LED_DRIVER_COUNT] = {false};
 | 
			
		||||
 | 
			
		||||
// This is the bit pattern in the LED control registers
 | 
			
		||||
// (for matrix A, add one to register for matrix B)
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue