Changes to the Touchpad Configuration structure
Added field to the driver structure to set PENIRQ pin and port, defines removed
This commit is contained in:
parent
60582cbf35
commit
58ddfd9210
1 changed files with 23 additions and 4 deletions
|
@ -53,17 +53,36 @@
|
||||||
/* Driver types. */
|
/* Driver types. */
|
||||||
/*===========================================================================*/
|
/*===========================================================================*/
|
||||||
|
|
||||||
typedef struct TOUCHPADDriver TOUCHPADDriver;
|
typedef struct _TOUCHPADDriver TOUCHPADDriver;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Structure representing a Touchpad driver.
|
* @brief Structure representing a Touchpad driver.
|
||||||
*/
|
*/
|
||||||
struct TOUCHPADDriver {
|
struct _TOUCHPADDriver {
|
||||||
/*
|
/*
|
||||||
* @brief Pointer to SPI driver.
|
* @brief Pointer to SPI driver.
|
||||||
* @note SPI driver must be enabled in mcu- and halconf.h
|
* @note SPI driver must be enabled in mcuconf.h and halconf.h
|
||||||
*/
|
*/
|
||||||
SPIDriver *spid;
|
SPIDriver *spip;
|
||||||
|
|
||||||
|
/*
|
||||||
|
* @brief Pointer to the SPI configuration structure.
|
||||||
|
* @note The lowest possible speed ~ 1-2MHz is to be used, otherwise
|
||||||
|
* will result in a lot of noise
|
||||||
|
*/
|
||||||
|
SPIConfig *spicfg;
|
||||||
|
|
||||||
|
/*
|
||||||
|
* @brief Touchscreen controller TPIRQ pin GPIO port
|
||||||
|
*/
|
||||||
|
ioportid_t tpIRQPort;
|
||||||
|
|
||||||
|
/*
|
||||||
|
* @brief Touchscreen controller TPIRQ GPIO pin
|
||||||
|
* @note The lowest possible speed ~ 1-2MHz is to be used, otherwise
|
||||||
|
* will result in a lot of noise
|
||||||
|
*/
|
||||||
|
ioportmask_t tpIRQPin;
|
||||||
};
|
};
|
||||||
|
|
||||||
/*===========================================================================*/
|
/*===========================================================================*/
|
||||||
|
|
Loading…
Add table
Reference in a new issue