53 #define BSP_TPS62730_BASE (GPIO_B_BASE) 54 #define BSP_TPS62730_ON (1 << 1) 55 #define BSP_TPS62730_STATUS (1 << 0) 58 gpio_set(
int port,
int bit)
60 REG((port |
GPIO_DATA) + (bit << 2)) = bit;
64 gpio_reset(
int port,
int bit)
81 gpio_set(BSP_TPS62730_BASE, BSP_TPS62730_ON);
87 gpio_reset(BSP_TPS62730_BASE, BSP_TPS62730_ON);
#define GPIO_DATA
Data register.
Header file with register and macro declarations for the cc2538 GPIO module.
Driver for the TPS62730 voltage regulator.
#define GPIO_SET_INPUT(PORT_BASE, PIN_MASK)
Set pins with PIN_MASK of port with PORT_BASE to input.
#define GPIO_SET_OUTPUT(PORT_BASE, PIN_MASK)
Set pins with PIN_MASK of port with PORT_BASE to output.
void tps62730_bypass(void)
Set TPS62730 to bypass, Vout = Vin, Iq < 1 uA.
void tps62730_init(void)
Initialize the TPS62730 voltage regulator in bypass mode.
void tps62730_on(void)
Set TPS62730 to on, Vout = 2.2V, Iq = 30 uA.