#include <stdbool.h>#include <stdint.h>#include "../inc/hw_types.h"#include "../inc/hw_memmap.h"#include "../inc/hw_aux_wuc.h"#include "debug.h"Macros | |
| #define | AUX_WUC_POWER_OFF 0x00000001 |
| #define | AUX_WUC_POWER_DOWN 0x00000002 |
| #define | AUX_WUC_POWER_ACTIVE 0x00000004 |
| #define | AUX_WUC_SMPH_CLOCK (AUX_WUC_MODCLKEN0_SMPH_EN) |
| #define | AUX_WUC_AIODIO0_CLOCK (AUX_WUC_MODCLKEN0_AIODIO0_EN) |
| #define | AUX_WUC_AIODIO1_CLOCK (AUX_WUC_MODCLKEN0_AIODIO1_EN) |
| #define | AUX_WUC_TIMER_CLOCK (AUX_WUC_MODCLKEN0_TIMER_EN) |
| #define | AUX_WUC_ANAIF_CLOCK (AUX_WUC_MODCLKEN0_ANAIF_EN) |
| #define | AUX_WUC_TDCIF_CLOCK (AUX_WUC_MODCLKEN0_TDC_EN) |
| #define | AUX_WUC_OSCCTRL_CLOCK (AUX_WUC_MODCLKEN0_AUX_DDI0_OSC_EN) |
| #define | AUX_WUC_ADI_CLOCK (AUX_WUC_MODCLKEN0_AUX_ADI4_EN) |
| #define | AUX_WUC_MODCLK_MASK 0x000000FF |
| #define | AUX_WUC_TDC_CLOCK 0x00000100 |
| #define | AUX_WUC_ADC_CLOCK 0x00000200 |
| #define | AUX_WUC_REF_CLOCK 0x00000400 |
| #define | AUX_WUC_CLOCK_OFF 0x00000000 |
| #define | AUX_WUC_CLOCK_UNSTABLE 0x00000001 |
| #define | AUX_WUC_CLOCK_READY 0x00000011 |
| #define | AUX_WUC_CLOCK_HIFREQ 0x00000000 |
| #define | AUX_WUC_CLOCK_LOFREQ 0x00000001 |
Functions | |
| void | AUXWUCClockEnable (uint32_t ui32Clocks) |
| Enable clocks for peripherals in the AUX domain. More... | |
| void | AUXWUCClockDisable (uint32_t ui32Clocks) |
| Disable clocks for peripherals in the AUX domain. More... | |
| uint32_t | AUXWUCClockStatus (uint32_t ui32Clocks) |
| Get the status of a clock. More... | |
| static void | AUXWUCClockFreqReq (uint32_t ui32ClockFreq) |
| Request a high or low frequency clock source. More... | |
| void | AUXWUCPowerCtrl (uint32_t ui32PowerMode) |
| Control the power to the AUX domain. More... | |
| static void | AUXWUCFreezeEnable (void) |
| Freeze the AUX IOs. More... | |
| static void | AUXWUCFreezeDisable (void) |
| Unfreeze the AUX IOs. More... | |