1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
RIOT/drivers/st77xx/include/st7735.h
Gunar Schorcht 1c2cce7c66 drivers/st77xx: add st7735 compatibility headers
If a board definition already used the ST7735 driver, `st7735*.h` header files and `ST7735_*` macros were used in the board definitions to define the default configuration parameter set. For backward compatibility these header files are kept and the `ST7735_*` macros are mapped to the `ST77XX_*` macros if they are defined.
2023-09-06 11:52:10 +02:00

58 lines
1.5 KiB
C

/*
* Copyright (C) 2018 Koen Zandberg
* 2021 Francisco Molina
* 2023 Gunar Schorcht
*
* 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.
*/
#if !DOXYGEN /* hide from documentation */
/**
* @defgroup drivers_st7735 ST7735 display driver head files for backward compatibility
* @ingroup drivers_display
*
* @brief Header file for the ST7735 display controller for backward compatibility
*
* @{
*
* @file
*
* @author Koen Zandberg <koen@bergzand.net>
* @author Francisco Molina <francois-xavier.molina@inria.fr>
* @author Gunar Schorcht <gunar@schorcht.net>
*
* If a board definition already used the ST7735 driver, the `st7735.h`
* header file and `ST7735_*` macros are used. This file is kept for
* backward compatibility.
*/
#ifndef ST7735_H
#define ST7735_H
#include "lcd.h"
#include "st77xx.h"
#ifdef __cplusplus
extern "C" {
#endif
/**
* @name ST7735 display rotation modes
* @{
*/
#define ST7735_ROTATION_VERT ST77XX_ROTATION_VERT /**< Vertical mode */
#define ST7735_ROTATION_VERT_FLIP ST77XX_ROTATION_VERT_FLIP /**< Flipped vertical */
#define ST7735_ROTATION_HORZ ST77XX_ROTATION_HORZ /**< Horizontal mode */
#define ST7735_ROTATION_HORZ_FLIP ST77XX_ROTATION_HORZ_FLIP /**< Horizontal flipped */
/** @} */
#ifdef __cplusplus
}
#endif
#endif /* ST7735_H */
/** @} */
#endif /* !DOXYGEN */