mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
f9aab53e16
This application uses `soft_uart` to bit-bang the name of a number of configured GPIO pins via said pins at 9600 Bd. This way attaching an USB UART bridge to one pin at a time easily reveals which MCU GPIO pin a given pin on a board corresponds to. This is useful when no schematic and no silkscreen labeling is available, or when the information is misleading or outright incorrect (looking at the E180-ZG120B-TB).
44 lines
812 B
C
44 lines
812 B
C
/*
|
|
* Copyright (C) 2024 Marian Buschsieweke
|
|
*
|
|
* 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 tests_periph_uart_locate_pins
|
|
* @{
|
|
*
|
|
* @file
|
|
* @brief Override "soft_uart_params.h" to conserve memory when
|
|
* changing the pin configuration
|
|
*
|
|
* @author Marian Buschsieweke <marian.buschsieweke@posteo.net>
|
|
*
|
|
* @}
|
|
*/
|
|
|
|
#ifndef SOFT_UART_PARAMS_H
|
|
#define SOFT_UART_PARAMS_H
|
|
|
|
#include "soft_uart.h"
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
/**
|
|
* @brief Sotware UART port descriptor array
|
|
*/
|
|
extern soft_uart_conf_t soft_uart_config[];
|
|
|
|
#define SOFT_UART_NUMOF 1
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif /* SOFT_UART_PARAMS_H */
|
|
/** @} */
|