Loading files
701e58161This file is pinned to the selected release. Download the original to open it in your design tool.
Files from this revision, including CAD and LFS contents. Git history is not included.
Or in GitHub Desktop, choose File → Clone repository → URL and paste this address.
Public repositories can be cloned without signing in. For pushing, use your ThingAtlas username and a Git access token as the password.
git lfs install git clone https://thingatlas.com/git/-unclaimed/tulipcc-498083946.git
Includes Git history, branches, and Git LFS files. Clones the repository’s default branch, regardless of the version shown here.
#ifdef ESP_PLATFORM
#include "esp_task.h"
#ifndef TASKS_H
#define TASKS_H
// All of the ESP tasks that we create in one place
#define DISPLAY_TASK_PRIORITY (ESP_TASK_PRIO_MIN)
#define USB_TASK_PRIORITY (ESP_TASK_PRIO_MIN + 1)
#define TOUCHSCREEN_TASK_PRIORITY (ESP_TASK_PRIO_MIN + 1)
#define SEQUENCER_TASK_PRIORITY (ESP_TASK_PRIO_MAX - 1) // Can be low because it sets its own timers?
#define TULIP_MP_TASK_PRIORITY (ESP_TASK_PRIO_MIN + 1)
// Since display is on core0, things on core0 will be slower than things on core1
#define DISPLAY_TASK_COREID (0)
#define USB_TASK_COREID (1)
#define TOUCHSCREEN_TASK_COREID (0)
#define TULIP_MP_TASK_COREID (1)
#define SEQUENCER_TASK_COREID (0)
#define DISPLAY_TASK_STACK_SIZE (4 * 1024)
#define USB_TASK_STACK_SIZE (8 * 1024)
#define TOUCHSCREEN_TASK_STACK_SIZE (4 * 1024)
#define TULIP_MP_TASK_STACK_SIZE (32 * 1024)
#define SEQUENCER_TASK_STACK_SIZE (2 * 1024)
#define MP_TASK_HEAP_SIZE (2 * 1024 * 1024)
#define DISPLAY_TASK_NAME "display_task"
#define USB_TASK_NAME "usb_task"
#define TOUCHSCREEN_TASK_NAME "tscreen_task"
#define SEQUENCER_TASK_NAME "seq_task"
#define TULIP_MP_TASK_NAME "tulip_mp_task"
#define MAX_TASKS 18 // includes system tasks
extern TaskHandle_t display_handle;
extern TaskHandle_t usb_handle;
extern TaskHandle_t sequencer_handle;
extern TaskHandle_t touchscreen_handle;
extern TaskHandle_t tulip_mp_handle;
extern TaskHandle_t idle_0_handle;
extern TaskHandle_t idle_1_handle;
// For CPU usage
extern unsigned long last_task_counters[MAX_TASKS];
#endif
#endif
701e58161This file is pinned to the selected release. Download the original to open it in your design tool.