2021-01-29 12:20:02 +01:00
|
|
|
/*
|
|
|
|
* Copyright (C) 2021 Benjamin Valentin
|
|
|
|
*
|
|
|
|
* This file is subject to the terms and conditions of the GNU Lesser
|
|
|
|
* General Public License v2.1. See the file LICENSE in the top level
|
|
|
|
* directory for more details.
|
|
|
|
*/
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @ingroup boards_zigduino
|
|
|
|
* @{
|
|
|
|
*
|
|
|
|
* @file
|
|
|
|
* @brief Board specific definitions for the Zigduino board.
|
|
|
|
*
|
|
|
|
* @author Benjamin Valentin <benpicco@googlemail.com>
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef BOARD_H
|
|
|
|
#define BOARD_H
|
|
|
|
|
|
|
|
#include "cpu.h"
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @name baudrate for STDIO terminal
|
|
|
|
*
|
|
|
|
* @{
|
|
|
|
*/
|
|
|
|
#ifndef STDIO_UART_BAUDRATE
|
|
|
|
#define STDIO_UART_BAUDRATE (57600U) /**< Sets Baudrate for e.g. Shell */
|
|
|
|
#endif
|
|
|
|
/** @} */
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @name xtimer configuration values
|
|
|
|
* @{
|
|
|
|
*/
|
|
|
|
#define XTIMER_WIDTH (16)
|
|
|
|
#define XTIMER_HZ (250000UL)
|
|
|
|
#define XTIMER_BACKOFF (40)
|
|
|
|
/** @} */
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @name Grove PIR Motion sensor
|
2022-08-11 16:24:37 +02:00
|
|
|
* @{
|
2021-01-29 12:20:02 +01:00
|
|
|
*/
|
|
|
|
#define PIR_MOTION_PIN GPIO_PIN(PORT_D, 4)
|
|
|
|
#define PIR_MOTION_MODE GPIO_IN_PU
|
|
|
|
/** @} */
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif /* BOARD_H */
|
|
|
|
/** @} */
|