Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

drivers: rename st7735 to more generic st77xx #19825

Merged
merged 13 commits into from
Sep 6, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
drivers: rename st7735 driver to more generic st77xx
  • Loading branch information
gschorcht committed Sep 6, 2023
commit b5a7101f5ee532524edcc9fad10831265a502aae
2 changes: 1 addition & 1 deletion drivers/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ rsource "dsp0401/Kconfig"
rsource "hd44780/Kconfig"
rsource "ili9341/Kconfig"
rsource "lcd/Kconfig"
rsource "st7735/Kconfig"
rsource "st77xx/Kconfig"
rsource "touch_dev/Kconfig"
endmenu # Display Device Drivers

Expand Down
4 changes: 2 additions & 2 deletions drivers/Makefile.dep
Original file line number Diff line number Diff line change
Expand Up @@ -212,8 +212,8 @@ ifneq (,$(filter stmpe811_%,$(USEMODULE)))
USEMODULE += stmpe811
endif

ifneq (,$(filter st7789,$(USEMODULE)))
USEMODULE += st7735
ifneq (,$(filter st77%,$(USEMODULE)))
USEMODULE += st77xx
endif

ifneq (,$(filter sx126%,$(USEMODULE)))
Expand Down
115 changes: 0 additions & 115 deletions drivers/include/st7735.h

This file was deleted.

95 changes: 95 additions & 0 deletions drivers/include/st77xx.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,95 @@
/*
* 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.
*/

/**
* @defgroup drivers_st77xx ST77xx display driver
* @ingroup drivers_display
*
* @brief Driver for displays with a ST77xx display controller
*
* The ST77xx display controller driver is a driver for small RGB displays
* using a ST77xx display controller. The driver supports ST7735, ST7789 and
* ST7796. The support of the respective controller is enabled by the
* corresponding module `st7735`, `st7789` or `st7796`. The ST77xx controller
* used by a display must be specified in the board definition in parameter
* @ref lcd_params_t::cntrl or as macro @ref ST77XX_PARAM_CNTRL if the
* default parameter set @ref ST77XX_PARAMS is used.
*
* The driver uses the SPI serial interface to communicate with the display
* controller.
*
* The device requires colors to be send in big endian RGB-565 format. The
* @ref CONFIG_LCD_LE_MODE compile time option can switch this, but only use this
* when strictly necessary. This option will slow down the driver as it
* certainly can't use DMA anymore, every short has to be converted before
* transfer.
*
* @{
*
* @file
*
* @author Koen Zandberg <koen@bergzand.net>
* @author Francisco Molina <francois-xavier.molina@inria.fr>
* @author Gunar Schorcht <gunar@schorcht.net>
*/

#ifndef ST77XX_H
#define ST77XX_H

#include "lcd.h"

#ifdef MODULE_DISP_DEV
#include "disp_dev.h"
#endif

#ifdef __cplusplus
extern "C" {
#endif

/**
* @name ST77xx display rotation modes
* @{
*/
#define ST77XX_ROTATION_VERT 0 /**< Vertical mode */
#define ST77XX_ROTATION_VERT_FLIP LCD_MADCTL_MX | \
LCD_MADCTL_MY /**< Flipped vertical */
#define ST77XX_ROTATION_HORZ LCD_MADCTL_MV | \
LCD_MADCTL_MX /**< Horizontal mode */
#define ST77XX_ROTATION_HORZ_FLIP LCD_MADCTL_MV | \
LCD_MADCTL_MY /**< Horizontal flipped */
/** @} */

/**
* @brief ST77xx display controller variants
*/
enum {
ST77XX_CNTRL_ST7735,
ST77XX_CNTRL_ST7789,
ST77XX_CNTRL_ST7796,
};

/**
* @brief Device descriptor for a ST77xx display
*
*/
typedef struct {
lcd_t dev; /**< Pointer to the common lcd device */
} st77xx_t;

/**
* @brief LCD device operations table
*/
extern const lcd_driver_t lcd_st77xx_driver;

#ifdef __cplusplus
}
#endif
#endif /* ST77XX_H */
/** @} */
72 changes: 0 additions & 72 deletions drivers/st7735/Kconfig

This file was deleted.

5 changes: 0 additions & 5 deletions drivers/st7735/Makefile.dep

This file was deleted.

4 changes: 0 additions & 4 deletions drivers/st7735/Makefile.include

This file was deleted.

47 changes: 0 additions & 47 deletions drivers/st7735/include/st7735_internal.h

This file was deleted.

Loading