-
Notifications
You must be signed in to change notification settings - Fork 2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
drivers/ws281x: added arm backend, leveraging the light_ws2812 package
- Loading branch information
1 parent
4dfdd1e
commit 8914991
Showing
4 changed files
with
57 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
/* | ||
* Copyright 2022 BISSELL Homecare, Inc. | ||
* | ||
* This file is subject to the terms and conditions of the GNU Lesser | ||
* General Public License v2.1. See the file LICENSE in the top level | ||
* directory for more details. | ||
*/ | ||
|
||
/** | ||
* @ingroup drivers_ws281x | ||
* | ||
* @{ | ||
* | ||
* @file | ||
* @brief Implementation of `ws281x_write_buffer()` for the ARM CPU | ||
* | ||
* @author David VanKampen <[email protected]> | ||
* | ||
* @} | ||
*/ | ||
#include <assert.h> | ||
#include <errno.h> | ||
#include <stdint.h> | ||
#include <string.h> | ||
|
||
#include "ws281x.h" | ||
#include "ws281x_params.h" | ||
#include "ws281x_constants.h" | ||
|
||
#include "light_ws2812_cortex.h" | ||
|
||
|
||
void ws281x_write_buffer(ws281x_t *dev, const void *buf, size_t size) | ||
{ | ||
assert(dev); | ||
ws2812_sendarray((uint8_t*)buf, size); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters