mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
1d95950ca1
This board is sold by several vendors on AliExpress, Amazon and ebay. It does not have name, but since it comes in the same form-factor and color as the Bluepill line of boards, I think it makes sense to use that name. Flashing is a bit cumbersome as I always had to press the reset button in time when OpenOCD tries to connect to the CPU. There is no dedicated reset pin exposed on the board.
48 lines
852 B
C
48 lines
852 B
C
/*
|
|
* Copyright (C) 2020 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_bluepill-stm32f030c8
|
|
* @{
|
|
*
|
|
* @file
|
|
* @brief Board specific configuration of direct mapped GPIOs
|
|
*
|
|
* @author Benjamin Valentin <benpicco@googlemail.com>
|
|
*/
|
|
|
|
#ifndef GPIO_PARAMS_H
|
|
#define GPIO_PARAMS_H
|
|
|
|
#include "board.h"
|
|
#include "saul/periph.h"
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
/**
|
|
* @brief GPIO pin configuration
|
|
*/
|
|
static const saul_gpio_params_t saul_gpio_params[] =
|
|
{
|
|
{
|
|
.name = "LED",
|
|
.pin = LED0_PIN,
|
|
.mode = GPIO_OUT,
|
|
.flags = SAUL_GPIO_INVERTED,
|
|
},
|
|
};
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif /* GPIO_PARAMS_H */
|
|
/** @} */
|