EVE 1.0
board-ref-card.h File Reference

System example file. More...

#include <dev/adc0.h>
#include <dev/port.h>
#include <lib/env.h>
#include <dev/led.h>
#include <dev/key.h>
#include <em_cmu.h>
#include <em_gpio.h>
#include <stdbool.h>
#include <core/mwork.h>
#include <dev/io-expander-pcal9535a.h>
#include <dev/i2c-master.h>
#include <gpiointerrupt.h>
Include dependency graph for board-ref-card.h:

Go to the source code of this file.

Macros

#define NUMBER_OF_CONFIG_ADC_CHANNELS   2
 
#define IO_EXPANDER_INTn   EVE_P19_PC6
 

Functions

void PortsBoardInit (void)
 Name: PortsBoardInit
Initializes ports available for the board.
 
static __inline void UpdateLeds (uint32_t BitLedOn)
 
static __inline void BeepOn (bool On)
 
static __inline uint32_t ReadKeyInput (void)
 

Variables

const struct i2c_t I2c0
 
const struct io_expander_tIoExpanders [NUMBER_OF_IO_EXPANDERS]
 
const struct lcd_driver_t Pcf85162
 
const struct temp_sensor_t STLM75
 
const struct accel_config_t MMA8652FC
 
const struct pwm_t Timer0
 
const struct key_repeat_t ConfigKeyRepeat [NUMBER_OF_REPEAT_KEYS]
 User defined array of key_repeat_t structures defines key repeat parameters.
 
const struct key_combi_t ConfigKeyCombi [NUMBER_OF_COMBI_GROUPS]
 User defined array of key_combi_t structures defines combi key groups parameters.
 

Detailed Description

System example file.

Author
KLO, Jetro AS

Definition in file board-ref-card.h.

Macro Definition Documentation

#define NUMBER_OF_CONFIG_ADC_CHANNELS   2

Configuration for adc0.c

Definition at line 67 of file board-ref-card.h.

#define IO_EXPANDER_INTn   EVE_P19_PC6

Configuration for io-expander-pcal9535a.c Number of IO expanders in the system

Definition at line 91 of file board-ref-card.h.

Function Documentation

static __inline void UpdateLeds ( uint32_t  BitLedOn)
static

Inline code for updating leds. Return true if Leds can be updated, else false

Definition at line 184 of file board-ref-card.h.

References IoExpPortWrite().

static __inline void BeepOn ( bool  On)
static

Inline code for output or output function for beeper.

Definition at line 222 of file board-ref-card.h.

static __inline uint32_t ReadKeyInput ( void  )
static

Inline code for reading key inputs.

Definition at line 261 of file board-ref-card.h.

References IoExpPortRead().

Variable Documentation

const struct i2c_t I2c0

Configuration for i2c-master.c

const struct io_expander_t* IoExpanders[NUMBER_OF_IO_EXPANDERS]

The array collects pointers to all IO expanders in the system

const struct lcd_driver_t Pcf85162

Configuration for lcd-pcf85162.c

const struct temp_sensor_t STLM75

Configuration for temp-sensor-stlm75.c

const struct accel_config_t MMA8652FC

Configuration for accelerometer-MMA8652.c

Configuration for accelerometer-MMA8652.c

const struct pwm_t Timer0

Configuration for pwm.c