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]
This commit is contained in:
Yonggang Luo
2025-10-11 09:28:52 +08:00
committed by GitHub
parent ba795c6d65
commit 5ae232b6d0
2 changed files with 3 additions and 3 deletions

View File

@@ -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