Contiki 2.5
Data Structures | Macros | Typedefs | Functions
board.h File Reference

Header file x STM32W108 Kits boards abstraction. More...

Go to the source code of this file.

Data Structures

struct  LedResourceStruct
 Data structure for led description. More...
 
struct  ButtonResourceStruct
 Data structure for button description. More...
 
struct  MemsResourceStruct
 Data structure for MEMS description. More...
 
struct  TempSensorResourceStruct
 Data structure for temperature sensor description. More...
 
struct  BoardIOStruct
 Data structure for board user I/O. More...
 
struct  BoardResourcesStruct
 Data structure describing board features. More...
 

Macros

#define LEDS_MB851A   2
 Define the number of LEDs in the specific board revision.
 
#define LEDS_MB851B   2
 Define the number of LEDs in the specific board revision.
 
#define LEDS_MB851C   2
 Define the number of LEDs in the specific board revision.
 
#define LEDS_MB954A   2
 Define the number of LEDs in the specific board revision.
 
#define LEDS_MB954B   2
 Define the number of LEDs in the specific board revision.
 
#define LEDS_MB950A   2
 Define the number of LEDs in the specific board revision.
 
#define LEDS_MB951A   2
 Define the number of LEDs in the specific board revision.
 
#define BUTTONS_MB851A   1
 Define the number of user buttons in the specific board revision.
 
#define BUTTONS_MB851B   1
 Define the number of user buttons in the specific board revision.
 
#define BUTTONS_MB851C   1
 Define the number of user buttons in the specific board revision.
 
#define BUTTONS_MB954A   1
 Define the number of user buttons in the specific board revision.
 
#define BUTTONS_MB954B   1
 Define the number of user buttons in the specific board revision.
 
#define BUTTONS_MB950A   5
 Define the number of user buttons in the specific board revision.
 
#define BUTTONS_MB951A   1
 Define the number of user buttons in the specific board revision.
 
#define BOARD_HAS_MEMS   (1 << 0)
 Flag to indicate if MEMS is present.
 
#define BOARD_HAS_TEMP_SENSOR   (1 << 1)
 Flag to indicate if temeprature sensor is present.
 
#define BOARD_HAS_PA   (1 << 2)
 Flag to indicate if external power amplifier is present.
 
#define BOARD_HAS_EEPROM   (1 << 3)
 Flag to indicate if EEPROM is present.
 
#define BOARD_HAS_FTDI   (1 << 4)
 Flag to indicate if FTDI is used as PC interface.
 
#define BOARD_HAS_STM32F   (1 << 5)
 Flag to indicate if STM32F is used as PC interface.
 
#define BUTTON_Sn(n)   (PORTx_PIN(boardDescription->io->buttons[n].gpioPort, boardDescription->io->buttons[n].gpioPin))
 Description buttons definition.
 
#define UART_TX   PORTB_PIN(1)
 Description uart definition.
 
#define TEMPERATURE_SENSOR_GPIO   PORTx_PIN(boardDescription->temperatureSensor->gpioPort, boardDescription->temperatureSensor->gpioPin)
 Description temperature sensor GPIO.
 

Typedefs

typedef struct LedResourceStruct LedResourceType
 Data structure for led description.
 
typedef struct ButtonResourceStruct ButtonResourceType
 Data structure for button description.
 
typedef struct MemsResourceStruct MemsResourceType
 Data structure for MEMS description.
 
typedef struct
TempSensorResourceStruct 
TempSensorResourceType
 Data structure for temperature sensor description.
 
typedef struct BoardIOStruct BoardIOType
 Data structure for board user I/O.
 
typedef struct BoardResourcesStruct BoardResourcesType
 Data structure describing board features.
 

Functions

BoardResourcesType const * halBoardGetDescription (void)
 Return pointer to board description structure. More...
 
void halBoardInit (void)
 Initialize the board description data structure after autodetect of the boards based on the CIB Board name field content. More...
 
void halBoardPowerUp (void)
 Perform board specific action to power up the system. More...
 
void halBoardPowerDown (void)
 Perform board specific action to power down the system, usually before going to deep sleep. More...
 

Detailed Description

Header file x STM32W108 Kits boards abstraction.

See Board for documentation.

See hal/micro/cortexm3/stm32w108/board.h for source code.

Definition in file board.h.