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-EXP430F5438 More...

#include <bsp430/platform.h>

Go to the source code of this file.

Macros

#define BSP430_PLATFORM_EXP430F5438   1
 
#define configBSP430_PLATFORM_EXP430F5438_LCD   0
 
#define BSP430_PLATFORM_EXP430F5438_LCD_SPI_PERIPH_HANDLE   BSP430_PERIPH_USCI5_B2
 
#define BSP430_PLATFORM_EXP430F5438_LCD_PORT_PERIPH_HANDLE   BSP430_PERIPH_PORT9
 
#define BSP430_PLATFORM_EXP430F5438_LCD_RSTn_PORT_BIT   BIT7
 
#define BSP430_PLATFORM_EXP430F5438_LCD_CSn_PORT_BIT   BIT6
 
#define BSP430_PLATFORM_EXP430F5438_LCD_COLUMNS   138
 
#define BSP430_PLATFORM_EXP430F5438_LCD_ROWS   110
 
#define BSP430_PLATFORM_EXP430F5438_LCD_BL_PORT_PERIPH_HANDLE   BSP430_PERIPH_PORT8
 
#define BSP430_PLATFORM_EXP430F5438_LCD_BL_PORT_BIT   BIT3
 

Detailed Description

Platform-specific include for MSP-EXP430F5438

The following platform-specific features are supported:

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

Macro Definition Documentation

#define BSP430_PLATFORM_EXP430F5438   1

Unconditionally define this, so as to produce errors if there is a conflict in definition.

#define BSP430_PLATFORM_EXP430F5438_LCD_BL_PORT_BIT   BIT3

Port bit on BSP430_PLATFORM_EXP430F5438_LCD_BL_PORT_PERIPH_HANDLE for LCD backlight

This bit can be set to turn on the backlight. This pin corresponds to TA0.3 and can support PWM backlight control if you are not using TA0 for other purposes.

Dependency:
configBSP430_PLATFORM_EXP430F5438_LCD
#define BSP430_PLATFORM_EXP430F5438_LCD_BL_PORT_PERIPH_HANDLE   BSP430_PERIPH_PORT8

BSP430 peripheral handle for port to which LCD backlight line is connected.

Dependency:
configBSP430_PLATFORM_EXP430F5438_LCD
#define BSP430_PLATFORM_EXP430F5438_LCD_COLUMNS   138

Width, in pixel columns, of the HD66753 display. Though the device is documented as having 168 columns, the displayable area contains only 138 columns.

#define BSP430_PLATFORM_EXP430F5438_LCD_CSn_PORT_BIT   BIT6
#define BSP430_PLATFORM_EXP430F5438_LCD_PORT_PERIPH_HANDLE   BSP430_PERIPH_PORT9

BSP430 peripheral handle for port to which LCD RSTn and CSn lines are connected.

Dependency:
configBSP430_PLATFORM_EXP430F5438_LCD
#define BSP430_PLATFORM_EXP430F5438_LCD_ROWS   110

Height, in pixel rows, of the HD66753 display. Though the device can go to 132 rows, the displayable area contains only 110 rows.

#define BSP430_PLATFORM_EXP430F5438_LCD_RSTn_PORT_BIT   BIT7
#define BSP430_PLATFORM_EXP430F5438_LCD_SPI_PERIPH_HANDLE   BSP430_PERIPH_USCI5_B2

Peripheral handle for SPI access to LCD

#define configBSP430_PLATFORM_EXP430F5438_LCD   0

Enable HPL support for on-board LCD

The EXP430F5438 has a Hitachi HD66754 4-level greyscale 138x110 pixel LCD on board, including back-light. Power is hard-wired, with backlight PWM on TA0.3 and control through pins on port 9.

Defining this constant to a true value enables the configuration of the HPL for port 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.