1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
RIOT/cpu/atmega_common/periph
Karl Fessel d9aac6a7d4 atmega_common/gpio_init: fix pull-up settings for GPIO_IN_PU
This Patch makes gpio_init precalculate the pin mask once,
This Patch makes gpio_init of atmega_common configure the pin as an input and configure the pullup in the case of GPIO_IN_PU.
GPIO_IN_PU and GPIO_IN need to change pullup so they need to change output (this is coverd by the not touching outputs is not guaranteed statement)
(this is a special case for atmega the pull_up is configured by writing 1 to the port_register which is also the level of the output if the pin is configured to output).

This fix makes it more compliant to comments in periph/gpio.h
2018-08-27 20:34:10 +02:00
..
adc.c cpu/atmega_common: Support for ATmega1284P 2018-03-25 14:24:40 -04:00
eeprom.c cpu/atmega_common: add support for eeprom periph interface 2018-05-24 14:07:55 +02:00
gpio.c atmega_common/gpio_init: fix pull-up settings for GPIO_IN_PU 2018-08-27 20:34:10 +02:00
i2c.c cpu/atmega_common: adapt to new i2c api 2018-07-25 12:01:39 +02:00
Makefile cpu: make use of Makefile.periph 2017-11-06 12:01:19 +01:00
pm.c cpu/atmega-common: Adjustments Jiminy-mega256rfr2 2018-03-02 13:33:26 +01:00
spi.c cpu/atmega_common: Support for ATmega1284P 2018-03-25 14:24:40 -04:00
timer.c atmega timer: Interrupt Pin 2018-07-18 20:48:17 +02:00
uart.c cpu/atmega_common/periph/uart.c: uncrustified 2018-06-14 21:47:33 +02:00