Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
NuttX RTOS
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container Registry
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
f4grx
NuttX RTOS
Commits
583dad64
Commit
583dad64
authored
8 years ago
by
Gregory Nutt
Browse files
Options
Downloads
Patches
Plain Diff
TCA64xx: Remove some unused kruft
parent
9d9ff447
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
drivers/ioexpander/tca64xx.h
+1
-24
1 addition, 24 deletions
drivers/ioexpander/tca64xx.h
include/nuttx/ioexpander/tca64xx.h
+2
-10
2 additions, 10 deletions
include/nuttx/ioexpander/tca64xx.h
with
3 additions
and
34 deletions
drivers/ioexpander/tca64xx.h
+
1
−
24
View file @
583dad64
/********************************************************************************************
* drivers/ioexpander/tca64.h
*
* Copyright (C) 201
5
Gregory Nutt. All rights reserved.
* Copyright (C) 201
6
Gregory Nutt. All rights reserved.
* Author: Sebastien Lorquet <sebastien@lorquet.fr>
*
* References:
...
...
@@ -166,29 +166,6 @@
#define TCA64XX_IRQ_TYPE_EDGE 0x00000000
#define TCA64XX_IRQ_TYPE_LEVEL 0x00000001
#define tca64xx_irq_type_is_level(handle, gpio) \
(tca64xx_get_gpio_triggering_type(handle, gpio) == TCA64XX_IRQ_TYPE_LEVEL)
#define tca64xx_irq_type_is_edge(handle, gpio) \
(tca64xx_get_gpio_triggering_type(handle, gpio) == TCA64XX_IRQ_TYPE_EDGE)
#define tca64xx_irq_edge_trigger_is_both(handle, gpio) \
(tca64xx_get_gpio_triggering_level(handle, gpio) == \
TCA64XX_IRQ_TYPE_EDGE_BOTH)
#define tca64xx_irq_edge_trigger_is_falling(handle, gpio) \
(tca64xx_get_gpio_triggering_level(handle, gpio) == \
TCA64XX_IRQ_TYPE_EDGE_FALLING)
#define tca64xx_irq_edge_trigger_is_rising(handle, gpio) \
(tca64xx_get_gpio_triggering_level(handle, gpio) == \
TCA64XX_IRQ_TYPE_EDGE_RISING)
#define tca64xx_irq_level_trigger_is_low(handle, gpio) \
(tca64xx_get_gpio_triggering_level(handle, gpio) == \
TCA64XX_IRQ_TYPE_LEVEL_LOW)
#define tca64xx_irq_level_trigger_is_high(handle, gpio) \
(tca64xx_get_gpio_triggering_level(handle, gpio) == \
TCA64XX_IRQ_TYPE_LEVEL_HIGH)
#define WORKER_DEFPRIO 50
#define WORKER_STACKSIZE 1024
#define TCA64XX_POLLDELAY (CONFIG_TCA64XX_INT_POLLDELAY / USEC_PER_TICK)
#define TCA64_LEVEL_SENSITIVE(d,p) \
...
...
This diff is collapsed.
Click to expand it.
include/nuttx/ioexpander/tca64xx.h
+
2
−
10
View file @
583dad64
...
...
@@ -36,8 +36,8 @@
*
****************************************************************************/
#ifndef _
TSB
_TCA64XX_H
_
#define _
TSB
_TCA64XX_H
_
#ifndef _
_INCLUDE_NUTTX_IOEXPANDER
_TCA64XX_H
#define _
_INCLUDE_NUTTX_IOEXPANDER
_TCA64XX_H
/****************************************************************************
* Included Files
...
...
@@ -46,14 +46,6 @@
#include
<nuttx/config.h>
#include
<stdint.h>
/****************************************************************************
* Pre-processor Definitions
****************************************************************************/
/* Unused IO line for irq, reset. */
#define TCA64XX_IO_UNUSED (1 << 31)
/****************************************************************************
* Public Types
****************************************************************************/
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment