22 #include "bspconfig.h"
23 #if defined( BSP_STK ) || defined( BSP_WSTK )
40 #define BSP_STATUS_OK 0
41 #define BSP_STATUS_ILLEGAL_PARAM (-1)
42 #define BSP_STATUS_NOT_IMPLEMENTED (-2)
43 #define BSP_STATUS_UNSUPPORTED_MODE (-3)
46 #define BSP_INIT_DK_SPI 0x01
47 #define BSP_INIT_DK_EBI 0x02
48 #define BSP_INIT_BCC 0x04
79 #if defined( BSP_DK_BRD3200 )
101 } BSP_Peripheral_Typedef;
103 } BSP_Peripheral_TypeDef;
107 #if defined( BSP_DK_BRD3201 )
126 } BSP_Peripheral_TypeDef;
138 int BSP_Disable (
void );
139 int BSP_Init ( uint32_t flags );
140 int BSP_LedClear (
int ledNo );
141 int BSP_LedGet (
int ledNo );
142 int BSP_LedSet (
int ledNo );
143 uint32_t BSP_LedsGet (
void );
144 int BSP_LedsInit (
void );
145 int BSP_LedsSet ( uint32_t leds );
146 int BSP_LedToggle (
int ledNo );
150 #if defined( BSP_DK )
157 uint32_t BSP_DipSwitchGet (
void );
159 int BSP_EbiExtendedAddressRange (
bool enable );
160 int BSP_EnergyModeSet ( uint16_t energyMode );
161 int BSP_InterruptDisable ( uint16_t flags );
162 int BSP_InterruptEnable ( uint16_t flags );
163 int BSP_InterruptFlagsClear ( uint16_t flags );
164 int BSP_InterruptFlagsSet ( uint16_t flags );
165 uint16_t BSP_InterruptFlagsGet (
void );
166 uint16_t BSP_JoystickGet (
void );
172 int BSP_PeripheralAccess ( BSP_Peripheral_TypeDef perf,
bool enable );
173 uint16_t BSP_PushButtonsGet (
void );
174 uint16_t BSP_RegisterRead (
volatile uint16_t *addr );
175 int BSP_RegisterWrite (
volatile uint16_t *addr, uint16_t data );
179 #if defined( BSP_STK ) || defined( BSP_WSTK )
int BSP_McuBoard_Init(void)
Enable MCU plugin board peripherals.
#define BC_PERCTRL_AUDIO_OUT
float BSP_CurrentGet(void)
Request AEM (Advanced Energy Monitoring) current from board controller.
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_McuBoard_UsbVbusPowerEnable(bool enable)
Enable MCU plugin board VBUS power switch.
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_BccInit(void)
Initialize board controller communication support (BCC) functionality.
#define BC_PERCTRL_ACCEL_SELFTEST
int BSP_McuBoard_DeInit(void)
Disable MCU plugin board peripherals.
int BSP_BccPacketSend(BCP_Packet *pkt)
Send a packet to the board controller.
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
#define BC_PERCTRL_RS232B
int BSP_EbiInit(void)
Initialize the EBI interface for accessing the onboard nandflash.
#define BC_PERCTRL_RS232_SHUTDOWN
#define BC_PERCTRL_RS232A
#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