mirror of
https://github.com/qmk/qmk_firmware.git
synced 2024-11-23 11:52:59 +00:00
Configurable visualizer thread priority
This commit is contained in:
parent
f4c11740f7
commit
5651be7a2f
@ -24,6 +24,7 @@ SOFTWARE.
|
|||||||
|
|
||||||
#include "visualizer.h"
|
#include "visualizer.h"
|
||||||
#include "ch.h"
|
#include "ch.h"
|
||||||
|
#include "config.h"
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
#ifdef LCD_ENABLE
|
#ifdef LCD_ENABLE
|
||||||
@ -47,6 +48,11 @@ SOFTWARE.
|
|||||||
#include "serial_link/system/driver.h"
|
#include "serial_link/system/driver.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
// Define this in config.h
|
||||||
|
#ifndef VISUALIZER_THREAD_PRIORITY
|
||||||
|
#define "Visualizer thread priority not defined"
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
static visualizer_keyboard_status_t current_status = {
|
static visualizer_keyboard_status_t current_status = {
|
||||||
.layer = 0xFFFFFFFF,
|
.layer = 0xFFFFFFFF,
|
||||||
@ -409,7 +415,7 @@ void visualizer_init(void) {
|
|||||||
// when the main thread is sleeping during the matrix scanning
|
// when the main thread is sleeping during the matrix scanning
|
||||||
chEvtObjectInit(&layer_changed_event);
|
chEvtObjectInit(&layer_changed_event);
|
||||||
(void)chThdCreateStatic(visualizerThreadStack, sizeof(visualizerThreadStack),
|
(void)chThdCreateStatic(visualizerThreadStack, sizeof(visualizerThreadStack),
|
||||||
LOWPRIO, visualizerThread, NULL);
|
VISUALIZER_THREAD_PRIORITY, visualizerThread, NULL);
|
||||||
}
|
}
|
||||||
|
|
||||||
void update_status(bool changed) {
|
void update_status(bool changed) {
|
||||||
|
Loading…
Reference in New Issue
Block a user