forked from PAWPAW-Mirror/lib_xua
Updated trivial test. Builds for xCore200 with minimal warnings.
This commit is contained in:
25
tests/xua_unit_tests/src/test_hid.xc
Normal file
25
tests/xua_unit_tests/src/test_hid.xc
Normal file
@@ -0,0 +1,25 @@
|
|||||||
|
// Copyright 2021 XMOS LIMITED.
|
||||||
|
// This Software is subject to the terms of the XMOS Public Licence: Version 1.
|
||||||
|
#include "xua_unit_tests.h"
|
||||||
|
|
||||||
|
in port p_mclk_in = XS1_PORT_1D;
|
||||||
|
|
||||||
|
/* Clock-block declarations */
|
||||||
|
clock clk_audio_bclk = on tile[0]: XS1_CLKBLK_1; /* Bit clock */
|
||||||
|
clock clk_audio_mclk = on tile[0]: XS1_CLKBLK_4; /* Master clock */
|
||||||
|
|
||||||
|
// Supply missing but unused function
|
||||||
|
void AudioHwConfig(unsigned samFreq, unsigned mClk, unsigned dsdMode, unsigned sampRes_DAC, unsigned sampRes_ADC)
|
||||||
|
{
|
||||||
|
; // nothing
|
||||||
|
}
|
||||||
|
|
||||||
|
// Supply missing but unused function
|
||||||
|
void AudioHwInit()
|
||||||
|
{
|
||||||
|
; // nothing
|
||||||
|
}
|
||||||
|
|
||||||
|
void test_null(){
|
||||||
|
TEST_ASSERT_MESSAGE(1, "Success!");
|
||||||
|
}
|
||||||
@@ -1,7 +0,0 @@
|
|||||||
// Copyright 2021 XMOS LIMITED.
|
|
||||||
// This Software is subject to the terms of the XMOS Public Licence: Version 1.
|
|
||||||
#include "xua_unit_tests.h"
|
|
||||||
|
|
||||||
void test_null(){
|
|
||||||
TEST_ASSERT_MESSAGE(1, "Success!");
|
|
||||||
}
|
|
||||||
@@ -8,6 +8,7 @@
|
|||||||
#ifdef __XC__
|
#ifdef __XC__
|
||||||
|
|
||||||
#include <xs1.h>
|
#include <xs1.h>
|
||||||
|
#include <platform.h>
|
||||||
#include <xclib.h>
|
#include <xclib.h>
|
||||||
|
|
||||||
#include "xua_conf.h"
|
#include "xua_conf.h"
|
||||||
|
|||||||
Reference in New Issue
Block a user