Loading...
Searching...
No Matches
board.h File Reference

Support for the HamiltonIoT Hamilton board. More...

Detailed Description

Support for the HamiltonIoT Hamilton board.

Board specific definitions for the Hamilton board

Author
Michael Andersen m.and.nosp@m.erse.nosp@m.n@cs..nosp@m.berk.nosp@m.eley..nosp@m.edu
Hyung-Sin Kim hs.ki.nosp@m.m@cs.nosp@m..berk.nosp@m.eley.nosp@m..edu

Definition in file board.h.

#include "cpu.h"
#include "periph_conf.h"
#include "periph_cpu.h"
#include "periph/gpio.h"
+ Include dependency graph for board.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

xtimer configuration

#define XTIMER_DEV   TIMER_DEV(1)
 
#define XTIMER_CHAN   (0)
 

AT86RF233 configuration

#define AT86RF2XX_PARAM_SPI   SPI_DEV(0)
 
#define AT86RF2XX_PARAM_SPI_CLK   SPI_CLK_5MHZ
 
#define AT86RF2XX_PARAM_CS   GPIO_PIN(PB, 31)
 
#define AT86RF2XX_PARAM_INT   GPIO_PIN(PB, 0)
 
#define AT86RF2XX_PARAM_SLEEP   GPIO_PIN(PA, 20)
 
#define AT86RF2XX_PARAM_RESET   GPIO_PIN(PB, 15)
 

LED pin definitions and handlers

#define LED0_PIN   GPIO_PIN(0, 19)
 
#define LED0_PORT   PORT->Group[0]
 
#define LED0_MASK   (1 << 19)
 
#define LED0_ON   (LED0_PORT.OUTCLR.reg = LED0_MASK)
 
#define LED0_OFF   (LED0_PORT.OUTSET.reg = LED0_MASK)
 
#define LED0_TOGGLE   (LED0_PORT.OUTTGL.reg = LED0_MASK)
 

Button pin definitions

#define BTN0_PIN   GPIO_PIN(0, 18)
 
#define BTN0_MODE   GPIO_IN_PU
 

FXOS8700 configuration

Note that another fxos8700 operation option, CONFIG_FXOS8700_USE_ACC_RAW_VALUES, need to be set according to the application purposes

#define FXOS8700_PARAM_I2C   I2C_DEV(0)
 
#define FXOS8700_PARAM_ADDR   (0x1E)
 
#define FXOS8700_PARAM_RENEW_INTERVAL   (1000000ul)
 

HDC1080 configuration

#define HDC1000_PARAM_I2C   I2C_DEV(0)
 
#define HDC1000_PARAM_ADDR   (0x40)
 
#define HDC1000_PARAM_RES   HDC1000_14BIT
 
#define HDC1000_PARAM_RENEW_INTERVAL   (1000000ul)
 

EKMB (PIR motion sensor) configuration

#define PIR_PARAM_GPIO   GPIO_PIN(PA, 6)
 
#define PIR_PARAM_ACTIVE_HIGH   (1)
 

PULSE_COUNTER configuration

#define PULSE_COUNTER_GPIO   BTN0_PIN
 
#define PULSE_COUNTER_GPIO_FLANK   GPIO_FALLING
 

TMP00X configuration

Note that two other tmp006 operation options, TMP00X_USE_LOW_POWER and TMP00X_USE_RAW_VALUES, need to be set according to the application purpose

#define TMP00X_PARAM_I2C   I2C_DEV(0)
 
#define TMP00X_PARAM_ADDR   (0x44)
 
#define TMP00X_PARAM_RATE   TMP00X_CONFIG_CR_AS2
 

Macro Definition Documentation

◆ AT86RF2XX_PARAM_CS

#define AT86RF2XX_PARAM_CS   GPIO_PIN(PB, 31)

Definition at line 47 of file board.h.

◆ AT86RF2XX_PARAM_INT

#define AT86RF2XX_PARAM_INT   GPIO_PIN(PB, 0)

Definition at line 48 of file board.h.

◆ AT86RF2XX_PARAM_RESET

#define AT86RF2XX_PARAM_RESET   GPIO_PIN(PB, 15)

Definition at line 50 of file board.h.

◆ AT86RF2XX_PARAM_SLEEP

#define AT86RF2XX_PARAM_SLEEP   GPIO_PIN(PA, 20)

Definition at line 49 of file board.h.

◆ AT86RF2XX_PARAM_SPI

#define AT86RF2XX_PARAM_SPI   SPI_DEV(0)

Definition at line 45 of file board.h.

◆ AT86RF2XX_PARAM_SPI_CLK

#define AT86RF2XX_PARAM_SPI_CLK   SPI_CLK_5MHZ

Definition at line 46 of file board.h.

◆ BTN0_MODE

#define BTN0_MODE   GPIO_IN_PU

Definition at line 72 of file board.h.

◆ BTN0_PIN

#define BTN0_PIN   GPIO_PIN(0, 18)

Definition at line 71 of file board.h.

◆ FXOS8700_PARAM_ADDR

#define FXOS8700_PARAM_ADDR   (0x1E)

Definition at line 82 of file board.h.

◆ FXOS8700_PARAM_I2C

#define FXOS8700_PARAM_I2C   I2C_DEV(0)

Definition at line 81 of file board.h.

◆ FXOS8700_PARAM_RENEW_INTERVAL

#define FXOS8700_PARAM_RENEW_INTERVAL   (1000000ul)

Definition at line 83 of file board.h.

◆ HDC1000_PARAM_ADDR

#define HDC1000_PARAM_ADDR   (0x40)

Definition at line 91 of file board.h.

◆ HDC1000_PARAM_I2C

#define HDC1000_PARAM_I2C   I2C_DEV(0)

Definition at line 90 of file board.h.

◆ HDC1000_PARAM_RENEW_INTERVAL

#define HDC1000_PARAM_RENEW_INTERVAL   (1000000ul)

Definition at line 93 of file board.h.

◆ HDC1000_PARAM_RES

#define HDC1000_PARAM_RES   HDC1000_14BIT

Definition at line 92 of file board.h.

◆ LED0_MASK

#define LED0_MASK   (1 << 19)

Definition at line 60 of file board.h.

◆ LED0_OFF

#define LED0_OFF   (LED0_PORT.OUTSET.reg = LED0_MASK)

Definition at line 63 of file board.h.

◆ LED0_ON

#define LED0_ON   (LED0_PORT.OUTCLR.reg = LED0_MASK)

Definition at line 62 of file board.h.

◆ LED0_PIN

#define LED0_PIN   GPIO_PIN(0, 19)

Definition at line 57 of file board.h.

◆ LED0_PORT

#define LED0_PORT   PORT->Group[0]

Definition at line 59 of file board.h.

◆ LED0_TOGGLE

#define LED0_TOGGLE   (LED0_PORT.OUTTGL.reg = LED0_MASK)

Definition at line 64 of file board.h.

◆ PIR_PARAM_ACTIVE_HIGH

#define PIR_PARAM_ACTIVE_HIGH   (1)

Definition at line 101 of file board.h.

◆ PIR_PARAM_GPIO

#define PIR_PARAM_GPIO   GPIO_PIN(PA, 6)

Definition at line 100 of file board.h.

◆ PULSE_COUNTER_GPIO

#define PULSE_COUNTER_GPIO   BTN0_PIN

Definition at line 108 of file board.h.

◆ PULSE_COUNTER_GPIO_FLANK

#define PULSE_COUNTER_GPIO_FLANK   GPIO_FALLING

Definition at line 109 of file board.h.

◆ TMP00X_PARAM_ADDR

#define TMP00X_PARAM_ADDR   (0x44)

Definition at line 119 of file board.h.

◆ TMP00X_PARAM_I2C

#define TMP00X_PARAM_I2C   I2C_DEV(0)

Definition at line 118 of file board.h.

◆ TMP00X_PARAM_RATE

#define TMP00X_PARAM_RATE   TMP00X_CONFIG_CR_AS2

Definition at line 120 of file board.h.

◆ XTIMER_CHAN

#define XTIMER_CHAN   (0)

Definition at line 38 of file board.h.

◆ XTIMER_DEV

#define XTIMER_DEV   TIMER_DEV(1)

Definition at line 37 of file board.h.