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

36 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
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
ab6188cea3 cpu/*: add missing include of assert.h 2020-10-22 11:13:08 +02:00
MrKevinWeiss
263aea60cb cpu/lpc1768: Cleanup timer to remove dev_enums 2020-09-22 16:26:01 +02:00
MrKevinWeiss
966527d168 cpu/lpc1768: Fix uart initialization
The pinsel_shift should be multiplied by 2 as each bitfield is 2 bits
2020-09-09 17:44:25 +02:00
MrKevinWeiss
c2e81b3ca7 cpu/lpc1768: Generalize uart to remove dev_enums
Change uart dev 1 to use UART2 on p9 and p10 since p0 and p1 are not accessable
2020-09-09 10:25:37 +02:00
Francisco Molina
061b494348 cpu/lpc1768/periph/gpio.c: fix cpp.check shiftTooManyBitsSigned 2019-11-21 11:58:07 +01:00
Sebastian Meiling
ddcbfce391 cpu/lpc1768: adapt timer to return 0 on success
Adapt periph/timer implementation of lpc1768 based MCUs
to return 0 on success for all functions.
2019-09-11 13:47:32 +02:00
Jose Alamos
840d8714e2 cpu/lpc1768: fix uninitialized variable 2019-05-22 13:42:07 +02:00
Martine Lenders
f1b16fcb32 lpc1768: mark closing #endif for MODULE_PERIPH_GPIO_IRQ 2018-10-09 15:11:00 +02:00
Hauke Petersen
4913dfaa9f cpu/lpc1768/gpio: use gpio_irq feature 2018-09-21 08:18:55 +02:00
5a63331621 cpu/lpc1768: remove useless timer periph file guard 2018-04-16 10:09:03 +02:00
Bas Stottelaar
6f99dce581 cpu: lpc1768: correct number of modes. 2018-04-04 11:37:42 +02:00
Bas Stottelaar
587a41ceab cpu: lpc1768: provide periph_pm. 2018-04-03 18:33:18 +02:00
Bas Stottelaar
6be31d1faa cpu: lpc1768: implement gpio driver 2018-04-03 16:47:25 +02: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
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
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
Hauke Petersen
b23cde98cf cpus: adapted UART implementations to cb type change 2016-03-15 11:02:06 +01:00
nqdinh
5ad659a54a cpu/lpc1768: added cpuid periph driver implementation 2016-03-10 11:01:34 +07:00
Hauke Petersen
b11a3ad74b cpus: adapted timer implementations to API changes 2016-02-29 14:45:00 +01:00
Joakim Nohlgård
8d4fd5a814 cpu/lpc1768: Update to match timer_init API change 2016-02-13 21:29:36 +01:00
Hauke Petersen
68670f038f cpu/lpc1768: 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
mryndzionek
37f03c6f52 lpc1768: propagate the timer setting result up 2015-05-10 15:44:19 +02:00
Hauke Petersen
31a6e81bd9 cpu/lpc1768: fixed UART PCLK selection 2014-12-19 13:47:58 +01:00
Hauke Petersen
765c4f38e5 Merge pull request #2201 from BytesGalore/mbed_lpc1768_uartUSB
board/mbed_lpc1768 changed the serial device to UART0
2014-12-17 10:35:03 +01:00
BytesGalore
c40e5267a6 board/mbed_lpc1768 changed the serial device to UART0
-> enables USB/serial communication
2014-12-17 07:27:28 +01:00
Hauke Petersen
78eed22dd2 cpu/lpc1768: added basic timer implementation 2014-12-16 16:57:31 +01:00
Hauke Petersen
67b4dfd89d cpu/lpc1768: added basic UART driver 2014-12-08 19:48:20 +01:00
Hauke Petersen
9214990aee cpu/lpc1768: heavy clean-up of existing code
- moved to new port structure
- rewrote startup code
- added implementation dummies for UART and timer
- switched to atmel linkerscript
- cleaned up Makefiles
2014-11-20 17:40:57 +01:00