CEC_Example
[STM32F10x_StdPeriph_Examples]

Enumerations

enum  TestStatus {
  FAILED = 0, PASSED = !FAILED, FAILED = 0, PASSED = !FAILED,
  FAILED = 0, PASSED = !FAILED, FAILED = 0, PASSED = !FAILED,
  FAILED = 0, PASSED = !FAILED, FAILED = 0, PASSED = !FAILED,
  FAILED = 0, PASSED = !FAILED, FAILED = 0, PASSED = !FAILED,
  FAILED = 0, PASSED = !FAILED, FAILED = 0, PASSED = !FAILED,
  FAILED = 0, PASSED = !FAILED, FAILED = 0, PASSED = !FAILED,
  FAILED = 0, PASSED = !FAILED, FAILED = 0, PASSED = !FAILED,
  FAILED = 0, PASSED = !FAILED, FAILED = 0, PASSED = !FAILED,
  FAILED = 0, PASSED = !FAILED, FAILED = 0, PASSED = !FAILED,
  FAILED = 0, PASSED = !FAILED, FAILED = 0, PASSED = !FAILED,
  FAILED = 0, PASSED = !FAILED, FAILED = 0, PASSED = !FAILED,
  FAILED = 0, PASSED = !FAILED, FAILED = 0, PASSED = !FAILED,
  FAILED = 0, PASSED = !FAILED, FAILED = 0, PASSED = !FAILED
}

Functions

void BusFault_Handler (void)
 This function handles Bus Fault exception.
void CEC_IRQHandler (void)
 This function handles CEC global interrupt request.
void DebugMon_Handler (void)
 This function handles Debug Monitor exception.
void EXTI9_5_IRQHandler (void)
 This function handles EXTI Lines 9 to 5 interrupts requests.
void GPIO_Configuration (void)
 Configures the different GPIO ports.
void HardFault_Handler (void)
 This function handles Hard Fault exception.
int main (void)
 Main program.
void MemManage_Handler (void)
 This function handles Memory Manage exception.
void NMI_Handler (void)
 This function handles NMI exception.
void NVIC_Configuration (void)
 Configures the different NVIC interrupts.
void PendSV_Handler (void)
 This function handles PendSVC exception.
void RCC_Configuration (void)
 Configures the different system clocks.
void SVC_Handler (void)
 This function handles SVCall exception.
void SysTick_Handler (void)
 This function handles SysTick Handler.
void UsageFault_Handler (void)
 This function handles Usage Fault exception.

Variables

uint8_t ByteNumber
uint8_t ByteNumber = 10
CEC_InitTypeDef CEC_InitStructure
uint8_t HeaderBlockValueToSend = 0
uint8_t InitiatorAddress = 0
uint8_t rcv_inc = 0
uint8_t ReceiveBuffer [10]
uint8_t ReceiveBuffer [10]
__IO uint8_t ReceivedFrame = 0
__IO uint8_t ReceivedFrame
uint8_t RecepErrorCode = 0
uint8_t send_inc = 0
uint8_t TransErrorCode = 0
volatile TestStatus TransferStatus = FAILED
uint8_t TransmitBuffer [10]
uint8_t TransmitBuffer [10]

Enumeration Type Documentation

enum TestStatus
Enumerator:
FAILED 
PASSED 
FAILED 
PASSED 
FAILED 
PASSED 
FAILED 
PASSED 
FAILED 
PASSED 
FAILED 
PASSED 
FAILED 
PASSED 
FAILED 
PASSED 
FAILED 
PASSED 
FAILED 
PASSED 
FAILED 
PASSED 
FAILED 
PASSED 
FAILED 
PASSED 
FAILED 
PASSED 
FAILED 
PASSED 
FAILED 
PASSED 
FAILED 
PASSED 
FAILED 
PASSED 
FAILED 
PASSED 
FAILED 
PASSED 
FAILED 
PASSED 
FAILED 
PASSED 
FAILED 
PASSED 
FAILED 
PASSED 
FAILED 
PASSED 
FAILED 
PASSED 

Definition at line 35 of file STM32F10x_StdPeriph_Examples/CEC/main.c.


Function Documentation

void BusFault_Handler ( void   ) 

This function handles Bus Fault exception.

Parameters:
None 
Return values:
None 

Definition at line 99 of file STM32F10x_StdPeriph_Examples/CEC/stm32f10x_it.c.

void CEC_IRQHandler ( void   ) 
void DebugMon_Handler ( void   ) 

This function handles Debug Monitor exception.

Parameters:
None 
Return values:
None 

Definition at line 134 of file STM32F10x_StdPeriph_Examples/CEC/stm32f10x_it.c.

void EXTI9_5_IRQHandler ( void   ) 

This function handles EXTI Lines 9 to 5 interrupts requests.

Parameters:
None 
Return values:
None 

Definition at line 161 of file STM32F10x_StdPeriph_Examples/CEC/stm32f10x_it.c.

void GPIO_Configuration ( void   ) 
void HardFault_Handler ( void   ) 

This function handles Hard Fault exception.

Parameters:
None 
Return values:
None 

Definition at line 73 of file STM32F10x_StdPeriph_Examples/CEC/stm32f10x_it.c.

int main ( void   ) 

Main program.

Parameters:
None 
Return values:
None 

< At this stage the microcontroller clock setting is already configured, this is done through SystemInit() function which is called from startup file (startup_stm32f10x_xx.s) before to branch to application main. To reconfigure the default setting of SystemInit() function, refer to system_stm32f10x.c file

Definition at line 61 of file STM32F10x_StdPeriph_Examples/CEC/main.c.

References Buffercmp(), ByteNumber, CEC_InitTypeDef::CEC_BitPeriodMode, CEC_BitPeriodStdMode, CEC_InitTypeDef::CEC_BitTimingMode, CEC_BitTimingStdMode, CEC_Cmd(), CEC_Init(), CEC_ITConfig(), CEC_OwnAddressConfig(), CEC_SetPrescaler(), ENABLE, GPIO_Configuration(), LED1, LED2, MY_DEVICE_ADDRESS, NVIC_Configuration(), PASSED, RCC_Configuration(), ReceiveBuffer, ReceivedFrame, STM_EVAL_LEDOn(), TransferStatus, and TransmitBuffer.

void MemManage_Handler ( void   ) 

This function handles Memory Manage exception.

Parameters:
None 
Return values:
None 

Definition at line 86 of file STM32F10x_StdPeriph_Examples/CEC/stm32f10x_it.c.

void NMI_Handler ( void   ) 

This function handles NMI exception.

Parameters:
None 
Return values:
None 

Definition at line 64 of file STM32F10x_StdPeriph_Examples/CEC/stm32f10x_it.c.

void NVIC_Configuration ( void   ) 
void PendSV_Handler ( void   ) 

This function handles PendSVC exception.

This function handles PendSV_Handler exception.

Parameters:
None 
Return values:
None 

Definition at line 143 of file STM32F10x_StdPeriph_Examples/CEC/stm32f10x_it.c.

void RCC_Configuration ( void   ) 

Configures the different system clocks.

Parameters:
None 
Return values:
None 

Definition at line 130 of file STM32F10x_StdPeriph_Examples/CEC/main.c.

References Button_KEY, ENABLE, LED1, LED2, LED3, LED4, Mode_EXTI, RCC_APB1Periph_CEC, RCC_APB1PeriphClockCmd(), STM_EVAL_LEDInit(), and STM_EVAL_PBInit().

void SVC_Handler ( void   ) 

This function handles SVCall exception.

Parameters:
None 
Return values:
None 

Definition at line 125 of file STM32F10x_StdPeriph_Examples/CEC/stm32f10x_it.c.

void SysTick_Handler ( void   ) 

This function handles SysTick Handler.

Parameters:
None 
Return values:
None 

Definition at line 152 of file STM32F10x_StdPeriph_Examples/CEC/stm32f10x_it.c.

void UsageFault_Handler ( void   ) 

This function handles Usage Fault exception.

Parameters:
None 
Return values:
None 

Definition at line 112 of file STM32F10x_StdPeriph_Examples/CEC/stm32f10x_it.c.


Variable Documentation

uint8_t ByteNumber

Definition at line 42 of file STM32F10x_StdPeriph_Examples/CEC/main.c.

Referenced by CEC_IRQHandler(), and main().

uint8_t ByteNumber = 10

Definition at line 42 of file STM32F10x_StdPeriph_Examples/CEC/main.c.

Referenced by CEC_IRQHandler(), and main().

Definition at line 40 of file STM32F10x_StdPeriph_Examples/CEC/main.c.

Referenced by HDMI_CEC_Init().

Definition at line 46 of file STM32F10x_StdPeriph_Examples/CEC/stm32f10x_it.c.

Referenced by EXTI9_5_IRQHandler().

uint8_t InitiatorAddress = 0

Definition at line 47 of file STM32F10x_StdPeriph_Examples/CEC/stm32f10x_it.c.

Referenced by CEC_IRQHandler().

uint8_t rcv_inc = 0

Definition at line 45 of file STM32F10x_StdPeriph_Examples/CEC/stm32f10x_it.c.

Referenced by CEC_IRQHandler().

uint8_t ReceiveBuffer[10]

Definition at line 40 of file STM32F10x_StdPeriph_Examples/CEC/stm32f10x_it.c.

Referenced by CEC_IRQHandler(), and main().

uint8_t ReceiveBuffer[10]

Definition at line 40 of file STM32F10x_StdPeriph_Examples/CEC/stm32f10x_it.c.

Referenced by CEC_IRQHandler(), and main().

__IO uint8_t ReceivedFrame = 0
__IO uint8_t ReceivedFrame
uint8_t RecepErrorCode = 0
uint8_t send_inc = 0

Definition at line 45 of file STM32F10x_StdPeriph_Examples/CEC/stm32f10x_it.c.

Referenced by CEC_IRQHandler().

uint8_t TransErrorCode = 0
volatile TestStatus TransferStatus = FAILED

Definition at line 43 of file STM32F10x_StdPeriph_Examples/CEC/main.c.

Referenced by main().

uint8_t TransmitBuffer[10]
Initial value:
 {0xDF, 0x12, 0xD3, 0x56, 0x97, 
                              0xA1, 0xEC, 0x7B, 0x4F, 0x22}

Definition at line 42 of file STM32F10x_StdPeriph_Examples/CEC/stm32f10x_it.c.

Referenced by CEC_IRQHandler(), and main().

uint8_t TransmitBuffer[10]

Definition at line 42 of file STM32F10x_StdPeriph_Examples/CEC/stm32f10x_it.c.

Referenced by CEC_IRQHandler(), and main().

STM32F10x Standard Peripherals Library: Footer

 

 

 

      For complete documentation on STM32(CORTEX M3) 32-bit Microcontrollers platform visit  www.st.com/STM32