![Silicon Laboratories Si4012 Скачать руководство пользователя страница 26](http://html1.mh-extra.com/html/silicon-laboratories/si4012/si4012_programming-manual_1272046026.webp)
A N 7 4 6
26
Rev. 0.1
5.4. Empty Project Structure
An empty project structure can be found along with sample projects on the
silabs.com
website for reference.
The empty project has been created to help users starting to write their custom firmware with preconfigured project
files, common directory structure, and Silicon Labs drivers.
The project follows the convention for directory structure introduced in the sample projects. It contains driver
modules for the radio and MCU peripherals as well as a default MCU initialization procedure.
The
main
function in the empty project is as follows:
User defined init functions should be placed before the
while
loop. The
vInitializeHW()
looks as follows:
The
radio_config.h
configuration should be generated, edited then added to project in order to enable the
vRadio_Init()
function to initialize the radio chip. The
vPlf_McuInit()
shall be modified according to the hardware
used.
The additional header files should be included in the common
bsp.h
located in src/drivers directory.
The
bsp.h
file already contains included headers:
void
main
(
void
)
{
//
Initialize
the
Hardware
and
Radio
vInitializeHW
();
while
(TRUE)
{
//
Write
your
code
HERE.
}
}
void
vInitializeHW
(
void
)
{
//
Initialize
the
MCU
peripherals
vPlf_McuInit
();
//
Initialize
the
Radio
vRadio_Init
();
}
Содержание Si4012
Страница 14: ...AN746 14 Rev 0 1...
Страница 18: ...AN746 18 Rev 0 1...
Страница 29: ...AN746 Rev 0 1 29 NOTES...