
AN3127
Firmware description
Doc ID 16896 Rev 2
Figure 16.
Firmware architecture
●
The Value line evaluation board (STM32100B-EVAL or STM32100E-EVAL) is designed
as a complete development platform for STMicroelectronics' ARM™ Cortex®-M3 core-
based Value line microcontroller.
●
STM32F10x_StdPeriph_Driver
: STM32F10x standard peripheral library
●
User application
: Value line boards (STM32100B-EVAL or STM32100E-EVAL) CEC
demonstration
●
Display module
: It can be an LCD or Terminal programs. It is used to display the CEC
demonstration messages.
●
CEC driver
(
stm32100b_eval_cec
or
stm32100e_eval_cec
): the application may
interface CEC devices directly through the driver application layer. The driver functions
are summarized in
High-level functions
These are the functions that can simply be called by the final application to execute all
needed configurations and perform high-end functionalities (like sending and receiving
messages).
Table 4.
High-level functions
Function name
Description
HDMI_CEC_Init
Initializes the HDMI-CEC controller:
●
Enables the CEC and GPIOx clocks
●
Configures the CEC line
●
Calls the
PhysicalAddressDiscovery
function
●
Calls the
LogicalAddressAllocation
function
●
Calls the
HDMI_ReportPhysicalAddress
function
HDMI_CEC_TransmitMessage
Transmits messages (Header, opcode and operands)
HDMI_CEC_GetErrorStatus
Gets the error status register (ESR) register status
HDMI_CEC_ProcessIRQSrc
Processes all the interrupts (RBTF, RERR, TBTRF, TERR)
that are high
PhysicalAddressDiscovery
Algorithm used to discover the physical address
LogicalAddressAllocation
Allocates the device’s logical address based on the logical
address allocation algorithm
5SERAPPLICATION
!PPLICATION
LEVEL
&IRMWARE
$RIVERLEVEL
CEC?DISPLA
Y
C
$ISPLA
YMODULE,#$
(YPER4
ER
MINAL
34-&X?3TD0ERIPH?$RIVER
STMFX?CECCSTMFX?GPIOC
STMFX?USARTCETC
#%#DRIVERSTMB?EVAL?CECC
ORSTME?EVAL?CECC
(ARDWARE
34-&XX
6ALUELINEEVALUATION
($-)#%#
CONTROLLER
AIB
BOARD