BSP430  20141115
Board Support Package for MSP430 microcontrollers
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
Macros
platform.h File Reference

Platform-specific include for MSP-TRXEB More...

#include <bsp430/platform.h>

Go to the source code of this file.

Macros

#define BSP430_PLATFORM_TRXEB   1
 
#define configBSP430_PLATFORM_TRXEB_ALS   0
 
#define BSP430_PLATFORM_TRXEB_ALS_PORT_PERIPH_HANDLE   BSP430_PERIPH_PORT6
 
#define BSP430_PLATFORM_TRXEB_ALS_PWR_PORT_BIT   BIT1
 
#define BSP430_PLATFORM_TRXEB_ALS_OUT_PORT_BIT   BIT2
 
#define BSP430_PLATFORM_TRXEB_ALS_OUT_INCH   ADC12INCH_2
 
#define configBSP430_PLATFORM_TRXEB_ACCEL   0
 
#define BSP430_PLATFORM_TRXEB_ACCEL_PWR_PORT_PERIPH_HANDLE   BSP430_PERIPH_PORT6
 
#define BSP430_PLATFORM_TRXEB_ACCEL_PWR_PORT_BIT   BIT0
 
#define BSP430_PLATFORM_TRXEB_ACCEL_CSn_PORT_PERIPH_HANDLE   BSP430_PERIPH_PORT8
 
#define BSP430_PLATFORM_TRXEB_ACCEL_CSn_PORT_BIT   BIT7
 
#define configBSP430_PLATFORM_TRXEB_ACCEL_IRQ   0
 
#define BSP430_PLATFORM_TRXEB_ACCEL_IRQ_PORT_PERIPH_HANDLE   BSP430_PERIPH_PORT2
 
#define BSP430_PLATFORM_TRXEB_ACCEL_IRQ_PORT_BIT   BIT0
 
#define configBSP430_PLATFORM_M25P   0
 
#define configBSP430_PLATFORM_TRXEB_LCD   0
 
#define BSP430_PLATFORM_TRXEB_LCD_SPI_PERIPH_HANDLE   BSP430_PLATFORM_TRXEB_IO_SPI0_PERIPH_HANDLE
 
#define BSP430_PLATFORM_TRXEB_LCD_PWR_PORT_PERIPH_HANDLE   BSP430_PERIPH_PORT7
 
#define BSP430_PLATFORM_TRXEB_LCD_PWR_PORT_BIT   BIT7
 
#define BSP430_PLATFORM_TRXEB_LCD_RSTn_PORT_PERIPH_HANDLE   BSP430_PERIPH_PORT7
 
#define BSP430_PLATFORM_TRXEB_LCD_RSTn_PORT_BIT   BIT3
 
#define BSP430_PLATFORM_TRXEB_LCD_CSn_PORT_PERIPH_HANDLE   BSP430_PERIPH_PORT9
 
#define BSP430_PLATFORM_TRXEB_LCD_CSn_PORT_BIT   BIT6
 
#define BSP430_PLATFORM_TRXEB_LCD_A0_PORT_PERIPH_HANDLE   BSP430_PERIPH_PORT9
 
#define BSP430_PLATFORM_TRXEB_LCD_A0_PORT_BIT   BIT7
 
#define BSP430_PLATFORM_TRXEB_LCD_COLUMNS   128
 
#define BSP430_PLATFORM_TRXEB_LCD_PAGES   8
 
#define BSP430_PLATFORM_TRXEB_LCD_ROWS_PER_PAGE   8
 
#define configBSP430_PLATFORM_TRXEB_IO_SPI0   ((configBSP430_PLATFORM_M25P - 0) || (configBSP430_PLATFORM_TRXEB_LCD - 0))
 
#define configBSP430_PLATFORM_TRXEB_IO_SPI1   (configBSP430_PLATFORM_TRXEB_ACCEL - 0)
 
#define BSP430_PLATFORM_TRXEB_IO_SPI0_PERIPH_HANDLE   BSP430_PERIPH_USCI5_B2
 
#define BSP430_PLATFORM_TRXEB_IO_SPI1_PERIPH_HANDLE   BSP430_PERIPH_USCI5_A2
 

Detailed Description

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:

Homepage
http://github.com/pabigot/bsp430

Macro Definition Documentation

#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
#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.

Dependency:
configBSP430_PLATFORM_TRXEB_ACCEL
#define BSP430_PLATFORM_TRXEB_ACCEL_IRQ_PORT_BIT   BIT0
#define BSP430_PLATFORM_TRXEB_ACCEL_IRQ_PORT_PERIPH_HANDLE   BSP430_PERIPH_PORT2

BSP430 peripheral handle for port on which accelerometer power is placed.

Dependency:
configBSP430_PLATFORM_TRXEB_ACCEL_IRQ
#define BSP430_PLATFORM_TRXEB_ACCEL_PWR_PORT_BIT   BIT0
#define BSP430_PLATFORM_TRXEB_ACCEL_PWR_PORT_PERIPH_HANDLE   BSP430_PERIPH_PORT6

BSP430 peripheral handle for port on which accelerometer power is placed.

Dependency:
configBSP430_PLATFORM_TRXEB_ACCEL
#define BSP430_PLATFORM_TRXEB_ALS_OUT_INCH   ADC12INCH_2

ADC12 channel for ALS output

Dependency:
configBSP430_PLATFORM_TRXEB_ALS
#define BSP430_PLATFORM_TRXEB_ALS_OUT_PORT_BIT   BIT2
#define BSP430_PLATFORM_TRXEB_ALS_PORT_PERIPH_HANDLE   BSP430_PERIPH_PORT6

BSP430 port HPL reference on which ambient light sensor is placed.

Dependency:
configBSP430_PLATFORM_TRXEB_ALS
#define BSP430_PLATFORM_TRXEB_ALS_PWR_PORT_BIT   BIT1
#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.

Dependency:
configBSP430_PLATFORM_TRXEB_IO_SPI0
#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.

Dependency:
configBSP430_PLATFORM_TRXEB_IO_SPI1
#define BSP430_PLATFORM_TRXEB_LCD_A0_PORT_BIT   BIT7
#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.

Dependency:
configBSP430_PLATFORM_TRXEB_LCD
#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
#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.

Dependency:
configBSP430_PLATFORM_TRXEB_LCD
#define BSP430_PLATFORM_TRXEB_LCD_PAGES   8

Height, in pages, of the DOGM128E-6 display

#define BSP430_PLATFORM_TRXEB_LCD_PWR_PORT_BIT   BIT7
#define BSP430_PLATFORM_TRXEB_LCD_PWR_PORT_PERIPH_HANDLE   BSP430_PERIPH_PORT7

BSP430 peripheral handle for port to which LCD power is connected.

Dependency:
configBSP430_PLATFORM_TRXEB_LCD
#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
#define BSP430_PLATFORM_TRXEB_LCD_RSTn_PORT_PERIPH_HANDLE   BSP430_PERIPH_PORT7

BSP430 peripheral handle for port to which LCD reset (inverted) is connected.

Dependency:
configBSP430_PLATFORM_TRXEB_LCD
#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.

Dependency:
configBSP430_PLATFORM_TRXEB_ACCEL
Affects:
BSP430_PLATFORM_TRXEB_ACCEL_IRQ_PORT_PERIPH_HANDLE
#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.

Defaulted:
The value here is superseded by previously encountered definitions.
C Preprocessor Only:
This macro may have a value that restricts its use to C preprocessor conditional directives.
#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.

Defaulted:
The value here is superseded by previously encountered definitions.
C Preprocessor Only:
This macro may have a value that restricts its use to C preprocessor conditional directives.
#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.

See also
configBSP430_UTILITY_U8GLIB
Defaulted:
The value here is superseded by previously encountered definitions.
C Preprocessor Only:
This macro may have a value that restricts its use to C preprocessor conditional directives.