Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
R
RIOT
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD 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
cm-projects
RIOT
Commits
5873fd70
Commit
5873fd70
authored
8 years ago
by
Hauke Petersen
Browse files
Options
Downloads
Patches
Plain Diff
drivers: remove deprecated gpioint interface
parent
8e3975fa
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
drivers/include/gpioint.h
+0
-79
0 additions, 79 deletions
drivers/include/gpioint.h
with
0 additions
and
79 deletions
drivers/include/gpioint.h
deleted
100644 → 0
+
0
−
79
View file @
8e3975fa
/*
* Copyright 2009, Freie Universitaet Berlin (FUB). All rights reserved.
*
* 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_gpioint GPIO IRQ Multiplexer
* @ingroup drivers_periph
* @brief Provides an API to implement interrupt handlers on IO pins.
*
* Multiplexer and interrupt handling must be implemented platform specific.
*
* @note This interface is deprecated, use `periph/gpio.h` instead
*
* @{
*
* @file
* @brief GPIO IRQ Multiplexer interface
*
* @author Michael Baar <michael.baar@fu-berlin.de>
*/
#ifndef GPIOINT_H
#define GPIOINT_H
#include
<stdint.h>
#include
<stdbool.h>
#ifdef __cplusplus
extern
"C"
{
#endif
/*
* @brief GPIO IRQ multiplexer flags
*
* @note We rely on the exact values for the edges.
* @note These flags are extended in hal/drivers/device-gpio.h
*
* @{
*/
#define GPIOINT_DISABLE 0x00
/**< disable interrupt */
#define GPIOINT_RISING_EDGE 0x01
/**< interrupt is generated on rising edge */
#define GPIOINT_FALLING_EDGE 0x02
/**< interrupt is generated on falling edge */
#define GPIOINT_DEBOUNCE 0x04
/**< debounce this interrupt */
/** @} */
/**
* @brief GPIO IRQ callback function type
*/
typedef
void
(
*
fp_irqcb
)(
void
);
/**
* @brief GPIO IRQ handler setup
* @param[in] port CPU specific port number (starting at 0)
* @param[in] bitmask One or more bits for which to set the handler
* @param[in] flags A combination of #GPIOINT_RISING_EDGE and #GPIOINT_FALLING_EDGE
* @param[in] callback A pointer to a handler function
* @retval true successful
* @retval false failed
*
* To enable interrupt handling for a pin flags and callback must be non-zero. To disable interrupt
* handling flags and callback shall be zero.
*/
bool
gpioint_set
(
int
port
,
uint32_t
bitmask
,
int
flags
,
fp_irqcb
callback
);
/**
* @brief Initialize the multiplexer
*/
void
gpioint_init
(
void
);
#ifdef __cplusplus
}
#endif
/** @} */
#endif
/* GPIOINT_H */
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