Updated trivial test. Builds for xCore200 with minimal warnings.

This commit is contained in:
mbanth
2021-05-20 15:47:02 +01:00
parent ede81bd5f7
commit c0dade0156
3 changed files with 26 additions and 7 deletions

View 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!");
}

View File

@@ -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!");
}

View File

@@ -8,6 +8,7 @@
#ifdef __XC__
#include <xs1.h>
#include <platform.h>
#include <xclib.h>
#include "xua_conf.h"