Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: NaturalTinyShell_ice libmDot-12Sept mbed-rtos mbed
Fork of ICE by
src/ConfigurationHandler/Controls/SetpointControl.cpp@1:057d8fc6cb2f, 2016-09-01 (annotated)
- Committer:
- jmarkel44
- Date:
- Thu Sep 01 19:42:11 2016 +0000
- Revision:
- 1:057d8fc6cb2f
- Parent:
- 0:65cfa4873284
- Child:
- 2:da28f21b72a1
args working
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
jmarkel44 | 0:65cfa4873284 | 1 | #include <stdio.h> |
jmarkel44 | 1:057d8fc6cb2f | 2 | #include "ConfigurationHandler.h" |
jmarkel44 | 1:057d8fc6cb2f | 3 | #include "rtos.h" |
jmarkel44 | 0:65cfa4873284 | 4 | |
jmarkel44 | 0:65cfa4873284 | 5 | /***************************************************************************** |
jmarkel44 | 0:65cfa4873284 | 6 | * Function: SetpointControl |
jmarkel44 | 0:65cfa4873284 | 7 | * Description: entry point for a Setpoint control thread |
jmarkel44 | 0:65cfa4873284 | 8 | * |
jmarkel44 | 0:65cfa4873284 | 9 | * @param (IN) args (user-defined arguments) |
jmarkel44 | 0:65cfa4873284 | 10 | * @return none |
jmarkel44 | 0:65cfa4873284 | 11 | *****************************************************************************/ |
jmarkel44 | 0:65cfa4873284 | 12 | void SetpointControl(void const *args) |
jmarkel44 | 0:65cfa4873284 | 13 | { |
jmarkel44 | 1:057d8fc6cb2f | 14 | Args_t *info = (Args_t *)args; |
jmarkel44 | 0:65cfa4873284 | 15 | while (true ) { |
jmarkel44 | 1:057d8fc6cb2f | 16 | printf("\r%s running with controlFile %s\n", __func__, info->controlFile); |
jmarkel44 | 1:057d8fc6cb2f | 17 | Thread::wait(5000); |
jmarkel44 | 0:65cfa4873284 | 18 | } |
jmarkel44 | 0:65cfa4873284 | 19 | } |