Toggle navigation
Documentation
The friendly Operating System for the Internet of Things
Loading...
Searching...
No Matches
board.h
Go to the documentation of this file.
1
/*
2
* Copyright (C) 2018 HAW Hamburg
3
*
4
* This file is subject to the terms and conditions of the GNU Lesser
5
* General Public License v2.1. See the file LICENSE in the top level
6
* directory for more details.
7
*/
8
20
#ifndef BOARD_H
21
#define BOARD_H
22
23
#ifdef __cplusplus
24
extern
"C"
{
25
#endif
26
31
#define XTIMER_WIDTH (16)
32
#define XTIMER_BACKOFF (50)
33
#define XTIMER_ISR_BACKOFF (40)
40
#define LED0_PIN_NUM 1
41
#define LED0_PORT GPIO_PORT_A
42
#define LED0_PORT_NUM PORT_A
43
#define LED0_IS_INVERTED 1
44
45
#define EN3V3_PORT GPIOA
46
#define EN3V3_PIN GPIO_PIN(PORT_A, 11)
47
#define EN3V3_MASK (1 << 11)
48
49
#define EN3V3_ON (EN3V3_PORT->BSRR = EN3V3_MASK)
50
#define EN3V3_OFF (EN3V3_PORT->BSRR = (EN3V3_MASK << 16))
51
#define EN3V3_TOGGLE (EN3V3_PORT->ODR ^= EN3V3_MASK)
60
#define SX127X_PARAM_SPI_NSS GPIO_PIN(PORT_B, 0)
61
#define SX127X_PARAM_RESET GPIO_PIN(PORT_A, 4)
62
#define SX127X_PARAM_DIO0 GPIO_PIN(PORT_B, 1)
63
#define SX127X_PARAM_DIO1 GPIO_PIN(PORT_B, 10)
64
#define SX127X_PARAM_DIO2 GPIO_PIN(PORT_B, 11)
65
#define SX127X_PARAM_DIO3 GPIO_PIN(PORT_B, 7)
68
#ifdef __cplusplus
69
}
70
#endif
71
72
#include "
stm32_leds.h
"
73
74
#endif
/* BOARD_H */
stm32_leds.h
Common LED macros.
Generated on Sat Nov 23 2024 01:58:05 by
1.9.8