test: fix stm32_rtc compilation error

After the atomic functions change, there is a compilation error of
test-stm32_rtc. Remove volatile qualifier, because it is not needed for
atomic functions - 'rtc_fired' is changed only by them.

BUG=b:172079887
BRANCH=none
TEST=make BOARD=bloonchipper test-stm32f_rtc

Signed-off-by: Dawid Niedzwiecki <dn@semihalf.com>
Change-Id: I38c48697b0ce1b639dcf767d939bb8dcf1215f79
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2512205
Reviewed-by: Tom Hughes <tomhughes@chromium.org>
This commit is contained in:
Dawid Niedzwiecki 2020-11-02 09:13:11 +01:00 committed by Commit Bot
parent 8e7bfda78e
commit ba9f1a8dd1
1 changed files with 1 additions and 1 deletions

View File

@ -6,7 +6,7 @@
#include "clock-f.h"
#include "test_util.h"
static volatile uint32_t rtc_fired;
static uint32_t rtc_fired;
static struct rtc_time_reg rtc_irq;
static const int rtc_delay_ms = 500;