diff options
author | Gregory Nutt <gnutt@nuttx.org> | 2014-07-05 17:15:38 -0600 |
---|---|---|
committer | Gregory Nutt <gnutt@nuttx.org> | 2014-07-05 17:15:38 -0600 |
commit | 5d0822fd17939ee7bbb36e7092caee0325f442fc (patch) | |
tree | 8e790c56b54aeb3e8e646c917d06a316086a5299 | |
parent | b5cd27e2a1d2869a08ef30c042c8008d94cb0e5f (diff) | |
download | px4-nuttx-5d0822fd17939ee7bbb36e7092caee0325f442fc.tar.gz px4-nuttx-5d0822fd17939ee7bbb36e7092caee0325f442fc.tar.bz2 px4-nuttx-5d0822fd17939ee7bbb36e7092caee0325f442fc.zip |
Clean-up some comments
-rw-r--r-- | nuttx/configs/sama5d4-ek/src/sam_maxtouch.c | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/nuttx/configs/sama5d4-ek/src/sam_maxtouch.c b/nuttx/configs/sama5d4-ek/src/sam_maxtouch.c index ec3348d05..7b5ae344e 100644 --- a/nuttx/configs/sama5d4-ek/src/sam_maxtouch.c +++ b/nuttx/configs/sama5d4-ek/src/sam_maxtouch.c @@ -94,15 +94,15 @@ struct sama5d4ek_tscinfo_s * Private Function Prototypes ****************************************************************************/ -/* IRQ/GPIO access callbacks. These operations all hidden behind - * callbacks to isolate the maXTouch driver from differences in GPIO +/* IRQ/PIO access callbacks. These operations all hidden behind + * callbacks to isolate the maXTouch driver from differences in PIO * interrupt handling by varying boards and MCUs. If possible, * interrupts should be configured on both rising and falling edges * so that contact and loss-of-contact events can be detected. * - * attach - Attach the maXTouch interrupt handler to the GPIO interrupt - * enable - Enable or disable the GPIO interrupt - * clear - Acknowledge/clear any pending GPIO interrupt + * attach - Attach the maXTouch interrupt handler to the PIO interrupt + * enable - Enable or disable the PIO interrupt + * clear - Acknowledge/clear any pending PIO interrupt */ static int mxt_attach(FAR const struct mxt_lower_s *lower, mxt_handler_t isr, @@ -141,15 +141,15 @@ static struct sama5d4ek_tscinfo_s g_mxtinfo = ****************************************************************************/ /**************************************************************************** - * IRQ/GPIO access callbacks. These operations all hidden behind - * callbacks to isolate the maXTouch driver from differences in GPIO + * IRQ/PIO access callbacks. These operations all hidden behind + * callbacks to isolate the maXTouch driver from differences in PIO * interrupt handling by varying boards and MCUs. If possible, * interrupts should be configured on both rising and falling edges * so that contact and loss-of-contact events can be detected. * - * attach - Attach the maXTouch interrupt handler to the GPIO interrupt - * enable - Enable or disable the GPIO interrupt - * clear - Acknowledge/clear any pending GPIO interrupt + * attach - Attach the maXTouch interrupt handler to the PIO interrupt + * enable - Enable or disable the PIO interrupt + * clear - Acknowledge/clear any pending PIO interrupt * ****************************************************************************/ @@ -158,8 +158,8 @@ static int mxt_attach(FAR const struct mxt_lower_s *lower, mxt_handler_t isr, { if (isr) { - /* Just save the address of the handler for now. The new handler will - * be attached when the interrupt is next enabled. + /* Just save the address of the handler and its argument for now. The + * new handler will called via mxt_interrupt() when the interrupt occurs. */ ivdbg("Attaching %p\n", isr); |