forked from PAWPAW-Mirror/lib_xua
Review feedback
This commit is contained in:
@@ -1,16 +1,6 @@
|
||||
// Copyright 2024 XMOS LIMITED.
|
||||
// This Software is subject to the terms of the XMOS Public Licence: Version 1.
|
||||
|
||||
/* A very simple *example* of a USB audio application (and as such is un-verified for production)
|
||||
*
|
||||
* It uses the main blocks from the lib_xua
|
||||
*
|
||||
* - 2 channels out I2S only
|
||||
* - No DFU
|
||||
* - I2S only
|
||||
*
|
||||
*/
|
||||
|
||||
#include <xs1.h>
|
||||
#include <platform.h>
|
||||
#include <stdio.h>
|
||||
@@ -47,8 +37,9 @@ on tile[MIDI_TILE] : clock clk_midi = CLKBLK_MIDI;
|
||||
/* See hwsupport.xc */
|
||||
void board_setup();
|
||||
|
||||
#ifndef CABLE_NUM
|
||||
#define CABLE_NUM 0
|
||||
|
||||
#endif
|
||||
|
||||
unsigned midi_in_parse_helper(unsigned midi[3]){
|
||||
struct midi_in_parse_state m_state;
|
||||
|
||||
@@ -19,9 +19,14 @@
|
||||
#define DATA_RANGE 128
|
||||
#define DATA_MASK (DATA_RANGE - 1)
|
||||
|
||||
#define NUM_TESTS_PER_TEST 30
|
||||
#ifndef NUM_TESTS_PER_TEST
|
||||
#define NUM_TESTS_PER_TEST 0
|
||||
#endif
|
||||
|
||||
#ifndef CABLE_NUM
|
||||
#define CABLE_NUM 0
|
||||
#endif
|
||||
|
||||
#define CABLE_NUM 2
|
||||
#define RANDOM_SEED 6031769
|
||||
|
||||
unsigned midi_in_parse_ut(unsigned midi[3]){
|
||||
|
||||
Reference in New Issue
Block a user