mirror of
https://github.com/apache/nuttx.git
synced 2026-05-28 03:45:50 +08:00
MXT interface does not need an IRQ number; SAMA5D4-EK setup omitted I2C frequency
This commit is contained in:
@@ -128,6 +128,7 @@ static struct sama5d4ek_tscinfo_s g_mxtinfo =
|
|||||||
{
|
{
|
||||||
.lower =
|
.lower =
|
||||||
{
|
{
|
||||||
|
.address = (0x4c >> 1),
|
||||||
.frequency = CONFIG_SAMA5D4EK_MXT_I2CFREQUENCY,
|
.frequency = CONFIG_SAMA5D4EK_MXT_I2CFREQUENCY,
|
||||||
|
|
||||||
.attach = mxt_attach,
|
.attach = mxt_attach,
|
||||||
|
|||||||
@@ -123,14 +123,6 @@ struct mxt_lower_s
|
|||||||
uint8_t address; /* 7-bit I2C address (only bits 0-6 used) */
|
uint8_t address; /* 7-bit I2C address (only bits 0-6 used) */
|
||||||
uint32_t frequency; /* I2C frequency */
|
uint32_t frequency; /* I2C frequency */
|
||||||
|
|
||||||
#ifndef CONFIG_MXT_MULTIPLE
|
|
||||||
/* If multiple MXT devices are supported, then an IRQ number must
|
|
||||||
* be provided for each so that their interrupts can be distinguished.
|
|
||||||
*/
|
|
||||||
|
|
||||||
int irq; /* IRQ number received by interrupt handler. */
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/* True: Swap X and Y values */
|
/* True: Swap X and Y values */
|
||||||
|
|
||||||
bool swapxy;
|
bool swapxy;
|
||||||
|
|||||||
Reference in New Issue
Block a user