Merge pull request #4312 from kaspar030/misc_fmt_compile_fixes
cpu: atmega_common, msp430: misc libc fixes for fmtcc430
commit
2cf68f30ec
@ -0,0 +1,22 @@
|
||||
/*
|
||||
* Copyright (C) 2014 INRIA
|
||||
*
|
||||
* This file is subject to the terms and conditions of the GNU Lesser
|
||||
* General Public License v2.1. See the file LICENSE in the top level
|
||||
* directory for more details.
|
||||
*/
|
||||
|
||||
#ifndef SYS_TYPES_H_
|
||||
#define SYS_TYPES_H_
|
||||
|
||||
#include "msp430_types.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif /* SYS_TYPES_H_ */
|
@ -0,0 +1,6 @@
|
||||
APPLICATION = fmt_print
|
||||
include ../Makefile.tests_common
|
||||
|
||||
USEMODULE += fmt
|
||||
|
||||
include $(RIOTBASE)/Makefile.include
|
@ -0,0 +1,31 @@
|
||||
/*
|
||||
* Copyright (C) 2015 Kaspar Schleiser <kaspar@schleiser.de>
|
||||
*
|
||||
* This file is subject to the terms and conditions of the GNU Lesser
|
||||
* General Public License v2.1. See the file LICENSE in the top level
|
||||
* directory for more details.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @ingroup tests
|
||||
* @{
|
||||
*
|
||||
* @file
|
||||
* @brief fmt print test application
|
||||
*
|
||||
* This test is supposed to check for "compilabilty" of the fmt print_* instructions.
|
||||
*
|
||||
* @author Kaspar Schleiser <kaspar@schleiser.de>
|
||||
*
|
||||
* @}
|
||||
*/
|
||||
|
||||
#include "fmt.h"
|
||||
|
||||
int main(void)
|
||||
{
|
||||
print_str("If you can read this:\n");
|
||||
print_str("Test successful.\n");
|
||||
|
||||
return 0;
|
||||
}
|
Loading…
Reference in New Issue