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

Board specific definitions for the Eistec Mulle IoT board. More...

Detailed Description

Board specific definitions for the Eistec Mulle IoT board.

Author
Joakim NohlgÄrd joaki.nosp@m.m.no.nosp@m.hlgar.nosp@m.d@ei.nosp@m.stec..nosp@m.se

Definition in file board.h.

#include "cpu.h"
#include "periph_conf.h"
#include "mulle-nvram.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.

#define LPTIMER_CLKSRC   LPTIMER_CLKSRC_ERCLK32K
 Clock source for the LPTMR module.
 
#define DISABLE_WDOG   1
 Disable hardware watchdog, for debugging purposes, don't use this on production builds.
 
#define STDIO_UART_DEV   UART_DEV(1)
 Use the UART1 for STDIO on this board.
 

xtimer configuration

#define XTIMER_DEV   (TIMER_PIT_DEV(0))
 
#define XTIMER_CHAN   (0)
 
#define XTIMER_BACKOFF   (40)
 
#define XTIMER_ISR_BACKOFF   (40)
 

LED pin definitions and handlers

#define LED_PORT   PTC
 
#define LED0_BIT   (15)
 
#define LED1_BIT   (14)
 
#define LED2_BIT   (13)
 
#define LED0_PIN   GPIO_PIN(PORT_C, LED0_BIT)
 
#define LED1_PIN   GPIO_PIN(PORT_C, LED1_BIT)
 
#define LED2_PIN   GPIO_PIN(PORT_C, LED2_BIT)
 
#define LED0_ON   (LED_PORT->PSOR = (1 << LED0_BIT))
 
#define LED0_OFF   (LED_PORT->PCOR = (1 << LED0_BIT))
 
#define LED0_TOGGLE   (LED_PORT->PTOR = (1 << LED0_BIT))
 
#define LED1_ON   (LED_PORT->PSOR = (1 << LED1_BIT))
 
#define LED1_OFF   (LED_PORT->PCOR = (1 << LED1_BIT))
 
#define LED1_TOGGLE   (LED_PORT->PTOR = (1 << LED1_BIT))
 
#define LED2_ON   (LED_PORT->PSOR = (1 << LED2_BIT))
 
#define LED2_OFF   (LED_PORT->PCOR = (1 << LED2_BIT))
 
#define LED2_TOGGLE   (LED_PORT->PTOR = (1 << LED2_BIT))
 

Define the interface to the AT86RF212B radio

#define AT86RF2XX_PARAM_CS   SPI_HWCS(1)
 
#define AT86RF2XX_PARAM_INT   GPIO_PIN(PORT_B, 9)
 
#define AT86RF2XX_PARAM_SLEEP   GPIO_PIN(PORT_E, 6)
 
#define AT86RF2XX_PARAM_RESET   GPIO_PIN(PORT_C, 12)
 

LIS3DH configuration

#define LIS3DH_PARAM_INT1   GPIO_PIN(PORT_C, 18)
 
#define LIS3DH_PARAM_INT2   GPIO_PIN(PORT_C, 17)
 
#define LIS3DH_PARAM_CS   SPI_HWCS(0)
 
#define LIS3DH_PARAM_CLK   (SPI_CLK_5MHZ)
 

Mulle power control configuration

#define MULLE_POWER_AVDD   GPIO_PIN(PORT_B, 17)
 AVDD enable pin.
 
#define MULLE_POWER_VPERIPH   GPIO_PIN(PORT_D, 7)
 VPERIPH enable pin.
 
#define MULLE_POWER_VSEC   GPIO_PIN(PORT_B, 16)
 VSEC enable pin.
 

Mulle NVRAM hardware configuration

#define MULLE_NVRAM_SPI_DEV   SPI_DEV(0)
 
#define MULLE_NVRAM_SPI_CLK   SPI_CLK_5MHZ
 
#define MULLE_NVRAM_SPI_CS   SPI_HWCS(3)
 FRAM CS pin.
 
#define MULLE_NVRAM_CAPACITY   512
 FRAM size, in bytes.
 
#define MULLE_NVRAM_SPI_ADDRESS_COUNT   1
 FRAM addressing size, in bytes.
 

Mulle NOR flash hardware configuration

#define MULLE_NOR_SPI_DEV   SPI_DEV(0)
 
#define MULLE_NOR_SPI_CLK   SPI_CLK_5MHZ
 
#define MULLE_NOR_SPI_CS   SPI_HWCS(2)
 Flash CS pin.
 

MTD configuration

#define MTD_0   mtd_dev_get(0)
 

Mulle Vchr, Vbat ADC lines

#define MULLE_VBAT_ADC_LINE   ADC_LINE(6)
 
#define MULLE_VCHR_ADC_LINE   ADC_LINE(7)
 

Macro Definition Documentation

◆ AT86RF2XX_PARAM_CS

#define AT86RF2XX_PARAM_CS   SPI_HWCS(1)
Todo:
Work around missing RESET pin on Mulle v0.6x

{spi bus, spi speed, cs pin, int pin, reset pin, sleep pin}

Definition at line 104 of file board.h.

◆ AT86RF2XX_PARAM_INT

#define AT86RF2XX_PARAM_INT   GPIO_PIN(PORT_B, 9)

Definition at line 105 of file board.h.

◆ AT86RF2XX_PARAM_RESET

#define AT86RF2XX_PARAM_RESET   GPIO_PIN(PORT_C, 12)

Definition at line 107 of file board.h.

◆ AT86RF2XX_PARAM_SLEEP

#define AT86RF2XX_PARAM_SLEEP   GPIO_PIN(PORT_E, 6)

Definition at line 106 of file board.h.

◆ DISABLE_WDOG

#define DISABLE_WDOG   1

Disable hardware watchdog, for debugging purposes, don't use this on production builds.

Definition at line 32 of file board.h.

◆ LED0_BIT

#define LED0_BIT   (15)

Definition at line 66 of file board.h.

◆ LED0_OFF

#define LED0_OFF   (LED_PORT->PCOR = (1 << LED0_BIT))

Definition at line 75 of file board.h.

◆ LED0_ON

#define LED0_ON   (LED_PORT->PSOR = (1 << LED0_BIT))

Definition at line 74 of file board.h.

◆ LED0_PIN

#define LED0_PIN   GPIO_PIN(PORT_C, LED0_BIT)

Definition at line 70 of file board.h.

◆ LED0_TOGGLE

#define LED0_TOGGLE   (LED_PORT->PTOR = (1 << LED0_BIT))

Definition at line 76 of file board.h.

◆ LED1_BIT

#define LED1_BIT   (14)

Definition at line 67 of file board.h.

◆ LED1_OFF

#define LED1_OFF   (LED_PORT->PCOR = (1 << LED1_BIT))

Definition at line 79 of file board.h.

◆ LED1_ON

#define LED1_ON   (LED_PORT->PSOR = (1 << LED1_BIT))

Definition at line 78 of file board.h.

◆ LED1_PIN

#define LED1_PIN   GPIO_PIN(PORT_C, LED1_BIT)

Definition at line 71 of file board.h.

◆ LED1_TOGGLE

#define LED1_TOGGLE   (LED_PORT->PTOR = (1 << LED1_BIT))

Definition at line 80 of file board.h.

◆ LED2_BIT

#define LED2_BIT   (13)

Definition at line 68 of file board.h.

◆ LED2_OFF

#define LED2_OFF   (LED_PORT->PCOR = (1 << LED2_BIT))

Definition at line 83 of file board.h.

◆ LED2_ON

#define LED2_ON   (LED_PORT->PSOR = (1 << LED2_BIT))

Definition at line 82 of file board.h.

◆ LED2_PIN

#define LED2_PIN   GPIO_PIN(PORT_C, LED2_BIT)

Definition at line 72 of file board.h.

◆ LED2_TOGGLE

#define LED2_TOGGLE   (LED_PORT->PTOR = (1 << LED2_BIT))

Definition at line 84 of file board.h.

◆ LED_PORT

#define LED_PORT   PTC

Definition at line 65 of file board.h.

◆ LIS3DH_PARAM_CLK

#define LIS3DH_PARAM_CLK   (SPI_CLK_5MHZ)

Definition at line 117 of file board.h.

◆ LIS3DH_PARAM_CS

#define LIS3DH_PARAM_CS   SPI_HWCS(0)

Definition at line 116 of file board.h.

◆ LIS3DH_PARAM_INT1

#define LIS3DH_PARAM_INT1   GPIO_PIN(PORT_C, 18)

Definition at line 114 of file board.h.

◆ LIS3DH_PARAM_INT2

#define LIS3DH_PARAM_INT2   GPIO_PIN(PORT_C, 17)

Definition at line 115 of file board.h.

◆ LPTIMER_CLKSRC

#define LPTIMER_CLKSRC   LPTIMER_CLKSRC_ERCLK32K

Clock source for the LPTMR module.

Definition at line 29 of file board.h.

◆ MTD_0

#define MTD_0   mtd_dev_get(0)

Definition at line 152 of file board.h.

◆ MULLE_NOR_SPI_CLK

#define MULLE_NOR_SPI_CLK   SPI_CLK_5MHZ

Definition at line 145 of file board.h.

◆ MULLE_NOR_SPI_CS

#define MULLE_NOR_SPI_CS   SPI_HWCS(2)

Flash CS pin.

Definition at line 146 of file board.h.

◆ MULLE_NOR_SPI_DEV

#define MULLE_NOR_SPI_DEV   SPI_DEV(0)

Definition at line 144 of file board.h.

◆ MULLE_NVRAM_CAPACITY

#define MULLE_NVRAM_CAPACITY   512

FRAM size, in bytes.

Definition at line 136 of file board.h.

◆ MULLE_NVRAM_SPI_ADDRESS_COUNT

#define MULLE_NVRAM_SPI_ADDRESS_COUNT   1

FRAM addressing size, in bytes.

Definition at line 137 of file board.h.

◆ MULLE_NVRAM_SPI_CLK

#define MULLE_NVRAM_SPI_CLK   SPI_CLK_5MHZ

Definition at line 134 of file board.h.

◆ MULLE_NVRAM_SPI_CS

#define MULLE_NVRAM_SPI_CS   SPI_HWCS(3)

FRAM CS pin.

Definition at line 135 of file board.h.

◆ MULLE_NVRAM_SPI_DEV

#define MULLE_NVRAM_SPI_DEV   SPI_DEV(0)

Definition at line 133 of file board.h.

◆ MULLE_POWER_AVDD

#define MULLE_POWER_AVDD   GPIO_PIN(PORT_B, 17)

AVDD enable pin.

Definition at line 124 of file board.h.

◆ MULLE_POWER_VPERIPH

#define MULLE_POWER_VPERIPH   GPIO_PIN(PORT_D, 7)

VPERIPH enable pin.

Definition at line 125 of file board.h.

◆ MULLE_POWER_VSEC

#define MULLE_POWER_VSEC   GPIO_PIN(PORT_B, 16)

VSEC enable pin.

Definition at line 126 of file board.h.

◆ MULLE_VBAT_ADC_LINE

#define MULLE_VBAT_ADC_LINE   ADC_LINE(6)

Definition at line 159 of file board.h.

◆ MULLE_VCHR_ADC_LINE

#define MULLE_VCHR_ADC_LINE   ADC_LINE(7)

Definition at line 160 of file board.h.

◆ STDIO_UART_DEV

#define STDIO_UART_DEV   UART_DEV(1)

Use the UART1 for STDIO on this board.

Definition at line 37 of file board.h.

◆ XTIMER_BACKOFF

#define XTIMER_BACKOFF   (40)

Definition at line 56 of file board.h.

◆ XTIMER_CHAN

#define XTIMER_CHAN   (0)

Definition at line 55 of file board.h.

◆ XTIMER_DEV

#define XTIMER_DEV   (TIMER_PIT_DEV(0))

Definition at line 54 of file board.h.

◆ XTIMER_ISR_BACKOFF

#define XTIMER_ISR_BACKOFF   (40)

Definition at line 57 of file board.h.