1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
Commit Graph

41 Commits

Author SHA1 Message Date
Benjamin Valentin
f624eb473a drivers/periph/gpio: state that interrupt callback must not be NULL
This allows us to use `assert(cb != NULL)` inside `gpio_init_int()`
and save a few cycles of interrupt latency.
2021-10-19 21:26:50 +02:00
dc8d32d30e
drivers/periph/gpio: fix typo 'occured' -> 'occurred' 2020-10-02 08:05:55 +02:00
Gunar Schorcht
147b79169c drivers/periph/gpio: add comparison functions
The expandable GPIO API requires the comparison of structured GPIO types. This means that inline functions must be used instead of direct comparisons. For the migration process, drivers and other modules must first be changed so that they use the inline comparison functions.
2020-08-31 13:10:28 +02:00
Benjamin Valentin
8c95198cbb periph/gpio: clarify behavior of gpio_irq_enable()
What happens with events that occured after `gpio_irq_disable()` is
currently not defined.
If they are not cleared, they will generate an interrupt on `gpio_irq_enable()`.

This does not seem like the intended behavior, so make the documentation more
explicit.
2020-08-05 17:41:27 +02:00
Hauke Petersen
3e9ee01103 periph/gpio: add doc on low power implications 2019-10-01 23:09:23 +02:00
Martine Lenders
0598d5bcf1 periph_gpio: comment IRQ #endif correctly 2018-10-09 15:11:45 +02:00
Martine Lenders
a95957e513
Merge pull request #9992 from haukepetersen/fix_periph_gpiofeaturesscope
periph/gpio: fix scope of GPIO_IRQ submodule
2018-10-09 15:10:39 +02:00
Hauke Petersen
bd66184eb2 periph/gpio: re-add irq functions to doxygen 2018-09-21 08:31:09 +02:00
Hauke Petersen
abc11c8e23 periph/gpio: fix scope of GPIO_IRQ submodule
Move the gpio_irq_enable() and gpio_irq_disable() functions
into the scope of the PERIPH_GPIO_IRQ submodule.
2018-09-21 08:30:29 +02:00
Joakim Nohlgård
ace717ee27 drivers: Add dep on periph_gpio_irq in drivers using GPIO IRQ 2018-08-29 08:53:20 +02:00
94c753c07a drivers: doxygen cleanup 2017-09-01 15:12:20 +02:00
Hauke Petersen
3ec75635ba drivers/gpio: improved doc for gpio_init() 2017-06-26 13:39:28 +02:00
0fcc7d3834 cleanup: apply headerguard script output 2017-05-24 17:54:02 +02:00
Hauke Petersen
296ca11a23 drivers/periph: removed GPIO from dev_enums.h 2017-01-16 09:31:24 +01:00
Joakim Nohlgård
bc9e5b218b periph/gpio: Clean up Doxygen text 2016-07-30 08:06:19 +02:00
Hauke Petersen
2515a3f9ef drivers/gpio: changed the way the mode is configured
- joined pushpull and dir into one single mode parameter
- with this enabled the configuration of open-drain mode
2016-03-17 14:37:24 +01:00
Hauke Petersen
085cd48e3d drivers/gpio: changed default type to unsigned 2016-02-17 10:27:10 +01:00
Hauke Petersen
555c010623 drivers/gpio: added default ISR context struct 2016-01-27 17:00:23 +01:00
PeterKietzmann
d251b604ad periph/gpio: extend gpio API doc 2015-12-22 16:10:37 +01:00
Oleg Hahm
426816b9ae drivers: fix pedantic compiler warnings 2015-12-07 20:28:52 +01:00
Hauke Petersen
77b790375f drivers/periph: some doxygen fixes
- added todos to periph module description
- repaired group names (e.g. s/driver_xx/drivers_xx/)
2015-11-19 15:57:36 +01:00
Hauke Petersen
06743ba29e drivers/periph/gpio: fixed includes 2015-10-27 13:29:37 +01:00
Hauke Petersen
0ce94291ac drivers/gpio: renamed GPIO(x,y) macro to GPIO_PIN 2015-10-13 11:40:03 +02:00
Hauke Petersen
4a4ee44abc drivers/gpio: added GPIO_UNDEF define 2015-06-14 16:12:20 +02:00
Hauke Petersen
2cc2d9f740 drivers: adjusted drivers to changed GPIO interface 2015-06-12 19:10:29 +02:00
Hauke Petersen
b49f11bed7 drivers/gpio: overhaul of the periph GPIO driver
- merged init_in and init_out
- renamed init_int to init_exti
- made datatypes overwritable
2015-06-12 19:09:32 +02:00
Alexandru Caciulescu
451bf78549 drivers/include/periph: Repair header file include guards 2015-03-24 17:55:42 +02:00
Ludwig Ortmann
da43a5e7a4 doc: periph: various fixes and cleanup
- unify file/module @brief
- distinct @file section more visibly in source
- provide missing @brief's
- move module details/notes from file to module sections
- provide missing macro definition for building
2014-12-04 10:28:45 +01:00
Ludwig Ortmann
5523ec67f3 doc: make peripheral interfaces modules
also remove `@file` parameters
2014-10-25 15:37:04 +02:00
BytesGalore
f94623ae0f drivers: add extern "C" to header files 2014-10-21 15:30:03 +02:00
Ludwig Ortmann
b3266fee1a drivers/periph/gpio: fix #ifdef instead of #if 2014-10-18 07:40:27 +02:00
Ludwig Ortmann
cd2ea516b7 drivers/periph/gpio: increase possible gpio number 2014-10-01 18:42:34 +02:00
Ludwig Ortmann
2439bd839c doc: fix more license headers
Remove some cruft, set correct lgpl versions, update to lgpl where
this had been overlooked in the past, fix odd comment style...
2014-08-27 19:20:49 +02:00
Hauke Petersen
aa3e40c9b1 drivers: improved the low-level GPIO driver IF
- removed UNDEFINED value from device enum
- changed most functions to void return value
- add parameter for interrupt callback
2014-08-15 12:23:32 +02:00
Martin Lenders
1528857feb Make filenames in periph documentation unique
This makes the filenames in the documentation of low-lever peripheral
drivers unique, so doxygen stops complaining about duplicates.
2014-07-18 14:59:46 +02:00
Hauke Petersen
133a106133 driver - gpio: small adjustments 2014-07-04 10:28:40 +02:00
Hauke Petersen
b2fad213d7 drivers - gpio: expanded gpio driver interface
- added functions for en|disabling a pins interrupt
2014-07-03 21:51:37 +02:00
Martin Lenders
2362623490 Fix trailing whitespaces
Fixes #1138
2014-05-26 14:54:23 +02:00
Hauke Petersen
7b96e488ff drivers: fixes to the low-level GPIO driver
- fixed doxygen comments
- added GPIO_UNDEFINED value
- added return values to all functions
2014-05-05 21:29:35 +02:00
Hauke Petersen
4d58a1e626 Fixed spelling errors 2014-03-26 15:49:04 +01:00
Hauke Petersen
d1093fccd9 Initial import of low-level GPIO driver interface 2014-03-26 15:49:04 +01:00