22 #include "bspconfig.h"
23 #if defined( BSP_STK ) || defined( BSP_WSTK )
45 #define BSP_STATUS_OK 0
46 #define BSP_STATUS_ILLEGAL_PARAM (-1)
47 #define BSP_STATUS_NOT_IMPLEMENTED (-2)
48 #define BSP_STATUS_UNSUPPORTED_MODE (-3)
49 #define BSP_STATUS_IOEXP_FAILURE (-4)
52 #define BSP_INIT_DK_SPI 0x01
53 #define BSP_INIT_DK_EBI 0x02
54 #define BSP_INIT_BCC 0x04
55 #define BSP_INIT_IOEXP 0x08
86 #if defined( BSP_DK_BRD3200 )
108 } BSP_Peripheral_Typedef;
114 #if defined( BSP_DK_BRD3201 )
139 #if defined( BSP_STK )
173 #if defined( BSP_DK )
201 #if defined( BSP_STK ) || defined( BSP_WSTK )
int BSP_McuBoard_Init(void)
Enable MCU plugin board peripherals.
uint16_t BSP_PushButtonsGet(void)
Get status of the pushbutton switches on the DK.
#define BC_PERCTRL_AUDIO_OUT
int BSP_EnergyModeSet(uint16_t energyMode)
Inform board controller about current energy mode.
float BSP_CurrentGet(void)
Request AEM (Advanced Energy Monitoring) current from board controller.
int BSP_BusControlModeSet(BSP_BusControl_TypeDef mode)
Configure Board Controller bus decode logic.
BCP Packet Structure - Board controller communication protocol version 2.
#define BC_PERCTRL_AUDIO_IN
#define BC_PERCTRL_AMBIENT
Universal synchronous/asynchronous receiver/transmitter (USART/UART) peripheral API.
int BSP_InterruptEnable(uint16_t flags)
Enable interrupts from board controller.
int BSP_InterruptFlagsSet(uint16_t flags)
Set board controller interrupt flags.
int BSP_LedsInit(void)
Initialize LED drivers.
int BSP_McuBoard_UsbVbusPowerEnable(bool enable)
Enable MCU plugin board VBUS power switch.
uint16_t BSP_RegisterRead(volatile uint16_t *addr)
Read from a board controller register.
int BSP_InterruptDisable(uint16_t flags)
Disable interrupts from board controller.
int BSP_LedsSet(uint32_t leds)
Update all LED's.
bool BSP_McuBoard_UsbVbusOcFlagGet(void)
Get state MCU plugin board VBUS overcurrent flag.
#define BC_PERCTRL_ACCEL_GSEL
void BSP_BccPinsEnable(bool enable)
Enable GPIO pins for the USART/LEUART used for board communication.
int BSP_InterruptFlagsClear(uint16_t flags)
Clear board controller interrupt flags.
int BSP_EbiExtendedAddressRange(bool enable)
Extended the EBI addressing range by enabling address lines A16-A22. On Gxxx_DK's this functions is a...
int BSP_BccInit(void)
Initialize board controller communication support (BCC) functionality.
#define BC_PERCTRL_ACCEL_SELFTEST
int BSP_LedSet(int ledNo)
Turn on a single LED.
int BSP_LedToggle(int ledNo)
Toggle a single LED.
int BSP_McuBoard_DeInit(void)
Disable MCU plugin board peripherals.
uint32_t BSP_LedsGet(void)
Get status of all LED's.
uint32_t BSP_DipSwitchGet(void)
Get status of the DIP switches on the DK.
int BSP_BccPacketSend(BCP_Packet *pkt)
Send a packet to the board controller.
uint16_t BSP_InterruptFlagsGet(void)
Get board controller interrupt flags.
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.
#define BC_PERCTRL_IRDA_SHUTDOWN
#define BC_PERCTRL_POTMETER
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...
#define BC_PERCTRL_RS232B
int BSP_RegisterWrite(volatile uint16_t *addr, uint16_t data)
Write to a board controller register.
int BSP_LedGet(int ledNo)
Get current status of a single LED.
int BSP_EbiInit(void)
Initialize the EBI interface for accessing the onboard nandflash.
#define BC_PERCTRL_RS232_SHUTDOWN
int BSP_LedClear(int ledNo)
Turn off a single LED.
int BSP_Disable(void)
Deinitialize board support package functionality. Reverse actions performed by BSP_Init(). This function is a dummy on STK's.
#define BC_PERCTRL_RS232A
BSP_BusControl_TypeDef BSP_BusControlModeGet(void)
Get current board controller bus decode logic configuration.
int BSP_DisplayControl(BSP_Display_TypeDef option)
Configure display control.
#define BC_PERCTRL_ANALOG_SE
bool BSP_BccPacketReceive(BCP_Packet *pkt)
Get a packet from the board controller.
int BSP_McuBoard_UsbStatusLedEnable(bool enable)
Set state of MCU plugin board USB status LED.
int BSP_BccDeInit(void)
Deinitialize board controller communication support (BCC) functionality. Reverse actions performed by...
#define BC_PERCTRL_ANALOG_DIFF
uint32_t BSP_IOExpGetDeviceId(void)
Get IO Expander Device id.
uint16_t BSP_JoystickGet(void)
Get status of joystick on the DK.