diff options
author | barthess <barthess@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2012-09-20 17:22:23 +0000 |
---|---|---|
committer | barthess <barthess@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2012-09-20 17:22:23 +0000 |
commit | 406ee2993e054209845889ced5e36ab17b423bea (patch) | |
tree | 11e7686bfa300578c01b0fd608e56204f539497b /os | |
parent | 54cde6b85446a97d4e980109483b23a758324a8c (diff) | |
download | ChibiOS-406ee2993e054209845889ced5e36ab17b423bea.tar.gz ChibiOS-406ee2993e054209845889ced5e36ab17b423bea.tar.bz2 ChibiOS-406ee2993e054209845889ced5e36ab17b423bea.zip |
RTC. Added chDbgCheck() in rtcGetTimeFat().
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@4702 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os')
-rw-r--r-- | os/hal/src/rtc.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/os/hal/src/rtc.c b/os/hal/src/rtc.c index 10f09409a..daf4f4102 100644 --- a/os/hal/src/rtc.c +++ b/os/hal/src/rtc.c @@ -175,7 +175,9 @@ void rtcSetCallback(RTCDriver *rtcp, rtccb_t callback) { *
* @api
*/
-uint32_t rtcGetTimeFat(RTCDriver *rtcp) {
+uint32_t rtcGetTimeFat(RTCDriver *rtcp) { +
+ chDbgCheck((rtcp != NULL), "rtcSetTime");
return rtc_lld_get_time_fat(rtcp);
}
|