2017-03-07 00:17:19 +01:00
|
|
|
/*
|
|
|
|
* Copyright (C) 2017 Inria
|
|
|
|
* 2017 OTAKeys
|
2017-11-16 18:10:48 +01:00
|
|
|
* 2018 Freie Universität Berlin
|
2017-03-07 00:17:19 +01:00
|
|
|
*
|
|
|
|
* 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.
|
|
|
|
*/
|
|
|
|
|
|
|
|
/**
|
2018-01-25 07:45:08 +01:00
|
|
|
* @defgroup boards_common_nucleo144 STM32 Nucleo-144
|
|
|
|
* @ingroup boards
|
|
|
|
* @brief Support for STM32 Nucleo-144 boards
|
2017-03-07 00:17:19 +01:00
|
|
|
* @{
|
|
|
|
*
|
|
|
|
* @file
|
|
|
|
* @brief Common pin definitions and board configuration options
|
|
|
|
*
|
|
|
|
* @author Alexandre Abadie <alexandre.abadie@inria.fr>
|
|
|
|
* @author Vincent Dupont <vincent@otakeys.com>
|
2017-06-20 21:11:34 +02:00
|
|
|
* @author Sebastian Meiling <s@mlng.net>
|
2017-11-16 18:10:48 +01:00
|
|
|
* @author Hauke Petersen <hauke.petersen@fu-berlin.de>
|
2017-03-07 00:17:19 +01:00
|
|
|
*/
|
|
|
|
|
2017-11-16 18:10:48 +01:00
|
|
|
#ifndef BOARD_H
|
|
|
|
#define BOARD_H
|
2017-03-07 00:17:19 +01:00
|
|
|
|
2017-11-16 18:10:48 +01:00
|
|
|
#include "board_nucleo.h"
|
2017-04-09 19:10:51 +02:00
|
|
|
#include "arduino_pinmap.h"
|
2017-03-07 00:17:19 +01:00
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
|
|
|
/**
|
2017-04-10 19:04:32 +02:00
|
|
|
* @name LED pin definitions and handlers
|
2017-03-07 00:17:19 +01:00
|
|
|
* @{
|
|
|
|
*/
|
2020-09-28 17:01:41 +02:00
|
|
|
#if defined(CPU_MODEL_STM32L496ZG) || defined(CPU_MODEL_STM32L4R5ZI) || \
|
|
|
|
defined(CPU_MODEL_STM32L552ZE)
|
2022-08-08 09:55:20 +02:00
|
|
|
#define LED0_PIN_NUM 7
|
|
|
|
#define LED0_PORT_NUM PORT_C
|
2017-05-20 17:55:49 +02:00
|
|
|
#else
|
2022-08-08 09:55:20 +02:00
|
|
|
#define LED0_PIN_NUM 0
|
|
|
|
#define LED0_PORT_NUM PORT_B
|
2017-05-20 17:55:49 +02:00
|
|
|
#endif
|
2017-03-07 00:17:19 +01:00
|
|
|
|
2022-08-08 09:55:20 +02:00
|
|
|
#define LED1_PIN_NUM 7
|
|
|
|
#define LED1_PORT_NUM PORT_B
|
2017-03-07 00:17:19 +01:00
|
|
|
|
2020-09-28 17:01:41 +02:00
|
|
|
#if defined(CPU_MODEL_STM32L552ZE)
|
2022-08-08 09:55:20 +02:00
|
|
|
#define LED2_PIN_NUM 9
|
|
|
|
#define LED2_PORT_NUM PORT_A
|
2020-09-28 17:01:41 +02:00
|
|
|
#else
|
2022-08-08 09:55:20 +02:00
|
|
|
#define LED2_PIN_NUM 14
|
|
|
|
#define LED2_PORT_NUM PORT_B
|
2020-09-28 17:01:41 +02:00
|
|
|
#endif
|
2017-03-07 00:17:19 +01:00
|
|
|
/** @} */
|
|
|
|
|
|
|
|
/**
|
2018-04-16 14:46:43 +02:00
|
|
|
* @name User button
|
2017-06-20 21:11:34 +02:00
|
|
|
* @{
|
2017-03-07 00:17:19 +01:00
|
|
|
*/
|
2017-06-20 21:11:34 +02:00
|
|
|
#define BTN0_PIN GPIO_PIN(PORT_C, 13)
|
|
|
|
#define BTN0_MODE GPIO_IN_PD
|
|
|
|
/** @} */
|
2017-03-07 00:17:19 +01:00
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
2022-08-08 09:55:20 +02:00
|
|
|
#include "stm32_leds.h"
|
|
|
|
|
2017-11-16 18:10:48 +01:00
|
|
|
#endif /* BOARD_H */
|
2017-03-07 00:17:19 +01:00
|
|
|
/** @} */
|