EasyManua.ls Logo

Bosch XDK110 - Page 16

Bosch XDK110
25 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Workbench First Steps Guide XDK110
!
Page !16
XDK110 BCDS
© 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.
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 * pvParameters){
(void) pvParameters;
for (;;){
printf("Hello world\r\n");
vTaskDelay((portTickType) 1000 / portTICK_RATE_MS);
}
}
/* This is a template function where the user can write his/her custom
application. */
void appInitSystem(void * CmdProcessorHandle, uint32_t param2){
if (CmdProcessorHandle == NULL){
printf("Command processor handle is null \n\r");
assert(false);
}
BCDS_UNUSED(param2);
/*Call the Application Init API*/
xTaskCreate(applicationInit, (const char * const) "Test Application to
print Hello World”, 256,NULL,1,&applicationTask);
}