DatasheetQ Logo
Electronic component search and free download site. Transistors,MosFET ,Diode,Integrated circuits

AN668 データシートの表示(PDF) - Silicon Laboratories

部品番号
コンポーネント説明
メーカー
AN668 Datasheet PDF : 10 Pages
1 2 3 4 5 6 7 8 9 10
AN668
5.1. Blinky Application-Specific Files
5.1.1. main.c
The main.c file calls functions from the gModes.c and the port HAL as shown in Figure 5. This file also includes all
the main application code that sits in a while(1) loop, toggling the LED pins or reading the switches and printing
their status to the Console view.
main.c
Blinky
gModes.c
si32Hal
SI32_PBSTD_A_Type.c
Figure 5. main.c Dependencies
5.1.2. myCpu.c
This file has the application-specific implementation of mySystemInit() called by system_sim3u1xx.c in the HAL.
For Blinky, this function:
Disables the Watchdog Timer.
Enables APB to the Port Bank modules.
Sets the Serial Wire Viewer pin (PB1.3) to push-pull.
Figure 6 shows the dependencies for myCpu.c.
myCpu.c
Blinky
system_sim3u1xx.c
si32Hal
SI32_CLKCTRL_A_Type.c
SI32_WDTIMER_A_Type.c
SI32_PBSTD_A_Type.c
Figure 6. myCpu.c Dependencies
5.1.3. myPB.c
This file doesn’t include any application-specific code for the Blinky example.
Rev. 0.1
5

Share Link: 

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