Loading files
ec334891fThis 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.
ec334891fThis file is pinned to the selected release. Download the original to open it in your design tool.
// midi.h
#ifdef ESP_PLATFORM
#include "alles.h"
#include "soc/uart_reg.h"
extern QueueHandle_t uart_queue;
#else
// virtualmidi Cocoa stubs
#endif
#define MIDI_SLOTS 4
#include "py/mphal.h"
#include "py/runtime.h"
void convert_midi_bytes_to_messages(uint8_t * data, size_t len, uint8_t usb);
void process_single_midi_byte(uint8_t byte);
extern mp_obj_t midi_callback;
//void tulip_midi_isr();
#define MAX_MIDI_BYTES_TO_PARSE 1024
#define MAX_MIDI_BYTES_PER_MESSAGE 3
#define MIDI_QUEUE_DEPTH 1024
extern uint8_t last_midi[MIDI_QUEUE_DEPTH][MAX_MIDI_BYTES_PER_MESSAGE];
extern uint8_t last_midi_len[MIDI_QUEUE_DEPTH];
extern int16_t midi_queue_tail;
extern int16_t midi_queue_head;
void midi_out(uint8_t * bytes, uint16_t len);
void midi_local(uint8_t * bytes, uint16_t len);
#ifdef ESP_PLATFORM
void run_midi();
#else
void *run_midi(void*vargp);
#endif