TI MSP430F

Texas Instruments MSP430F family specific code.

uint16_t gpio_t
HAVE_GPIO_T

Define a custom type for GPIO pins.

enum @76
P1 = 1
PORT 1.
P2 = 2
PORT 2.
P3 = 3
PORT 3.
P4 = 4
PORT 4.
P5 = 5
PORT 5.
P6 = 6
PORT 6.
void gpio_periph_mode(gpio.h::gpio_t pin, bool enable)

Enable or disable a pin to be used by peripheral modules.

Parameters

pin:pin to (de-)select
enable:true for enabling peripheral use, false for disabling it

GPIO_PIN( x, y)

Mandatory function for defining a GPIO pins.

1
((gpio_t)(((x & 0xff) << 8) | (1 << (y & 0x07))))
SPI_HWCS( x)

No support for HW chip select…

1
(SPI_CS_UNDEF)
PERIPH_SPI_NEEDS_INIT_CS

declare needed generic SPI functions

PERIPH_SPI_NEEDS_TRANSFER_BYTE
PERIPH_SPI_NEEDS_TRANSFER_REG
PERIPH_SPI_NEEDS_TRANSFER_REGS
GPIO_UNDEF

Definition of a fitting UNDEF value.

1
(0xffff)