|
Digital Power Starter Kit 3 Firmware
dsPIC33C Buck Converter Voltage Mode Control Example
|
|
28 #include "p33c_gpio.h"
51 ((
volatile uint8_t*) &ANSELA + (gpioInstance * P33C_GPIO_SFR_OFFSET));
79 volatile uint16_t retval=1;
108 ((
volatile uint8_t*) &ANSELA + (gpioInstance * P33C_GPIO_SFR_OFFSET));
134 volatile uint16_t gpioInstance,
138 volatile uint16_t retval=1;
143 ((
volatile uint8_t*) &ANSELA + (gpioInstance * P33C_GPIO_SFR_OFFSET));
172 .CNCONx.value = 0x0000,
173 .CNEN0x.value = 0x0000,
174 .CNEN1x.value = 0x0000,
175 .CNFx.value = 0x0000,
176 .CNPDx.value = 0x0000,
177 .CNPUx.value = 0x0000,
178 .CNSTATx.value = 0x0000,
179 .LATx.value = 0x0000,
180 .ODCx.value = 0x0000,
181 .PORTx.value = 0x0000,
182 .TRISx.value = 0x1111,
union P33C_GPIO_INSTANCE_s::@0 ANSELx
volatile uint16_t p33c_GpioInstance_Dispose(volatile uint16_t gpioInstance)
Resets all GPIO Instance registers to their RESET default values.
volatile uint16_t p33c_GpioInstance_ConfigWrite(volatile uint16_t gpioInstance, volatile struct P33C_GPIO_INSTANCE_s gpioConfig)
Writes a user-defined configuration to the GPIO instance registers.
volatile struct P33C_GPIO_INSTANCE_s * p33c_GpioInstance_GetHandle(volatile uint16_t gpioInstance)
Gets pointer to GPIO Instance SFR set.
volatile struct P33C_GPIO_INSTANCE_s gpioConfigClear
Default RESET configuration of one GPIO instance SFRs.
volatile struct P33C_GPIO_INSTANCE_s p33c_GpioInstance_ConfigRead(volatile uint16_t gpioInstance)
Read the current configuration from the GPIO instance registers