diff options
Diffstat (limited to 'drivers/chibios/ws2812_pwm.c')
| -rw-r--r-- | drivers/chibios/ws2812_pwm.c | 12 |
1 files changed, 6 insertions, 6 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 ---------------------------------------------------- */ |
