A31L12x F/W Packages  1.4.0
ABOV Cortex-M0+ Core based MCUs Integrated Driver
A31L12x_hal_sculv.c
Go to the documentation of this file.
1 /***************************************************************************//****************************************************************************/
34 
35 /* Includes ----------------------------------------------------------------- */
36 //******************************************************************************
37 // Include
38 //******************************************************************************
39 
40 #include "A31L12x_hal_sculv.h"
41 #include "A31L12x_hal_scu.h"
42 
43 /* Public Functions --------------------------------------------------------- */
44 //******************************************************************************
45 // Function
46 //******************************************************************************
47 
48 /*-------------------------------------------------------------------------*//*-------------------------------------------------------------------------*/
69 void HAL_LVI_Init( uint32_t u32LviEnBit, uint32_t u32LviIntEnBit, uint32_t u32LviLevel )
70 {
71  // enable peripheral clock
72  HAL_SCU_Peripheral_EnableClock2( PPCLKEN2_LVICLKE, PPxCLKE_Enable );
73 
74  SCULV->LVICR = ( u32LviEnBit | u32LviIntEnBit | u32LviLevel );
75 }
76 
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 A31L12x.
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 A31L12x.