A31G12x F/W Packages  2.5.0
ABOV Cortex-M0+ Core based MCUs Integrated Driver
A31G12x_hal_sculv.c
Go to the documentation of this file.
1 /***************************************************************************//****************************************************************************/
34 
35 /* Includes ----------------------------------------------------------------- */
36 //******************************************************************************
37 // Include
38 //******************************************************************************
39 
40 #include "A31G12x_hal_sculv.h"
41 #include "A31G12x_hal_scu.h"
42 
43 /* Public Functions --------------------------------------------------------- */
44 //******************************************************************************
45 // Function
46 //******************************************************************************
47 
48 /*-------------------------------------------------------------------------*//*-------------------------------------------------------------------------*/
73 void HAL_LVI_Init( uint32_t u32LviEnBit, uint32_t u32LviIntEnBit, uint32_t u32LviLevel )
74 {
75  // enable peripheral clock
76  HAL_SCU_Peripheral_EnableClock2( PPCLKEN2_LVICLKE, PPxCLKE_Enable );
77 
78  SCULV->LVICR = ( u32LviEnBit | u32LviIntEnBit | u32LviLevel );
79 }
80 
void HAL_SCU_Peripheral_EnableClock2(uint32_t u32PeriClk2, uint32_t u32Ind)
Set Each Peripheral Clock.
Contains all macro definitions and function prototypes support for sculv firmware library on A31G12x.
void HAL_LVI_Init(uint32_t u32LviEnBit, uint32_t u32LviIntEnBit, uint32_t u32LviLevel)
Set LVI Block Enable/Disable and Voltage Level.
Contains all macro definitions and function prototypes support for scu firmware library on A31G12x.