PixelKey
NeoPixel USB Key
Loading...
Searching...
No Matches
tasks.c File Reference
#include <stdlib.h>
#include <stdbool.h>
#include <stdint.h>
#include <string.h>
#include <stdio.h>
#include <ctype.h>
#include "hal_data.h"
#include "hal_device.h"
#include "hal_tasks.h"
#include "pixelkey.h"
#include "neopixel.h"
#include "serial.h"
#include "config.h"
#include "hal_npdata_transfer.h"

Macros

#define CSI_CHAR_END_START   (2U)
 Position to begin looking for the CSI end character.
 
#define CSI_CHAR_END_MIN_VALUE   (0x40U)
 Minimum value for the CSI end character.
 
#define CSI_CHAR_END_MAX_VALUE   (0x7EU)
 Maximum value of the CSI end character.
 

Functions

 _Pragma ("GCC diagnostic ignored \"-W\" \"missing-prototypes\"")
 Input buffer for received command data over USB.
 
void __NO_RETURN pixelkey_reboot (void)
 
void pixelkey_task_do_frame (void)
 Renders and queues a frame to be transferred at the next frame interval. More...
 
void pixelkey_task_terminal_connected (void)
 Sends initial strings for a connected terminal.
 
void pixelkey_task_command_prompt (void)
 Sends the command prompt.
 
void pixelkey_task_command_rx (void)
 Processes data from the USB input buffer and parses into a command.
 
static void echo_str (uint8_t *str, size_t length)
 Echos a string back to the serial interface if echo is enabled or if a terminal is detected. More...