diff options
author | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2014-03-08 17:41:14 +0000 |
---|---|---|
committer | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2014-03-08 17:41:14 +0000 |
commit | 004c5bac0656683f315cf4baf57c2bb90e9453fb (patch) | |
tree | bb9af5fd72de61298dd9bfb68df2fac9749e58f4 /os/hal/src | |
parent | 6bc9f636b5488434375da0296a3d90285dc1cec4 (diff) | |
download | ChibiOS-004c5bac0656683f315cf4baf57c2bb90e9453fb.tar.gz ChibiOS-004c5bac0656683f315cf4baf57c2bb90e9453fb.tar.bz2 ChibiOS-004c5bac0656683f315cf4baf57c2bb90e9453fb.zip |
GPT is usable without callbacks now (trigger, counter).
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/branches/kernel_3_dev@6760 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/hal/src')
-rw-r--r-- | os/hal/src/gpt.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/os/hal/src/gpt.c b/os/hal/src/gpt.c index d654a3c4a..52bf6610f 100644 --- a/os/hal/src/gpt.c +++ b/os/hal/src/gpt.c @@ -198,6 +198,7 @@ void gptStartOneShotI(GPTDriver *gptp, gptcnt_t interval) { osalDbgCheckClassI();
osalDbgCheck(gptp != NULL);
+ osalDbgCheck(gptp->config->callback != NULL);
osalDbgAssert(gptp->state == GPT_READY,
"invalid state");
|