quasar_power.h
This module provides functions to manage power features.
- Copyright
Copyright (C) 2026 SPARK Microsystems International Inc. All rights reserved.
- License
This source code is proprietary and subject to the SPARK Microsystems Software EULA found in this package in file EULA.txt.
- Author
SPARK FW Team.
Typedefs
-
typedef enum quasar_vdd_selection quasar_vdd_selection_t
Board’s VDD selection.
Enums
Functions
-
void quasar_power_up(quasar_bsp_status_t *err)
Initialize power related features.
- Parameters:
err – [out] Pointer to store error status.
-
void quasar_power_init_gpios(void)
Initialize GPIOs related to enable pins of LDO assosiated with MCU’s analog circuitry and USB and LEDs.
Note
The GPIO used for LDO enable differs depending on the board revision. Both GPIOs are initialized in this function, and once the board revision is known, the GPIO that is not used for MCU LDO enable must be deinitialized.
-
void quasar_power_set_vdd_level(quasar_vdd_selection_t quasar_vdd_selection)
Initialize the VDD select GPIO.
- Parameters:
quasar_vdd_selection – [in] Select the board’s VDD level.
-
void quasar_power_enable_ldo_led(void)
Enable the LDO that supplied LEDs with 3V3.
-
void quasar_power_disable_ldo_led(void)
Disable the LDO that supplied LEDs with 3V3.
-
void quasar_power_enable_ldo_mcu(quasar_revision_t board_revision, quasar_bsp_status_t *err)
Enable the LDO that supplied MCU’s USB and analog circuitry with 3V3.
Note
Depending on the board revision the associated GPIO is used.
- Parameters:
board_revision – [in] The board revision.
err – [out] Pointer to store error status.
-
void quasar_power_disable_ldo_mcu(quasar_revision_t board_revision, quasar_bsp_status_t *err)
Disable the LDO that supplied MCU’s USB and analog circuitry with 3V3.
Note
Depending on the board revision the associated GPIO is used.
- Parameters:
board_revision – [in] The board revision.
err – [out] Pointer to store error status.