diff options
| author | Roy Ben-Shabat <Roy@Twine-s.com> | 2019-11-05 11:13:10 +0200 |
|---|---|---|
| committer | Roy Ben-Shabat <Roy@Twine-s.com> | 2019-11-05 11:13:10 +0200 |
| commit | 6f1993babfa5e15e73fbe5efb922d837527365f1 (patch) | |
| tree | e5f0ad5174ebbaf56b87fc5790897a913fb862d9 /Software/Embedded_SW/Embedded/Modules/Control/DriverWithCallbackExample.c | |
| parent | 549909f7a599986d5ca4bb3b039952e20091aab9 (diff) | |
| parent | 1c49e4bcf339abe3a0f0fc626a98f42e297db0c4 (diff) | |
| download | Tango-6f1993babfa5e15e73fbe5efb922d837527365f1.tar.gz Tango-6f1993babfa5e15e73fbe5efb922d837527365f1.zip | |
Merge branch 'master' of https://twinetfs.visualstudio.com/_git/Tango
Diffstat (limited to 'Software/Embedded_SW/Embedded/Modules/Control/DriverWithCallbackExample.c')
| -rw-r--r-- | Software/Embedded_SW/Embedded/Modules/Control/DriverWithCallbackExample.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Software/Embedded_SW/Embedded/Modules/Control/DriverWithCallbackExample.c b/Software/Embedded_SW/Embedded/Modules/Control/DriverWithCallbackExample.c index 881034e40..9dcb3affb 100644 --- a/Software/Embedded_SW/Embedded/Modules/Control/DriverWithCallbackExample.c +++ b/Software/Embedded_SW/Embedded/Modules/Control/DriverWithCallbackExample.c @@ -26,7 +26,7 @@ uint32_t DriverActionWithCallback (uint32_t deviceId, uint32_t parameter, callba ModuleCallback = callback; //start control: - uint32_t ControlId = AddControlCallback( callback, eOneMillisecond, NULL, (IfTypeNone*0x100+deviceId),deviceId, parameter ); + uint32_t ControlId = AddControlCallback(NULL, callback, eOneMillisecond, NULL, (IfTypeNone*0x100+deviceId),deviceId, parameter ); return ControlId; } @@ -38,7 +38,7 @@ uint32_t ControlCallBackFunction(uint32_t deviceId, uint32_t ReadValue) //stop this control loop RemoveControlCallback(deviceId, ControlCallBackFunction ); //possibly: start regular control (speed etc) - //uint32_t ControlId = AddControlCallback(ControlCBFunction Callback, eOneMillisecond, NULL, deviceId, Parameter ); + //uint32_t ControlId = AddControlCallback(NULL,ControlCBFunction Callback, eOneMillisecond, NULL, deviceId, Parameter ); //call the module callback ModuleCallback(deviceId,ReadValue); |
