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

57 Commits

Author SHA1 Message Date
Marian Buschsieweke
c2c2cc8592
drivers/periph_gpio: let gpio_read() return bool
Since https://github.com/RIOT-OS/RIOT/pull/20935 gpio_write()
uses a `bool` instead of an `int`. This does the same treatment for
`gpio_read()`.

This does indeed add an instruction to `gpio_read()` implementations.
However, users caring about an instruction more are better served with
`gpio_ll_read()` anyway. And `gpio_read() == 1` is often seen in
newcomer's code, which would now work as expected.
2024-10-23 13:24:09 +02:00
Benjamin Valentin
4627f66caa drivers/periph/gpio: make gpio_write() take a bool 2024-10-22 16:39:48 +02:00
Francisco
a1cbcc9ede
Merge pull request #15902 from maribu/spi-api-change-1
drivers/periph_spi: let spi_acquire return void
2021-09-02 08:50:56 +02:00
Marian Buschsieweke
f04b522601
cpu/periph_spi: update implementations to new API
Make all spi_acquire() implementations return `void` and add assertions to
check for valid parameters, where missing.
2021-09-01 21:38:40 +02:00
Jan Romann
4384795cb9
treewide: Remove excessive newlines 2021-08-13 19:50:38 +02:00
Marian Buschsieweke
125c892c03
drivers/periph/timer: Use uint32_t for frequency
For all currently supported platforms `unsigned long` is 32 bit in width. But
better use `uint32_t` to be safe.
2020-10-30 22:02:12 +01:00
Bas Stottelaar
22243aec7a cpu/*: realign ENABLE_DEBUG 2020-10-23 00:46:26 +02:00
Bas Stottelaar
ab6188cea3 cpu/*: add missing include of assert.h 2020-10-22 11:13:08 +02:00
MrKevinWeiss
7c3082a7a3 cpu/lm4f120: Update timer macros to timer_config_t 2020-09-22 16:26:01 +02:00
MrKevinWeiss
11465c941d cpu/lm4f120: Remove dev_enums dependency 2020-09-09 10:25:37 +02:00
Benjamin Valentin
2509c206ee cpu/lm4f120: GPIO: clear stale interrupt 2020-08-13 10:12:21 +02:00
Marian Buschsieweke
c332501eb8
cpu/lm4f120/periph: adc_sample() now returns int32_t 2020-01-10 14:13:14 +01:00
Francois Berder
4a31f94cfc many typo fixes
Signed-off-by: Francois Berder <18538310+francois-berder@users.noreply.github.com>
2019-11-23 22:39:07 +01:00
Sebastian Meiling
ddd97001c1 cpu/lm4f120: fix uninit var in periph/timer 2019-09-11 14:15:51 +02:00
Sebastian Meiling
fd900357fc cpu/lm4f120: adapt timer to return 0 on success
Adapt periph/timer implementation of lm4f120 based MCUs
to return 0 on success for all functions.
2019-09-11 13:46:55 +02:00
Martine Lenders
896212e320 lm4f120: mark closing #endif for MODULE_PERIPH_GPIO_IRQ 2018-10-09 15:11:00 +02:00
Hauke Petersen
1a7978000e cpu/lm4f120/gpio: use gpio_irq feature 2018-09-21 08:18:42 +02:00
5d633cd6d1 cpu/lm4f120: drop useless periph timer guards 2018-06-21 08:56:55 +02:00
smlng
7309171303 build: fix unused parameter errors
cpu, sam0_common: fix unused parameter in periph/spi
        cpu, kinetis_common: fix unused parameter in periph/spi
        cpu, cc2538: fix unused param in periph/i2c
        cpu, cc2538: fix unused param in periph/spi
        cpu, sam3: fix unused param in periph/spi
        cpu, stm32_common: fix unused param in periph/pm
        cpu, stm32f3: fix unused params in periph/i2c
        cpu, nrf5x_common: fix unused param in periph/gpio
        cpu, nrf5x_common: fix unused param in periph/spi
        cpu, lpc2387: fix unused params in periph/spi
        cpu, cc2538: fix unused params in radio/netdev
        cpu, cc2650: fix unused params in periph/uart
        cpu, lm4f120: fix unused param in periph/spi
        cpu, lm4f120: fix unused params in periph/timer
        cpu, lm4f120: fix unused params in periph/uart
        cpu, stm32_common: fix unused params in periph/dac
        cpu, stm32l0: fix unused params in periph/i2c
        cpu, msp430fxyz: fix unused params in periph/uart
        cpu, mips: fix unused params
        cpu, cc430: fix unused-params in periph/timer
        cpu, msp430fxyz: fix unused params in periph/spi
        drivers, cc2420: fix unused param
        cpu, mips32r2_common: fix unused params in periph/timer
        cpu, cc2538: fix unused-param in periph/i2c
        cpu, mips32r2_common: fix unused-param in periph/timer
        cpu, msp430fxyz: fix unused params in periph/timer
        cpu, atmega_common: fix unused params in periph/spi
        driver, nrfmin: fix unused params
        cpu, cc2538_rf: fix unused params
        driver, netdev_ieee802514: fix unused param
        cpu, mip_pic32m: fix unused params
        cpu, lpc2387: fix unused params in periph/pwm
        tests/driver_sdcard_spi: fix unused params
        cpu, sam3: fix unused param in periph/pwm
        tests/driver_dynamixel: fix unused params, and style issues
        cpu, cc430: fix unused param in periph/rtc
        cpu, atmega_common: fix unused params in periph/i2c
2017-11-28 14:36:01 +01:00
a20745b6c5 cpu: make use of Makefile.periph 2017-11-06 12:01:19 +01:00
Francisco Acosta
f2efd88f98 Merge pull request #7129 from haukepetersen/opt_periph_sharetimerset
cpu: add and use shared code for timer_set()
2017-08-01 15:09:48 +02:00
Francisco Acosta
d31d870b26 Merge pull request #5412 from dkm/pr/spi
cpu/lm4f120: SPI support
2017-06-28 18:09:51 +02:00
Marc Poulhiès
685b42c9a2 cpu/lm4f120: SPI support 2017-06-28 16:54:37 +02:00
smlng
692cf96297 doc: fix doxygen grouping of cpu periph drivers 2017-06-26 14:42:11 +02:00
Hauke Petersen
a1499f4190 cpu: add and use shared code for timer_set() 2017-06-02 12:21:56 +02:00
Joakim Nohlgård
fe75996cbc cpu/lm4f120: Remove stub cpuid
NVIC_CPUID is not a unique device ID, it is the Cortex-M core family ID.
2017-04-05 09:03:49 +02:00
Marc Poulhiès
c3e46831da cpu/lm4f120: fix gpio isr
- add missing call to cortex_isr_end()
- clear IT as close as possible to its handler.

Signed-off-by: Marc Poulhiès <dkm@kataplop.net>
2017-03-29 09:37:42 +02:00
Joakim Nohlgård
5f63bd38a4 cpu/lm4f120: Fix cppcheck warning 2017-02-16 17:12:23 +01:00
Oleg Hahm
d0316fa7ae periph timer: remove timer_irq_(en|dis)able 2017-01-14 15:34:53 +01:00
Hauke Petersen
3a00fe8e49 cpus: make use of cortexm_isr_end() 2016-12-21 11:28:46 +01:00
Hauke Petersen
2eebf36eb2 cpu/uart: make use of named return values 2016-10-28 10:32:00 +02:00
Marc Poulhiès
788f9f9e50 cpu/lm4f120: fix ADC pin mapping
fix GPIO pin mapping for ADC_0

Signed-off-by: Marc Poulhiès <dkm@kataplop.net>
2016-04-11 12:39:52 +02:00
Joakim Nohlgård
169fa2ec94 cpu/lm4f120: remove unused _port_addr function in gpio.c 2016-03-21 08:47:56 +01:00
Hauke Petersen
a7790625a1 cpu/lm4f120: adapted GPIO driver 2016-03-17 14:55:30 +01:00
Hauke Petersen
b23cde98cf cpus: adapted UART implementations to cb type change 2016-03-15 11:02:06 +01:00
Hauke Petersen
432f033384 cpu/lm4f120: reworked ADC implementation 2016-03-14 13:06:25 +01:00
Marc Poulhiès
d0fb8adf45 cpu/lm4f120: ADC support
Only ADC_0 and no precision support.

Signed-off-by: Marc Poulhiès <dkm@kataplop.net>
2016-03-09 13:24:31 +01:00
Hauke Petersen
b11a3ad74b cpus: adapted timer implementations to API changes 2016-02-29 14:45:00 +01:00
Marc Poulhiès
8f0a9ddf6f cpu/lm4f120: GPIO support 2016-02-23 15:12:53 +01:00
Joakim Nohlgård
4a873d4061 cpu/lm4f120: Update to match timer_init API change 2016-02-13 21:29:36 +01:00
Joakim Nohlgård
068a4e4195 cpu/lm4f120: Remove unused static lookup table 2016-02-11 15:14:07 +01:00
Hauke Petersen
940097336a cpu: cleanup and unification of CPUID implementations
- moved definition of CPUID_LEN to periph_cpu.h
- fixed some doxygen
- simplyfied some implementations
2016-02-08 14:36:03 +01:00
Marc
96444d632e cpu/lm4f120: reworking timer 2015-12-02 13:58:23 +01:00
Hauke Petersen
14796f2351 cpu/lm4f120: adapted UART driver 2015-10-27 14:59:38 +01:00
Joakim Nohlgård
cbaeccdb90 periph/timer: Drop timer_reset 2015-10-17 20:11:03 +02:00
Oleg Hahm
d664f96e61 lm4f120: removed superfluous stellaris debug.h 2015-09-20 01:51:47 +02:00
Rakendra Thapa
da91eba1ca Converting C++ style coding to C style 2015-07-24 08:59:55 +05:30
rakendrathapa
3761ebcc21 VariableScope fix: Reducing scope of local var 2015-07-24 08:59:54 +05:30
Rakendra Thapa
aa30ecd04f Interrupt file to include isr correctly. 2015-07-24 08:59:54 +05:30
Rakendra Thapa
38d70a3356 Remove trailing whitespace_3 2015-07-24 08:59:54 +05:30