init
This commit is contained in:
14
lib_logging/examples/app_debug_printf/src/main.xc
Normal file
14
lib_logging/examples/app_debug_printf/src/main.xc
Normal file
@@ -0,0 +1,14 @@
|
||||
// Copyright 2015-2021 XMOS LIMITED.
|
||||
// This Software is subject to the terms of the XMOS Public Licence: Version 1.
|
||||
#include <debug_print.h>
|
||||
|
||||
int main() {
|
||||
debug_printf("Hello World\n");
|
||||
debug_printf("An int: %d\n", -5);
|
||||
debug_printf("An unsigned int: %u\n", 5);
|
||||
debug_printf("A string: %s\n", "foo");
|
||||
debug_printf("A hexadecimal int: 0x%x\n", 0xabcd);
|
||||
debug_printf("A char: %c\n", 'X');
|
||||
|
||||
return 0;
|
||||
}
|
||||
Reference in New Issue
Block a user