ConOpSys V2970  P004.07
ANVILEX control operating system
Public Member Functions | Private Attributes | List of all members
TTarget_P013_35_V1_3_CPU Class Reference

#include <P013_35_V1_3_CPU.h>

Inheritance diagram for TTarget_P013_35_V1_3_CPU:
Inheritance graph
Collaboration diagram for TTarget_P013_35_V1_3_CPU:
Collaboration graph

Public Member Functions

VOID Init ()
 Initialisation method. More...
 
VOID Done ()
 Finalisation method. More...
 
VOID System_Core_Clock_Update ()
 
U32 Get_SYSCLK_Frequency ()
 
U32 Get_HCLK_Frequency ()
 Returns the HCLK frequency
More...
 
U32 Get_PCLK1_Frequency ()
 Returns the PCLK1 frequency
More...
 
U32 Get_PCLK2_Frequency ()
 Returns the PCLK2 frequency
More...
 
U32 Get_TCLK1_Frequency ()
 Returns the TCLK1 frequency
More...
 
U32 Get_TCLK2_Frequency ()
 Returns the TCLK2 frequency
More...
 
U32 Get_IWDG_Frequency ()
 Returns the IWDG frequency
More...
 
virtual VOID FPGA_Configure ()
 
virtual U32 Get_CPU_Reset_Source ()
 
virtual U32 Get_CPU_Device_ID ()
 
virtual U32 Get_CPU_Revision ()
 
virtual U32 Get_CPU_Unique_Device_ID (U32 u32_Index)
 
virtual U32 Get_CPU_Flash_Size ()
 
virtual U32 Get_CPU_RAM_Size ()
 
virtual U32 Get_CPU_Stack_Base ()
 
virtual U32 Get_CPU_Stack_Size ()
 
virtual U32 Get_CPU_Heap_Base ()
 
virtual U32 Get_CPU_Heap_Size ()
 
virtual VOID FPGA_Interrupt_Enable (U32 u32_TickPriority)
 Enable interrupt method. More...
 
virtual VOID FPGA_Interrupt_Disable ()
 Disable interrupt method. More...
 
virtual VOID FPGA_Write_U16 (U16 u16_Address, U16 u16_Value)
 Write 16 bit data into FPGA register. More...
 
virtual VOID FPGA_Read_U16 (U16 u16_Address, U16 *u16_Value)
 Read 16 bit data from FPGA register. More...
 

Private Attributes

U32 u32_SYSCLK
 
U32 u32_HCLK
 
U32 u32_PCLK1
 
U32 u32_PCLK2
 
U32 u32_TCLK1
 
U32 u32_TCLK2
 
U32 u32_IWDG
 
U32 u32_Error_Flag
 

Member Function Documentation

◆ Done()

VOID TTarget_P013_35_V1_3_CPU::Done ( )

Finalisation method.

References FPGA_Interrupt_Disable().

Here is the call graph for this function:

◆ FPGA_Configure()

VOID TTarget_P013_35_V1_3_CPU::FPGA_Configure ( )
virtual

References TSystem_Timer_Base::Delay_ms(), and object_System_Timer.

Here is the call graph for this function:

◆ FPGA_Interrupt_Disable()

VOID TTarget_P013_35_V1_3_CPU::FPGA_Interrupt_Disable ( )
virtual

Disable interrupt method.

Referenced by Done().

Here is the caller graph for this function:

◆ FPGA_Interrupt_Enable()

VOID TTarget_P013_35_V1_3_CPU::FPGA_Interrupt_Enable ( U32  u32_TickPriority)
virtual

Enable interrupt method.

◆ FPGA_Read_U16()

VOID TTarget_P013_35_V1_3_CPU::FPGA_Read_U16 ( U16  u16_Address,
U16 u16_Value 
)
virtual

Read 16 bit data from FPGA register.

◆ FPGA_Write_U16()

VOID TTarget_P013_35_V1_3_CPU::FPGA_Write_U16 ( U16  u16_Address,
U16  u16_Value 
)
virtual

Write 16 bit data into FPGA register.

◆ Get_CPU_Device_ID()

U32 TTarget_P013_35_V1_3_CPU::Get_CPU_Device_ID ( )
virtual

◆ Get_CPU_Flash_Size()

U32 TTarget_P013_35_V1_3_CPU::Get_CPU_Flash_Size ( )
virtual

◆ Get_CPU_Heap_Base()

U32 TTarget_P013_35_V1_3_CPU::Get_CPU_Heap_Base ( )
virtual

◆ Get_CPU_Heap_Size()

U32 TTarget_P013_35_V1_3_CPU::Get_CPU_Heap_Size ( )
virtual

◆ Get_CPU_RAM_Size()

U32 TTarget_P013_35_V1_3_CPU::Get_CPU_RAM_Size ( )
virtual

◆ Get_CPU_Reset_Source()

U32 TTarget_P013_35_V1_3_CPU::Get_CPU_Reset_Source ( )
virtual

◆ Get_CPU_Revision()

U32 TTarget_P013_35_V1_3_CPU::Get_CPU_Revision ( )
virtual

◆ Get_CPU_Stack_Base()

U32 TTarget_P013_35_V1_3_CPU::Get_CPU_Stack_Base ( )
virtual

◆ Get_CPU_Stack_Size()

U32 TTarget_P013_35_V1_3_CPU::Get_CPU_Stack_Size ( )
virtual

◆ Get_CPU_Unique_Device_ID()

U32 TTarget_P013_35_V1_3_CPU::Get_CPU_Unique_Device_ID ( U32  u32_Index)
virtual

◆ Get_HCLK_Frequency()

U32 TTarget_P013_35_V1_3_CPU::Get_HCLK_Frequency ( )

Returns the HCLK frequency

Note
Each time HCLK changes, this function must be called to update the right HCLK value. Otherwise, any configuration based on this function will be incorrect.
The SystemCoreClock CMSIS variable is used to store System Clock Frequency and updated within this function
Return values
HCLKfrequency

◆ Get_IWDG_Frequency()

U32 TTarget_P013_35_V1_3_CPU::Get_IWDG_Frequency ( )

Returns the IWDG frequency

Return values
IWDGfrequency

◆ Get_PCLK1_Frequency()

U32 TTarget_P013_35_V1_3_CPU::Get_PCLK1_Frequency ( )

Returns the PCLK1 frequency

Note
Each time PCLK1 changes, this function must be called to update the right PCLK1 value. Otherwise, any configuration based on this function will be incorrect.
Return values
PCLK1frequency

◆ Get_PCLK2_Frequency()

U32 TTarget_P013_35_V1_3_CPU::Get_PCLK2_Frequency ( )

Returns the PCLK2 frequency

Note
Each time PCLK2 changes, this function must be called to update the right PCLK2 value. Otherwise, any configuration based on this function will be incorrect.
Return values
PCLK2frequency

◆ Get_SYSCLK_Frequency()

U32 TTarget_P013_35_V1_3_CPU::Get_SYSCLK_Frequency ( )

◆ Get_TCLK1_Frequency()

U32 TTarget_P013_35_V1_3_CPU::Get_TCLK1_Frequency ( )

Returns the TCLK1 frequency

Note
Each time PCLK1 changes, this function must be called to update the right TCLK1 value. Otherwise, any configuration based on this function will be incorrect.
Return values
TCLK1frequency

◆ Get_TCLK2_Frequency()

U32 TTarget_P013_35_V1_3_CPU::Get_TCLK2_Frequency ( )

Returns the TCLK2 frequency

Note
Each time PCLK2 changes, this function must be called to update the right TCLK2 value. Otherwise, any configuration based on this function will be incorrect.
Return values
TCLK2frequency

◆ Init()

VOID TTarget_P013_35_V1_3_CPU::Init ( )

Initialisation method.

References FPGA_BASE, System_Core_Clock_Update(), and u32_Error_Flag.

Here is the call graph for this function:

◆ System_Core_Clock_Update()

VOID TTarget_P013_35_V1_3_CPU::System_Core_Clock_Update ( )

Referenced by Init().

Here is the caller graph for this function:

Member Data Documentation

◆ u32_Error_Flag

U32 TTarget_P013_35_V1_3_CPU::u32_Error_Flag
private

Referenced by Init().

◆ u32_HCLK

U32 TTarget_P013_35_V1_3_CPU::u32_HCLK
private

◆ u32_IWDG

U32 TTarget_P013_35_V1_3_CPU::u32_IWDG
private

◆ u32_PCLK1

U32 TTarget_P013_35_V1_3_CPU::u32_PCLK1
private

◆ u32_PCLK2

U32 TTarget_P013_35_V1_3_CPU::u32_PCLK2
private

◆ u32_SYSCLK

U32 TTarget_P013_35_V1_3_CPU::u32_SYSCLK
private

◆ u32_TCLK1

U32 TTarget_P013_35_V1_3_CPU::u32_TCLK1
private

◆ u32_TCLK2

U32 TTarget_P013_35_V1_3_CPU::u32_TCLK2
private

The documentation for this class was generated from the following files: