Bosch XDK110 Quick Start Manual page 16

Cross-domain development kit
Hide thumbs Also See for XDK110:
Table of Contents

Advertisement

!
Code 5: Hello world operating task application file - application.c
/* system header files */
#include
<stdio.h>
#include
<BCDS_Basics.h>
/* additional interface header files */
#include
"FreeRTOS.h"
#include
"timers.h"
#include
"BCDS_CmdProcessor.h"
#include
"BCDS_Assert.h"
xTaskHandle applicationTask;
/* Application to print "hello world" on serial console. */
void applicationInit(void
(void) pvParameters;
for
(;;){
printf("Hello
vTaskDelay((portTickType) 1000 / portTICK_RATE_MS);
}
}
/* This is a template function where the user can write his/her custom
application. */
void appInitSystem(void
if
(CmdProcessorHandle == NULL){
printf("Command processor handle is null
assert(false);
}
BCDS_UNUSED(param2);
/*Call the Application Init API*/
xTaskCreate(applicationInit,
print Hello
World", 256,NULL,1,&applicationTask);
}
!
XDK110
© Bosch Connected Devices and Solutions GmbH reserves all rights even in the event of industrial property rights. We reserve all rights of disposal such as
copying and passing on to third parties. BOSCH and the symbol are registered trademarks of Robert Bosch GmbH, Germany.
Note: Specifications within this document are subject to change without notice.
Workbench First Steps Guide XDK110
* pvParameters){
world\r\n");
* CmdProcessorHandle,
(const char
uint32_t
param2){
\n\r");
* const)
"Test Application to
Page ! 1 6
BCDS

Advertisement

Table of Contents
loading

Table of Contents