mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
b7b7fd3bc1
This PR adds the defined `RIOT_BOARD`, `RIOT_CPU` and `RIOT_MCU`. They each are defined as `BOARD_${BOARD}`, `CPU_${CPU}`, and `MCU_${CPU}`, resp. `BOARD_${BOARD}` is defined as the string `"${BOARD}"`, but not in upper case. Same for the other two.
33 lines
659 B
C
33 lines
659 B
C
/*
|
|
* Copyright (C) 2014 Freie Universität Berlin
|
|
*
|
|
* 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 examples
|
|
* @{
|
|
*
|
|
* @file
|
|
* @brief Hello World application
|
|
*
|
|
* @author Kaspar Schleiser <kaspar@schleiser.de>
|
|
* @author Ludwig Ortmann <ludwig.ortmann@fu-berlin.de>
|
|
*
|
|
* @}
|
|
*/
|
|
|
|
#include <stdio.h>
|
|
|
|
int main(void)
|
|
{
|
|
puts("Hello World!");
|
|
|
|
printf("You are running RIOT on a(n) %s board.\n", RIOT_BOARD);
|
|
printf("This board features a(n) %s MCU.\n", RIOT_MCU);
|
|
|
|
return 0;
|
|
}
|