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

#include <bsp430/platform.h>

Go to the source code of this file.

Macros

#define BSP430_PLATFORM_EXP430F5529   1
 
#define BSP430_CLOCK_NOMINAL_XT2CLK_HZ   4000000UL
 
#define configBSP430_PLATFORM_EXP430F5529_CCACLK_NEED_CLK   0
 
#define configBSP430_PLATFORM_EXP430F5529_LCD   0
 
#define BSP430_PLATFORM_EXP430F5529_LCD_SPI_PERIPH_HANDLE   BSP430_PERIPH_USCI5_B1
 
#define BSP430_PLATFORM_EXP430F5529_LCD_RSTn_PORT_PERIPH_HANDLE   BSP430_PERIPH_PORT5
 
#define BSP430_PLATFORM_EXP430F5529_LCD_RSTn_PORT_BIT   BIT7
 
#define BSP430_PLATFORM_EXP430F5529_LCD_CSn_PORT_PERIPH_HANDLE   BSP430_PERIPH_PORT7
 
#define BSP430_PLATFORM_EXP430F5529_LCD_CSn_PORT_BIT   BIT4
 
#define BSP430_PLATFORM_EXP430F5529_LCD_A0_PORT_PERIPH_HANDLE   BSP430_PERIPH_PORT5
 
#define BSP430_PLATFORM_EXP430F5529_LCD_A0_PORT_BIT   BIT6
 
#define BSP430_PLATFORM_EXP430F5529_LCD_COLUMNS   102
 
#define BSP430_PLATFORM_EXP430F5529_LCD_PAGES   8
 
#define BSP430_PLATFORM_EXP430F5529_LCD_ROWS_PER_PAGE   8
 

Detailed Description

Platform-specific include for MSP-EXP430F5529

The following platform-specific features are supported:

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

Macro Definition Documentation

#define BSP430_CLOCK_NOMINAL_XT2CLK_HZ   4000000UL

EXP430F5529 has a 4MHz XT2

#define BSP430_PLATFORM_EXP430F5529   1

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

#define BSP430_PLATFORM_EXP430F5529_LCD_A0_PORT_BIT   BIT6
#define BSP430_PLATFORM_EXP430F5529_LCD_A0_PORT_PERIPH_HANDLE   BSP430_PERIPH_PORT5

BSP430 peripheral handle for port to which LCD A0 (CMD=0, DATA=1) is connected.

Dependency:
configBSP430_PLATFORM_EXP430F5529_LCD
#define BSP430_PLATFORM_EXP430F5529_LCD_COLUMNS   102

Width, in pixel columns, of the DOGS102-6 display

#define BSP430_PLATFORM_EXP430F5529_LCD_CSn_PORT_BIT   BIT4
#define BSP430_PLATFORM_EXP430F5529_LCD_CSn_PORT_PERIPH_HANDLE   BSP430_PERIPH_PORT7

BSP430 peripheral handle for port to which LCD chip-select (inverted) is connected.

Dependency:
configBSP430_PLATFORM_EXP430F5529_LCD
#define BSP430_PLATFORM_EXP430F5529_LCD_PAGES   8

Height, in pages, of the DOGS102-6 display

#define BSP430_PLATFORM_EXP430F5529_LCD_ROWS_PER_PAGE   8

Height, in pixel rows, of each page of the DOGS102-6 display

#define BSP430_PLATFORM_EXP430F5529_LCD_RSTn_PORT_BIT   BIT7
#define BSP430_PLATFORM_EXP430F5529_LCD_RSTn_PORT_PERIPH_HANDLE   BSP430_PERIPH_PORT5

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

Dependency:
configBSP430_PLATFORM_EXP430F5529_LCD
#define BSP430_PLATFORM_EXP430F5529_LCD_SPI_PERIPH_HANDLE   BSP430_PERIPH_USCI5_B1

Peripheral handle for SPI access to LCD

#define configBSP430_PLATFORM_EXP430F5529_CCACLK_NEED_CLK   0

Define to control CCACLK capabilities for EXP430F5529 platform

The EXP430F5529 board does a very poor job of making signals accessible. No timer has all of CLK, CC0, and CC1 on header pins.

If this is defined to a true value, selection of configBSP430_TIMER_CCACLK will select a timer for which the CLK signal can be accessed from a board header. If defined to a false value (default), configBSP430_TIMER_CCACLK will select a timer for which the CC0 and CC1 signals can be accessed from a board header.

#define configBSP430_PLATFORM_EXP430F5529_LCD   0

Enable HPL support for on-board LCD

The EXP430F5529 has a DOGS102-6 monochromatic 102x64 pixel LCD on board, including back-light. Power is hard-wired, with backlight PWM on TB0.4 and control through pins on ports 5 and 7.

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