|106137ff64||9 years ago|
|Makefile||9 years ago|
|README.md||10 years ago|
|main.c||9 years ago|
This is a basic example how to use RIOT in your embedded application.
It prints out the famous text
This example should foremost give you an overview how to use the Makefile system:
First you must give your application a name, which is commonly the same as the name of the directory it resides in. Then you can define a default BOARD for which the application was written. By using e.g.
make BOARD=msba2you can override the default board. With
make buildtestthe application gets compiled for all supported boards.
RIOTBASEcontains an absolute or relative path to the directory where you have checked out RIOT. If your code resides in a subdirectory of RIOT, then you can use
$(CURDIR)as it's done in here.
QUIET, which is either
0, defines whether to print verbose compile information, or hide them, respectively.
The last line of your Makefile must be
The code itself may look like your usual C beginners hello-world example.