init
This commit is contained in:
21
lib_logging/examples/AN00239/src/config.xscope
Normal file
21
lib_logging/examples/AN00239/src/config.xscope
Normal file
@@ -0,0 +1,21 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
|
||||
<!-- ======================================================= -->
|
||||
<!-- The 'ioMode' attribute on the xSCOPEconfig -->
|
||||
<!-- element can take the following values: -->
|
||||
<!-- "none", "basic", "timed" -->
|
||||
<!-- -->
|
||||
<!-- The 'type' attribute on Probe -->
|
||||
<!-- elements can take the following values: -->
|
||||
<!-- "STARTSTOP", "CONTINUOUS", "DISCRETE", "STATEMACHINE" -->
|
||||
<!-- -->
|
||||
<!-- The 'datatype' attribute on Probe -->
|
||||
<!-- elements can take the following values: -->
|
||||
<!-- "NONE", "UINT", "INT", "FLOAT" -->
|
||||
<!-- ======================================================= -->
|
||||
|
||||
<xSCOPEconfig ioMode="basic" enabled="true">
|
||||
<!-- For example: -->
|
||||
<!-- <Probe name="Probe Name" type="CONTINUOUS" datatype="UINT" units="Value" enabled="true"/> -->
|
||||
<!-- From the target code, call: xscope_int(PROBE_NAME, value); -->
|
||||
</xSCOPEconfig>
|
||||
15
lib_logging/examples/AN00239/src/main.xc
Normal file
15
lib_logging/examples/AN00239/src/main.xc
Normal file
@@ -0,0 +1,15 @@
|
||||
// Copyright 2014-2021 XMOS LIMITED.
|
||||
// This Software is subject to the terms of the XMOS Public Licence: Version 1.
|
||||
|
||||
#include "debug_print.h"
|
||||
|
||||
void unit_function();
|
||||
|
||||
int main() {
|
||||
|
||||
debug_printf("Hello world\n");
|
||||
|
||||
unit_function();
|
||||
|
||||
return 0;
|
||||
}
|
||||
10
lib_logging/examples/AN00239/src/unit.xc
Normal file
10
lib_logging/examples/AN00239/src/unit.xc
Normal file
@@ -0,0 +1,10 @@
|
||||
// Copyright 2014-2021 XMOS LIMITED.
|
||||
// This Software is subject to the terms of the XMOS Public Licence: Version 1.
|
||||
|
||||
#define DEBUG_UNIT unit
|
||||
#include "debug_print.h"
|
||||
|
||||
void unit_function()
|
||||
{
|
||||
debug_printf("Unit print\n");
|
||||
}
|
||||
Reference in New Issue
Block a user