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

3749 Commits

Author SHA1 Message Date
Silke Hofstra
58e39da255 nrf5x_common: gpio: fix port 1 functionality
Pins on GPIO port 1 were not correctly set.
This is resolved by using the (previously unused) pin_num function.
2018-10-12 18:12:22 +02:00
Silke Hofstra
8efeb4a4f1 Revert "Merge pull request #9699 from miri64/nrf5x_common/fix/gpio-unused-function"
This reverts commit 2d10390b56, reversing
changes made to 2f480efb60.
2018-10-12 17:46:43 +02:00
cladmi
e0a5860bb7
cpu/stm32_common: remove inadapted periph_flash_common
The `periph_flash_common` feature was only defined here to trigger
inclusion of a source file with common functions.
It even only defines private symbols `_lock` and `_unlock` so no reason
to expose it to the build system.
And in practice, all stm cpus providing `periph_flashpage` or
`periph_eeprom` were required to provide `periph_flash_common` to allow
including it.

The previous implementation was only parsing in the modules were in
`FEATURES_REQUIRED` wich did not take cases of `FEATURES_OPTIONAL` into
account.
And also, in the same time, as the dependencies was declared in
`Makefile.include` it was processed before `Makefile.dep` so never handled
cases where a module could depend on `periph_flashpage` or
`periph_eeprom` feature.

It is replaced by selecting the common source file when module using it
are included.

The now useless feature `periph_flash_common` is removed from
`FEATURES_PROVIDED`.
2018-10-11 15:20:44 +02:00
cladmi
d8080a66e4
cpu/stm32_common: Do not use USEMODULE to select i2c implem
`cpu/stm32_common/Makefile.dep` was never included by the global
`Makefile.dep`, so declaring this `USEMODULE +=` here was never shown to
the build system and never exported as `MODULE_PERIPH_I2C_X` variables.

In fact, `USEMODULE` was only used to trigger the `periph.mk`/`SUBMODULES`
mechanism to add matching source files names to `SRC` and so select
the implementation for each CPU type.

It is replaced by just explicitly selecting the right source file.
2018-10-11 15:20:25 +02:00
Hauke Petersen
5f50db07e8 misc: use correct hauke.petersen@fu email address 2018-10-11 12:20:37 +02:00
Kevin "Bear Puncher" Weiss
9a75ee0d47
Merge pull request #10127 from gschorcht/esp8266_i2c_fix
cpu/esp8266: improvements of I2C implementation
2018-10-10 17:13:34 +02:00
Gunar Schorcht
4fcfb7ca06 cpu/esp8266: i2c improvements
The commit
- improves the timing of the SDA and SCL signals that fixes communication problems with some slaves (#10115),
- introduces the internal function _i2c_clear which clears the bus when SDA line is locked at LOW, and
- renames internal _i2c_*_sda and _i2c_*_scl functions to function names that are more clear, e.g., _i2c_clear_sda to _i2c_sda_low.
2018-10-10 12:17:20 +02:00
Martine Lenders
7994f35c7a stm32f1: mark closing #endif for MODULE_PERIPH_GPIO_IRQ 2018-10-09 15:11:01 +02:00
Martine Lenders
92c5a7824a stm32_common: mark closing #endif for MODULE_PERIPH_GPIO_IRQ 2018-10-09 15:11:00 +02:00
Martine Lenders
98ddcdc783 sam3: mark closing #endif for MODULE_PERIPH_GPIO_IRQ 2018-10-09 15:11:00 +02:00
Martine Lenders
95819c660b sam0_common: mark closing #endif for MODULE_PERIPH_GPIO_IRQ 2018-10-09 15:11:00 +02:00
Martine Lenders
67122b51f3 nrf5x_common: mark closing #endif for MODULE_PERIPH_GPIO_IRQ 2018-10-09 15:11:00 +02:00
Martine Lenders
0ed57df4b5 lpc2387: mark closing #endif for MODULE_PERIPH_GPIO_IRQ 2018-10-09 15:11:00 +02:00
Martine Lenders
f1b16fcb32 lpc1768: mark closing #endif for MODULE_PERIPH_GPIO_IRQ 2018-10-09 15:11:00 +02:00
Martine Lenders
896212e320 lm4f120: mark closing #endif for MODULE_PERIPH_GPIO_IRQ 2018-10-09 15:11:00 +02:00
Martine Lenders
53a9797e56 kinetis: mark closing #endif for MODULE_PERIPH_GPIO_IRQ 2018-10-09 15:11:00 +02:00
Martine Lenders
769bf572a0 fe310: mark closing #endif for MODULE_PERIPH_GPIO_IRQ 2018-10-09 15:11:00 +02:00
Martine Lenders
aa0f93067f ezr32wg: mark closing #endif for MODULE_PERIPH_GPIO_IRQ 2018-10-09 15:11:00 +02:00
Martine Lenders
ce12d4cefb esp8266: mark closing #endif for MODULE_PERIPH_GPIO_IRQ 2018-10-09 15:11:00 +02:00
Martine Lenders
ff54112f82 efm32: mark closing #endif for MODULE_PERIPH_GPIO_IRQ 2018-10-09 15:10:59 +02:00
Martine Lenders
4431f8ee0a cc26x0: mark closing #endif for MODULE_PERIPH_GPIO_IRQ 2018-10-09 15:10:59 +02:00
Martine Lenders
73061ae70e cc2538: mark closing #endif for MODULE_PERIPH_GPIO_IRQ 2018-10-09 15:10:59 +02:00
Martine Lenders
0eebda0958 atmega_common: mark closing #endif for MODULE_PERIPH_GPIO_IRQ 2018-10-09 15:10:59 +02:00
Martine Lenders
4e92c2a424
Merge pull request #10007 from haukepetersen/fix_gpioirq_fe310
cpu/fe310/gpio: use gpio_irq feature
2018-10-09 14:22:43 +02:00
Martine Lenders
328d305215
Merge pull request #10001 from haukepetersen/fix_gpioirq_esp8266
cpu/esp8266/gpio: use gpio_irq feature
2018-10-09 13:40:48 +02:00
Francisco Acosta
5d9b980769
Merge pull request #9993 from haukepetersen/fix_gpioirq_ezr32wg
cpu/ezr32wg/gpio: use gpio_irq feature
2018-10-09 13:28:30 +02:00
Martine Lenders
2f944f4c79
Merge pull request #10006 from haukepetersen/fix_gpioirq_sam3
cpu/sam3/gpio: use gpio_irq feature
2018-10-09 13:11:37 +02:00
Martine Lenders
7b581a4b1c
Merge pull request #10004 from haukepetersen/fix_gpioirq_lm4f120
cpu/lm4f120/gpio: use gpio_irq feature
2018-10-09 13:11:15 +02:00
Martine Lenders
15603d689b
Merge pull request #10002 from haukepetersen/fix_gpioirq_atmega
cpu/atmega/gpio: use gpio_irq feature
2018-10-09 12:02:40 +02:00
Schorcht
4c516aa1ad cpu/esp32: scope for GPIO_IRQ submodule added 2018-10-09 11:41:59 +02:00
Martine Lenders
f6ef19a5ea
Merge pull request #9999 from haukepetersen/fix_gpioirq_cc26x0
cpu/cc26x0/gpio: use gpio_irq feature
2018-10-09 11:41:07 +02:00
Schorcht
73d0670b80 cpu/esp32: pwm initialization fixed 2018-10-09 11:27:54 +02:00
Martine Lenders
8e3a43b309
Merge pull request #9997 from haukepetersen/fix_gpioirq_lpc2387
cpu/lpc2387/gpio: use gpio_irq feature
2018-10-09 11:22:11 +02:00
Martine Lenders
96e2a3d657
Merge pull request #9995 from haukepetersen/fix_gpioirq_lpc1768
cpu/lpc1768/gpio: use gpio_irq feature
2018-10-09 11:01:17 +02:00
Schorcht
3a63945621 cpu/esp32: i2c speed values finetuned 2018-10-09 10:59:40 +02:00
Martine Lenders
aa12006da3
Merge pull request #10003 from haukepetersen/fix_gpioirq_stm32_common
cpu/stm32_common/gpio: use gpio_irq feature
2018-10-09 10:20:38 +02:00
Schorcht
841d2790e6 cpu: add esp32 2018-10-08 14:40:43 +02:00
Schorcht
3ac99877ac cpu: add esp32 2018-10-08 12:20:49 +02:00
Schorcht
32e602680b cpu: add esp32 vendor files 2018-10-08 12:20:49 +02:00
Hauke Petersen
1b62f7cd40 cpu/efm32/gpio: use gpio_irq feature 2018-10-04 18:43:24 +02:00
Martine Lenders
44910a4f61
Merge pull request #10008 from haukepetersen/fix_gpioirq_stm32f1
cpu/stm32f1/gpio: use gpio_irq feature
2018-10-04 14:13:01 +02:00
13654a950b cpu/samr30: add support for samr30g18a
Co-authored-by: biboc <bapclenet@gmail.com>
2018-10-01 10:15:08 +02:00
f2d28f88c5
Merge pull request #10066 from gebart/pr/netdev_tap-Wshadow
native/netdev_tap: Rename variable to fix -Wshadow warning
2018-09-28 10:13:20 +02:00
Joakim Nohlgård
4a5ef1d2f6 native/netdev_tap: Rename variable to fix Wshadow warning 2018-09-28 09:57:30 +02:00
Kevin "Bear Puncher" Weiss
e36cd53945
Merge pull request #10061 from cladmi/pr/cpu/esp8266/cleanup
cpu/esp8266: remove duplicate 'CPU' variable
2018-09-28 09:35:42 +02:00
Kevin Weiss
df7468a2f0
Merge pull request #10017 from gschorcht/esp8266_i2c_fix
cpu/esp8266: periph/i2c fix
2018-09-28 08:17:05 +02:00
cladmi
4bf7ab5dd0
cpu/fe310: rtc depend on the rtt feature
It is the role of boards based on 'cpu/fe310' to give the configuration
for the rtc/rtt.

The fe310/periph/rtc implementation depends on having periph/rtt configured
by the board so depends on the board 'providing' the periph_rtt feature
and declaring the required macros.

It should not simply depend of the 'periph_rtt' module as this does not
enforce having a configuration for the module in the board.

In practice, when compiling, it would result in undefined 'RTT' symbols,
instead of the build system detecting it.
2018-09-27 18:11:16 +02:00
Schorcht
6307ace126 cpu/esp8266: periph/i2c fix 2018-09-27 17:48:20 +02:00
cladmi
8f68e69da3
cpu/esp8266: remove duplicate 'CPU' variable 2018-09-27 17:42:53 +02:00
Hauke Petersen
272ae30d26
Merge pull request #10005 from haukepetersen/fix_gpioirq_nrf
cpu/nrf5x/gpio: use periph_gpio_irq feature
2018-09-26 17:58:59 +02:00
Hauke Petersen
45f2a59e13
Merge pull request #9994 from haukepetersen/fix_gpioirq_cc2538
cpu/cc2538/gpio: use gpio_irq feature
2018-09-26 17:05:48 +02:00
Martine Lenders
f53c4c076a
Merge pull request #10043 from PeterKietzmann/pr_msp430_inc_ipstack
cpu/msp430: increase default stacksize for gnrc_ipv6 thread
2018-09-26 13:13:02 +02:00
Joakim Nohlgård
7a857a939c
Merge pull request #9807 from gebart/pr/kinetis-adc-average
kinetis: ADC: Add hardware averaging configuration
2018-09-26 12:54:29 +02:00
PeterKietzmann
df58b7293b cpu/msp430: increase default stacksize for gnrc_ipv6 thread 2018-09-26 11:06:05 +02:00
Hauke Petersen
e71281943a cpu/kinetis/gpio: use gpio_irq feature 2018-09-26 09:53:30 +02:00
smlng
59e299635b cppcheck: add/correct reason for cppcheck-suppress
Adding and correcting description/rational on why certain cppcheck
warnings or errors are intentionally suppressed.
2018-09-25 12:03:58 +02:00
Hauke Petersen
2267499873 cpu/nrf5x/gpio: use periph_gpio_irq feature 2018-09-21 09:19:08 +02:00
Hauke Petersen
25e901ef73 cpu/stm32f1/gpio: use gpio_irq feature 2018-09-21 08:20:04 +02:00
Hauke Petersen
a956d71a67 cpu/stm32_common/gpio: use gpio_irq feature 2018-09-21 08:19:51 +02:00
Hauke Petersen
e53abca10a cpu/sam3/gpio: use gpio_irq feature 2018-09-21 08:19:41 +02:00
Hauke Petersen
6afd0efdd8 cpu/sam0_common/gpio: use gpio_irq feature 2018-09-21 08:19:31 +02:00
Hauke Petersen
72986ecb9b cpu/lpc2387/gpio: use gpio_irq feature 2018-09-21 08:19:15 +02:00
Hauke Petersen
4913dfaa9f cpu/lpc1768/gpio: use gpio_irq feature 2018-09-21 08:18:55 +02:00
Hauke Petersen
1a7978000e cpu/lm4f120/gpio: use gpio_irq feature 2018-09-21 08:18:42 +02:00
Hauke Petersen
be94b99eda cpu/fe310/gpio: use gpio_irq feature 2018-09-21 08:18:14 +02:00
Hauke Petersen
15ca5e8c93 cpu/ezr32wg/gpio: use gpio_irq feature 2018-09-21 08:18:04 +02:00
Hauke Petersen
8ff5c91d9f cpu/esp8266/gpio: use gpio_irq feature 2018-09-21 08:17:52 +02:00
Hauke Petersen
84066ea11d cpu/cc26x0/gpio: use gpio_irq feature 2018-09-21 08:17:26 +02:00
Hauke Petersen
36d88c2c40 cpu/cc2538/gpio: use gpio_irq feature 2018-09-21 08:16:37 +02:00
Hauke Petersen
94ff02f3c4 cpu/atmega/gpio: use gpio_irq feature 2018-09-21 08:11:20 +02:00
Hauke Petersen
c7e6d15990
Merge pull request #9976 from haukepetersen/fix_native_gpioirqfeatureremove
native: remove feature `periph_gpio_irq`
2018-09-20 15:18:21 +02:00
Hauke Petersen
a965532d07 cpu/native/gpio: remove empty gpio irq func stubs 2018-09-20 14:51:19 +02:00
Hauke Petersen
da899dafbf cpu/mips_pic32/gpio: remove gpio_init_int stub 2018-09-20 14:50:32 +02:00
1022050dc7
Merge pull request #9923 from cladmi/pr/cleanup/duplicate_includes
boards/cpu: cleanup duplicate includes
2018-09-19 16:08:37 +02:00
Francisco Acosta
3721f193d0
Merge pull request #9816 from leandrolanzieri/lobaro_port
boards/lobaro-lorabox: Add support for Lobaro LoraBox board
2018-09-18 19:35:59 +02:00
Leandro Lanzieri
bd1b309c39 cpu/stm32l1: Add support for stm32l151cb CPU 2018-09-18 18:05:34 +02:00
Bas Stottelaar
fbb490a2e0 cpu: efm32: add support for no DC-DC converter 2018-09-17 19:31:22 +02:00
Joakim Nohlgård
dd2fad6b9b kinetis: ADC: Add hardware averaging configuration
This allows a board configuration to select which kind of averaging
should be applied to the pin instead of always using 32 sample average.
Very high impedance sources may need to disable hardware averaging in
order to give correct values, the on-chip temperature sensor is one such
signal source.
2018-09-12 16:32:48 +02:00
cladmi
28d3ba64d4
cpu/cc430: remove duplicate include
Includes of $(CPU)/include is already included in the main Makefile.include
in the line before including this file.
2018-09-11 16:32:34 +02:00
Peter Kietzmann
25868d1e04
Merge pull request #9885 from dylad/sam0_fix_spi_mode
sam0/spi: fix SPI mode assignment
2018-09-10 08:42:30 +02:00
smlng
da8cee0cb9 cpu/mips32r2_generic: fix PERIPH_TIMER_PROVIDES_SET
Do not set PERIPH_TIMER_PROVIDES_SET to 1, this is not required and
inconsistent with its usage in other CPUs.
2018-09-07 22:15:51 +02:00
smlng
740eafe93b cpu/fe310: add missing PERIPH_TIMER_PROVIDES_SET 2018-09-07 22:15:13 +02:00
smlng
9468feeaaf cpu/esp8266: add missing PERIPH_TIMER_PROVIDES_SET 2018-09-07 22:14:32 +02:00
Andreas "Paul" Pauli
dc6eb82406
Merge pull request #9722 from smlng/pr/cc2538/adc
cpu/cc2538: enhance periph ADC
2018-09-06 14:12:03 +02:00
Francisco Acosta
fad4d9be19
Merge pull request #9781 from cladmi/pr/toolchain/avr/linkerscript
atmega_common: allow defining rom and ram length for link.
2018-09-05 16:00:33 +02:00
cladmi
9720d9c51c
cpu/atmega_common: Allow specifying a reserved space in ROM
It is defined using the `ROM_RESERVED` variable.

This should allow supporting arduino bootloader that is stored at the
end of the ROM.
2018-09-05 12:20:36 +02:00
cladmi
493cad03da
atmega_common: make rom and ram length definition mandatory
Now all atmega cpu define them so use them by default.
2018-09-05 12:20:33 +02:00
cladmi
e4635004f7
cpu/atmega1284p: configure RAM and ROM length
Info taken from https://www.microchip.com/wwwproducts/en/atmega1284p

TODO: update "board not enough memory".
2018-09-05 12:20:31 +02:00
cladmi
2ff7137733
cpu/atmega256rfr2: configure RAM and ROM length
Info taken from https://www.microchip.com/wwwproducts/en/atmega256rfr2

TODO: update "board not enough memory".
2018-09-05 12:20:28 +02:00
cladmi
c6a45e4082
cpu/atmega328p: configure RAM and ROM length
Info taken from https://www.microchip.com/wwwproducts/en/atmega328p

TODO: update "board not enough memory".
2018-09-05 12:20:26 +02:00
cladmi
ef20b035bd
cpu/atmega1281: configure RAM and ROM length
Info taken from https://www.microchip.com/wwwproducts/en/atmega1281

TODO: update "board not enough memory".
2018-09-05 12:20:23 +02:00
cladmi
b22832b4cd
cpu/atmega2560: configure RAM and ROM length
Info taken from https://www.microchip.com/wwwproducts/en/atmega2560

TODO: update "board not enough memory".
2018-09-05 12:20:20 +02:00
cladmi
098770aeda
atmega_common: use binutils 2.26 ldscript for older versions
This allows configuring __TEXT_REGION_LENGTH__ and __DATA_REGION_LENGTH__
for previous versions (ubuntu xenial for example).
2018-09-05 12:20:17 +02:00
Gaëtan Harter
56a1ac4f2b
cpu/atmega: add avr-binutils 2.26 linkerscripts
Generated by extracting the output of

    avr-gcc -Wl,--verbose --mmcu=$(CPU)

With avr-binutils 2.26
2018-09-05 12:08:33 +02:00
cladmi
6e148bcf1b
atmega_common: allow defining rom and ram length for link.
Allow configuring __TEXT_REGION_LENGTH__ and __DATA_REGION_LENGTH__ linkerscript
variables using ROM_LEN and RAM_LEN makefile variables.
2018-09-05 12:08:31 +02:00
Schorcht
e4ca897661 cpu: add esp8266 2018-09-05 02:39:50 +02:00
Schorcht
e528fb8e2d cpu: add esp8266 vendor files 2018-09-05 02:39:50 +02:00
dylad
4e6d3d1f92 sam0/spi: fix SPI mode assignment
Signed-off-by: dylad <dylan.laduranty@mesotic.com>
2018-09-04 13:58:51 +02:00
Dylan Laduranty
8871e5aaa6
Merge pull request #9876 from fedepell/sercomid-9875
sam0_common: fix sercom_id return value for SERCOM5 (#9875)
2018-09-04 09:10:06 +02:00
ZetaR60
db7734261c
Merge pull request #9823 from fesselk/patch-1
atmega_common/gpio_init: fix pull-up settings for GPIO_IN_PU
2018-09-03 20:30:53 -04:00