aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorThomas Otto2010-05-12 16:26:01 +0200
committerThomas Otto2010-05-12 16:26:01 +0200
commit898c118e1e4b3b9237e85db305bb66b45c935d54 (patch)
tree9f6fc0fc526de973396a7939040234687154b01d /lib
parent3dfeb30b41a1a18af1decdb938799a394129f1cc (diff)
Fix of rtc_set_counter_val(). supplied by Jim <lordjames@y7mail.com>
Diffstat (limited to 'lib')
-rw-r--r--lib/rtc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/rtc.c b/lib/rtc.c
index d3ba25c..604177f 100644
--- a/lib/rtc.c
+++ b/lib/rtc.c
@@ -157,8 +157,8 @@ u32 rtc_get_alarm_val(void)
void rtc_set_counter_val(u32 counter_val)
{
rtc_enter_config_mode();
- RTC_PRLH = (counter_val & 0xffff0000) >> 16; /* CNT[31:16] */
- RTC_PRLL = counter_val & 0x0000ffff; /* CNT[15:0] */
+ RTC_CNTH = (counter_val & 0xffff0000) >> 16; /* CNT[31:16] */
+ RTC_CNTL = counter_val & 0x0000ffff; /* CNT[15:0] */
rtc_exit_config_mode();
}