Initialization and Configuration functions.
More...
Initialization and Configuration functions.
◆ hal_bod2_enable()
enable bod2
- Parameters
-
[in] | p_bod | Pointer to an BOD handle which contains the configuration information for the specified BOD module. |
[in] | enable | bod2 enable flag. the value can be HAL_BOD2_ENABLE or HAL_BOD2_DISABLE |
- Return values
-
◆ hal_bod2_set_level()
Set BOD2 control level.
- Parameters
-
[in] | p_bod | Pointer to an BOD handle which contains the configuration information for the specified BOD module. |
[in] | level | the level of bod2 control.the value range between 0x0 ~ 0xF |
- Return values
-
◆ hal_bod_deinit()
De-initialize the BOD peripheral.
- Parameters
-
[in] | p_bod | Pointer to an BOD handle which contains the configuration information for the specified BOD module. |
- Return values
-
◆ hal_bod_enable()
enable bod
- Parameters
-
[in] | p_bod | Pointer to an BOD handle which contains the configuration information for the specified BOD module. |
[in] | enable | bod enable flag. the value can be HAL_BOD_ENABLE or HAL_BOD_DISABLE |
- Return values
-
◆ hal_bod_fedge_callback()
BOD fall edge callback.
- Note
- This function should not be modified. When the callback is needed, the hal_bod_fedge_callback can be implemented in the user file.
- Parameters
-
[in] | p_bod | Pointer to an BOD handle which contains the configuration information for the specified BOD module. |
◆ hal_bod_fedge_irq_handler()
Handle BOD fall edge interrupt request.
- Parameters
-
[in] | p_bod | Pointer to an BOD handle which contains the configuration information for the specified BOD module. |
◆ hal_bod_init()
Initialize the BOD according to the specified parameters in the bod_init_t and initialize the associated handle.
- Parameters
-
[in] | p_bod | Pointer to an BOD handle which contains the configuration information for the specified BOD module. |
- Return values
-
◆ hal_bod_msp_deinit()
De-initialize the BOD MSP.
- Note
- This function should not be modified. When the callback is needed, the hal_bod_msp_deinit could be implemented in the user file
- Parameters
-
[in] | p_bod | Pointer to an BOD handle which contains the configuration information for the specified BOD module. |
◆ hal_bod_msp_init()
Initialize the BOD MSP.
- Note
- This function should not be modified. When the callback is needed, the hal_bod_msp_init could be implemented in the user file
- Parameters
-
[in] | p_bod | Pointer to an BOD handle which contains the configuration information for the specified BOD module. |
◆ hal_bod_static_mode_enable()
enable/disable static mode
- Parameters
-
[in] | p_bod | Pointer to an BOD handle which contains the configuration information for the specified BOD module. |
[in] | enable | static enable flag. the value can be HAL_BOD_STATIC_ENABLE or HAL_BOD_STATIC_DISABLE |
- Return values
-