datasheetbank_Logo
전자부품 반도체 검색엔진( 무료 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 ]