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

Board specific definitions for the Teensy3.1 & 3.2 board. More...

Detailed Description

Board specific definitions for the Teensy3.1 & 3.2 board.

Author
Loïc Dauphin loic..nosp@m.daup.nosp@m.hin@i.nosp@m.nria.nosp@m..fr

Definition in file board.h.

#include "cpu.h"
#include "periph_conf.h"
+ Include dependency graph for board.h:

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.
 

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   (5)
 
#define LED0_PIN   GPIO_PIN(PORT_C, LED0_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))
 

Macro Definition Documentation

◆ DISABLE_WDOG

#define DISABLE_WDOG   1

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

Definition at line 35 of file board.h.

◆ LED0_BIT

#define LED0_BIT   (5)

Definition at line 52 of file board.h.

◆ LED0_OFF

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

Definition at line 57 of file board.h.

◆ LED0_ON

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

Definition at line 56 of file board.h.

◆ LED0_PIN

#define LED0_PIN   GPIO_PIN(PORT_C, LED0_BIT)

Definition at line 54 of file board.h.

◆ LED0_TOGGLE

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

Definition at line 58 of file board.h.

◆ LED_PORT

#define LED_PORT   PTC

Definition at line 51 of file board.h.

◆ LPTIMER_CLKSRC

#define LPTIMER_CLKSRC   LPTIMER_CLKSRC_ERCLK32K

Clock source for the LPTMR module.

Definition at line 32 of file board.h.

◆ XTIMER_BACKOFF

#define XTIMER_BACKOFF   (40)

Definition at line 43 of file board.h.

◆ XTIMER_CHAN

#define XTIMER_CHAN   (0)

Definition at line 42 of file board.h.

◆ XTIMER_DEV

#define XTIMER_DEV   (TIMER_PIT_DEV(0))

Definition at line 41 of file board.h.

◆ XTIMER_ISR_BACKOFF

#define XTIMER_ISR_BACKOFF   (40)

Definition at line 44 of file board.h.