diff options
| author | Yonggang Luo <[email protected]> | 2025-10-11 09:28:52 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2025-10-11 09:28:52 +0800 |
| commit | 5ae232b6d0752ab823b5d0a52ef0aa269fdb3aed (patch) | |
| tree | 5ca94ab6a3b945cc9b6694ce8daf6fd5caa1710e /libcpu | |
| parent | ba795c6d6543aca68cc2fb34ff9cf6a5e07190ad (diff) | |
bsp/w60x: fixes cppcheck: (#10781)
[cpp_check.py 80 INFO] bsp/w60x/drivers/drv_rtc.c:58:11: error: Syntax Error: AST broken, binary operator '&=' doesn't have two operands. [internalAstError]
[cpp_check.py 80 INFO] libcpu/arm/s3c24x0/rtc.c:34:12: error: Expression 'RTCCON|=RTCCON|=0x01' depends on order of evaluation of side effects [unknownEvaluationOrder]
Diffstat (limited to 'libcpu')
| -rw-r--r-- | libcpu/arm/s3c24x0/rtc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libcpu/arm/s3c24x0/rtc.c b/libcpu/arm/s3c24x0/rtc.c index 60703f9d94..2dda7b0334 100644 --- a/libcpu/arm/s3c24x0/rtc.c +++ b/libcpu/arm/s3c24x0/rtc.c @@ -31,7 +31,7 @@ void rt_hw_rtc_get(struct tm *ti) rt_uint8_t sec, min, hour, mday, wday, mon, year; /* enable access to RTC registers */ - RTCCON |= RTC_ENABLE; + RTC_ENABLE; /* read RTC registers */ do |
