50 #include <drivers/gpio/adi_gpio.h> 51 #include <adi_processor.h> 52 #include <adi_callback.h> 62 #if (defined(__ADUCM302x__) || defined(__ADUCM4x50__)) 64 #define ADI_ADP5300_MODE_PIN (ADI_GPIO_PIN_0) 66 #define ADI_ADP5300_MODE_PORT (ADI_GPIO_PORT2) 69 #define ADI_ADP5300_STOP_PIN (ADI_GPIO_PIN_12) 71 #define ADI_ADP5300_STOP_PORT (ADI_GPIO_PORT0) 74 #define ADI_ADP5300_VOUTOK_PIN (ADI_GPIO_PIN_15) 76 #define ADI_ADP5300_VOUTOK_PORT (ADI_GPIO_PORT1) 78 #error ADP5300 is not ported for this processor 82 #define ADI_VOUTOK_IRQ_GROUP (ADI_GPIO_INTA_IRQ) 218 void VoutokCallback(
void * pCBParam, uint32_t Event,
void * pArg);
Definition: adi_adp5300.h:112
ADI_GPIO_RESULT adi_adp5300_SetSwitching(ADI_ADP5300_SWITCHING bState)
Set the switching state of the ADP5300.
Definition: adi_adp5300.c:91
ADI_GPIO_RESULT adi_adp5300_SetMode(ADI_ADP5300_MODE eMode)
Set the mode of the ADP5300.
Definition: adi_adp5300.c:79
Definition: adi_adp5300.h:97
ADI_ADP5300_SWITCHING
ADP5300 switching modes.
Definition: adi_adp5300.h:110
Definition: adi_adp5300.h:96
ADI_GPIO_RESULT adi_adp5300_ReadVoutokState(uint8_t *const pState)
Read VOUTOK output pin.
Definition: adi_adp5300.c:134
ADI_ADP5300_MODE
ADP5300 operational modes.
Definition: adi_adp5300.h:95
ADI_GPIO_RESULT adi_adp5300_Init()
Initialize the ADP5300.
Definition: adi_adp5300.c:49
ADI_GPIO_RESULT adi_adp5300_EnableVoutokInt(uint8_t bEnable)
Enable/disable the VOUTOK interrupt.
Definition: adi_adp5300.c:103
Definition: adi_adp5300.h:111