datasheetbank_Logo
数据手册搜索引擎和 Datasheet免费下载 PDF

AN668 查看數據表(PDF) - Silicon Laboratories

零件编号
产品描述 (功能)
比赛名单
AN668 Datasheet PDF : 10 Pages
1 2 3 4 5 6 7 8 9 10
AN668
5.1.4. myRtc0.c
The myRtc0.c file includes the second-level handlers for the RTC0 Alarm 0 and RTC0 oscillator fail interrupts.
These second-level handlers are called from the first-level handlers in gRtc0.c.
The second-level Alarm 0 handler:
Reads the RTC0 counter value.
Sets the RTC0 Alarm 0 value with a new value equal to the current counter value + 10 ms.
Increments msTicks_10, which keeps track of the 10 ms intervals.
Clears the Alarm 0 interrupt in the RTC0 module.
The second-level oscillator fail handler sits in a while(1) loop to indicate an unrecoverable error condition.
Figure 6 shows the dependencies for myRtc0.c.
myRtc.c
Blinky
gRtc.c
si32Hal
SI32_RTC_A_Type.c
SI32_RTC_A_Type.c
SI32_RTC_A_Type.c
Figure 7. myRtc0.c Dependencies
5.2. Blinky AppBuilder-Generated Files
5.2.1. gCpu.c
This file contains the SysTick handler, which increments the msTicks variable, and the
gCpu_enter_default_config() function, which is called from gModes_enter_my_default_mode() in gModes.c.
This function sets the SystemCoreClock variable to 20 MHz, since Blinky uses the Low Power Oscillator, and sets
the SysTick timer to trigger every millisecond.
Figure 8 shows the dependencies for gCpu.c.
gCpu.c
Blinky
gModes.c
si32Hal
core_cm3.h
Figure 8. gCpu.c Dependencies
6
Rev. 0.1

Share Link: 

datasheetbank.com [ Privacy Policy ] [ Request Datasheet ] [ Contact Us ]