21 #if defined( BSP_STK_USE_EBI )
24 #if defined(BSP_IO_EXPANDER)
28 #if defined( BSP_STK )
52 #if defined(BSP_IO_EXPANDER)
70 #if defined( BSP_STK_USE_EBI )
163 #if defined( BSP_STK_USE_EBI )
179 #if defined(BSP_IO_EXPANDER)
180 return ioexpGetDeviceId();
197 #if defined(BSP_IO_EXPANDER)
206 #if defined(BSP_IO_EXPANDER)
209 status = ioexpEnable();
238 #if defined(BSP_IO_EXPANDER)
246 status = ioexpWriteReg(BSP_IOEXP_REG_LED_CTRL,
247 BSP_IOEXP_REG_LED_CTRL_DIRECT);
251 status = ioexpWriteReg(BSP_IOEXP_REG_SENSOR_CTRL, 1);
256 status = ioexpWriteReg(BSP_IOEXP_REG_VCOM_CTRL, 0);
259 status = ioexpWriteReg(BSP_IOEXP_REG_DISP_CTRL,
260 BSP_IOEXP_REG_DISP_CTRL_ENABLE
261 | BSP_IOEXP_REG_DISP_CTRL_AUTO_EXTCOMIN);
267 status = ioexpWriteReg(BSP_IOEXP_REG_DISP_CTRL, 0);
270 status = ioexpWriteReg(BSP_IOEXP_REG_VCOM_CTRL, 1);
280 status = ioexpWriteReg(BSP_IOEXP_REG_LED_CTRL, 0);
284 status = ioexpWriteReg(BSP_IOEXP_REG_SENSOR_CTRL, 0);
288 status = ioexpWriteReg(BSP_IOEXP_REG_DISP_CTRL, 0);
292 status = ioexpWriteReg(BSP_IOEXP_REG_VCOM_CTRL, 0);
330 pcurrent = (
float *)pkt.
data;
362 pvoltage = (
float *)pkt.
data;
Clock management unit (CMU) API.
Board support package API definitions.
Board support package API implementation for STK's.
float BSP_CurrentGet(void)
Request AEM (Advanced Energy Monitoring) current from board controller.
BCP Packet Structure - Board controller communication protocol version 2.
#define BSP_BCP_VOLTAGE_REQ
#define BSP_BCP_CURRENT_REQ
CMSIS Cortex-M Peripheral Access Layer for Silicon Laboratories microcontroller devices.
#define BSP_BCP_CURRENT_REPLY
External Bus Iterface (EBI) peripheral API.
void GPIO_PinModeSet(GPIO_Port_TypeDef port, unsigned int pin, GPIO_Mode_TypeDef mode, unsigned int out)
Set the mode for a GPIO pin.
#define BSP_STATUS_NOT_IMPLEMENTED
General Purpose IO (GPIO) peripheral API.
int BSP_BccInit(void)
Initialize board controller communication support (BCC) functionality.
void EBI_Init(const EBI_Init_TypeDef *ebiInit)
Configure and enable External Bus Interface.
void CMU_ClockEnable(CMU_Clock_TypeDef clock, bool enable)
Enable/disable a clock.
uint8_t data[BSP_BCP_PACKET_SIZE]
#define BSP_BCP_VOLTAGE_REPLY
#define EBI_NANDCTRL_BANKSEL_BANK0
int BSP_BccPacketSend(BCP_Packet *pkt)
Send a packet to the board controller.
int BSP_Init(uint32_t flags)
Initialize board support package functionality.
float BSP_VoltageGet(void)
Request AEM (Advanced Energy Monitoring) voltage from board controller.
int BSP_EbiDeInit(void)
Deinitialize the EBI interface for accessing the onboard nandflash.
int BSP_PeripheralAccess(BSP_Peripheral_TypeDef perf, bool enable)
DK Peripheral Access Control Enable or disable access to on-board peripherals through switches and SP...
int BSP_EbiInit(void)
Initialize the EBI interface for accessing the onboard nandflash.
int BSP_Disable(void)
Deinitialize board support package functionality. Reverse actions performed by BSP_Init(). This function is a dummy on STK's.
bool BSP_BccPacketReceive(BCP_Packet *pkt)
Get a packet from the board controller.
int BSP_BccDeInit(void)
Deinitialize board controller communication support (BCC) functionality. Reverse actions performed by...
uint32_t BSP_IOExpGetDeviceId(void)
Get IO Expander Device id.