Eistec Mulle

Board specific files for Eistec Mulle IoT boards. More...

Detailed Description

Files

file  mulle/include/board.h
 Board specific definitions for the Eistec Mulle IoT board.
 
file  mulle-nvram.h
 NVRAM offsets for the Eistec Mulle IoT board.
 
file  boards/mulle/include/periph_conf.h
 

Macros

#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. More...
 
#define UART_STDIO_DEV   UART_DEV(1)
 Use the UART1 for STDIO on this board.
 

Functions

void board_init (void)
 Initialize board specific hardware, including clock, LEDs and std-IO.
 
#define XTIMER_DEV   (TIMER_PIT_DEV(0))
 xtimer configuration
 
#define XTIMER_CHAN   (0)
 
#define XTIMER_BACKOFF   (40)
 
#define XTIMER_ISR_BACKOFF   (40)
 
#define XTIMER_OVERHEAD   (30)
 
#define LED_PORT   PTC
 LED pin definitions and handlers.
 
#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

Todo:
Work around missing RESET pin on Mulle v0.6x

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

#define AT86RF2XX_PARAMS_BOARD
 

LIS3DH configuration

#define LIS3DH_INT1   GPIO_PIN(PORT_C, 18)
 
#define LIS3DH_INT2   GPIO_PIN(PORT_C, 17)
 
#define LIS3DH_CS   GPIO_PIN(PORT_D, 0)
 
#define LIS3DH_CLK   SPI_CLK_5MHZ
 
#define LIS3DH_SPI   SPI_DEV(0)
 

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

mtd_dev_tmtd0
 
#define MTD_0   mtd0
 

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_PARAMS_BOARD

#define AT86RF2XX_PARAMS_BOARD
Value:
{.spi = SPI_DEV(0), \
.spi_clk = SPI_CLK_5MHZ, \
.cs_pin = SPI_HWCS(1), \
.int_pin = GPIO_PIN(PORT_B, 9), \
.sleep_pin = GPIO_PIN(PORT_E, 6), \
.reset_pin = GPIO_PIN(PORT_C, 12)}
#define GPIO_PIN(x, y)
Define a CPU specific GPIO pin generator macro.
#define SPI_DEV(x)
Default SPI device access macro.
Definition: spi.h:73
#define SPI_HWCS(x)
Define a CPU specific SPI hardware chip select line macro.

Definition at line 112 of file mulle/include/board.h.

◆ DISABLE_WDOG

#define DISABLE_WDOG   1

Definition at line 35 of file mulle/include/board.h.