BSP430
20141115
Board Support Package for MSP430 microcontrollers
|
Platform-specific include for MSP-TRXEB More...
#include <bsp430/platform.h>
Go to the source code of this file.
Platform-specific include for MSP-TRXEB
The TrxEB is a transceiver evaluation board for TI RF modules. It is not easy to locate, but can be purchased with certain RF evaluation models, and is documented in SWRU294.
The following platform-specific features are supported:
vBSP430platformSpinForJumper_ni is not implemented on this platform.
BSP430_PERIPH_EXPOSED_CLOCKS Clocks are made available at dedicated labelled test points above the LCD.
#define BSP430_PLATFORM_TRXEB 1 |
Unconditionally define this, so as to produce errors if there is a conflict in definition.
#define BSP430_PLATFORM_TRXEB_ACCEL_CSn_PORT_BIT BIT7 |
Port bit on BSP430_PLATFORM_TRXEB_ACCEL_CSn_PORT_PERIPH_HANDLE for accelerometer CSn
#define BSP430_PLATFORM_TRXEB_ACCEL_CSn_PORT_PERIPH_HANDLE BSP430_PERIPH_PORT8 |
BSP430 peripheral handle for port on which accelerometer chip-select (inverted) is placed.
#define BSP430_PLATFORM_TRXEB_ACCEL_IRQ_PORT_BIT BIT0 |
Port bit on BSP430_PLATFORM_TRXEB_ACCEL_IRQ_PORT_PERIPH_HANDLE for accelerometer IRQ
#define BSP430_PLATFORM_TRXEB_ACCEL_IRQ_PORT_PERIPH_HANDLE BSP430_PERIPH_PORT2 |
BSP430 peripheral handle for port on which accelerometer power is placed.
#define BSP430_PLATFORM_TRXEB_ACCEL_PWR_PORT_BIT BIT0 |
Port bit on BSP430_PLATFORM_TRXEB_ACCEL_PWR_PORT_PERIPH_HANDLE for accelerometer power
#define BSP430_PLATFORM_TRXEB_ACCEL_PWR_PORT_PERIPH_HANDLE BSP430_PERIPH_PORT6 |
BSP430 peripheral handle for port on which accelerometer power is placed.
#define BSP430_PLATFORM_TRXEB_ALS_OUT_INCH ADC12INCH_2 |
ADC12 channel for ALS output
#define BSP430_PLATFORM_TRXEB_ALS_OUT_PORT_BIT BIT2 |
Port bit on BSP430_PLATFORM_TRXEB_ALS_PORT_PERIPH_HANDLE for ALS output
#define BSP430_PLATFORM_TRXEB_ALS_PORT_PERIPH_HANDLE BSP430_PERIPH_PORT6 |
BSP430 port HPL reference on which ambient light sensor is placed.
#define BSP430_PLATFORM_TRXEB_ALS_PWR_PORT_BIT BIT1 |
Port bit on BSP430_PLATFORM_TRXEB_ALS_PORT_PERIPH_HANDLE for ALS power
#define BSP430_PLATFORM_TRXEB_IO_SPI0_PERIPH_HANDLE BSP430_PERIPH_USCI5_B2 |
BSP430 port peripheral handle for IO_SPI0.
IO_SPI0 on USCI_B2 services the LCD and the serial flash.
#define BSP430_PLATFORM_TRXEB_IO_SPI1_PERIPH_HANDLE BSP430_PERIPH_USCI5_A2 |
BSP430 port peripheral handle for IO_SPI1.
IO_SPI1 on USCI_A2 services the accelerometer.
#define BSP430_PLATFORM_TRXEB_LCD_A0_PORT_BIT BIT7 |
Port bit on BSP430_PLATFORM_TRXEB_LCD_A0_PORT_PERIPH_HANDLE for LCD A0
#define BSP430_PLATFORM_TRXEB_LCD_A0_PORT_PERIPH_HANDLE BSP430_PERIPH_PORT9 |
BSP430 peripheral handle for port to which LCD A0 (CMD=0, DATA=1) is connected.
#define BSP430_PLATFORM_TRXEB_LCD_COLUMNS 128 |
Width, in pixel columns, of the DOGM128E-6 display
#define BSP430_PLATFORM_TRXEB_LCD_CSn_PORT_BIT BIT6 |
Port bit on BSP430_PLATFORM_TRXEB_LCD_CSn_PORT_PERIPH_HANDLE for LCD CSn
#define BSP430_PLATFORM_TRXEB_LCD_CSn_PORT_PERIPH_HANDLE BSP430_PERIPH_PORT9 |
BSP430 peripheral handle for port to which LCD chip-select (inverted) is connected.
#define BSP430_PLATFORM_TRXEB_LCD_PAGES 8 |
Height, in pages, of the DOGM128E-6 display
#define BSP430_PLATFORM_TRXEB_LCD_PWR_PORT_BIT BIT7 |
Port bit on BSP430_PLATFORM_TRXEB_LCD_PWR_PORT_PERIPH_HANDLE for LCD power
#define BSP430_PLATFORM_TRXEB_LCD_PWR_PORT_PERIPH_HANDLE BSP430_PERIPH_PORT7 |
BSP430 peripheral handle for port to which LCD power is connected.
#define BSP430_PLATFORM_TRXEB_LCD_ROWS_PER_PAGE 8 |
Height, in pixel rows, of each page of the DOGM128E-6 display
#define BSP430_PLATFORM_TRXEB_LCD_RSTn_PORT_BIT BIT3 |
Port bit on BSP430_PLATFORM_TRXEB_LCD_RSTn_PORT_PERIPH_HANDLE for LCD RSTn
#define BSP430_PLATFORM_TRXEB_LCD_RSTn_PORT_PERIPH_HANDLE BSP430_PERIPH_PORT7 |
BSP430 peripheral handle for port to which LCD reset (inverted) is connected.
#define BSP430_PLATFORM_TRXEB_LCD_SPI_PERIPH_HANDLE BSP430_PLATFORM_TRXEB_IO_SPI0_PERIPH_HANDLE |
Peripheral handle for SPI access to TrxEB LCD
#define configBSP430_PLATFORM_M25P 0 |
Enable HPL support for on-board SPI flash
The TrxEB has a M25PE20 2 Mib (256 kiB) serial flash from Micron on board. It receives power through P7.6, and has RESETn on P7.2. Interface to it uses IO_SPI0. Defining this constant to a true value enables the configuration of port 7 as well as provides constants for applications to use the flash.
#define configBSP430_PLATFORM_TRXEB_ACCEL 0 |
Enable HPL support for on-board accelerometer
The TrxEB has a CMA3000-D01 digital accelerometer from VTI on board. It receives power through P6.0, and supplies an interrupt on P2.0. Interface to it uses IO_SPI0. Defining this constant to a true value enables the configuration of port 6 as well as provides constants for applications to use the sensor.
#define configBSP430_PLATFORM_TRXEB_ACCEL_IRQ 0 |
Enable HAL support for on-board accelerometer interrupt.
#define configBSP430_PLATFORM_TRXEB_ALS 0 |
Enable HPL support for on-board ambient light sensor
The TrxEB has an SFH 5711 ambient light sensor from Osram on board, positioned to the right and below the LCD. It receives power through P6.1, and provides an analog logarithmic measure of ambient light over P6.2 which is A2 for the on-board ADC. Defining this constant to a true value enables the configuration of port 6 as well as provides constants for applications to use the sensor.
#define configBSP430_PLATFORM_TRXEB_IO_SPI0 ((configBSP430_PLATFORM_M25P - 0) || (configBSP430_PLATFORM_TRXEB_LCD - 0)) |
Enable use of IO_SPI0 peripheral.
This peripheral services the SPI flash and LCD, and is default enabled when configBSP430_PLATFORM_M25P or configBSP430_PLATFORM_TRXEB_LCD is enabled.
#define configBSP430_PLATFORM_TRXEB_IO_SPI1 (configBSP430_PLATFORM_TRXEB_ACCEL - 0) |
Enable use of IO_SPI1 peripheral.
This peripheral services the accelerometer, and is default enabled when configBSP430_PLATFORM_TRXEB_ACCEL is enabled.
#define configBSP430_PLATFORM_TRXEB_LCD 0 |
Enable HPL support for on-board LCD
The TrxEB has a DOGM128E-6 monochromatic 128x64 pixel LCD on board. It receives power and does control through pins on ports 7 and 9.
There is a backlight infrastructure on P3.6, but the additional circuitry for the module is not included on the board.
The LCD is controlled using IO_SPI0.
Defining this constant to a true value enables the configuration of the HPL for ports 7 and 9 and the SPI interface.