
Firmware description
AN3127
Doc ID 16896 Rev 2
Project
folder: contains preconfigured projects and the source and header files of the CEC
demonstration
●
src
subfolder: contains the source files
–
main.c
: file in which the system clocks and interrupts are configured
–
stm32f10x_it.c
: file in which the CEC events (transmitter/receiver) and error
(acknowledge failure, bus error, overrun, arbitration loss) interrupts are handled.
–
cec_display.c
: displays the CEC demonstration messages on the LCD of Value
line Evaluation board, or on HyperTerminal
●
inc
subfolder: contains the header files
–
stm32f10x_it.h
: headers of the interrupt handlers
–
stm32f10x_conf.h
: configuration file
–
cec_display.h
: header file of
cec.display.c
●
EWARMv5, RVMDK, HiTOP and RIDE subfolders: contain tool-dependent
preconfigured projects and workspaces
Utilities
folder: STM32_EVAL implement an abstraction layer that interacts with the human
interface resources-buttons, LEDs, LCD and COM ports (USARTs)-available on the
STMicroelectronics Value line evaluation boards
The stm32_eval.c driver provides a common API to interact with buttons, LEDs and COM
ports, while the definitions of these hardware resources are made in the header file of the
Value line evaluation board (
stm32100b_eval.h
or
stm32100e_eval.h
).
Moreover, a common API is provided to manage the LCD (
stm32100b_eval_lcd.c
or
stm32100e_eval_lcd.c
).
Likewise, a full firmware API is provided to manage the Value line board's HDMI-CEC
(
stm32100b_eval_cec.c
or
stm32100e_eval_cec.c
). See
for a
list of the functions.
3.2 Firmware
architecture
shows the firmware architecture, the different blocks and levels are explained
below.