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

3308 Commits

Author SHA1 Message Date
Bas Stottelaar
bcffbba480
Merge pull request #8718 from cladmi/pr/cpu/efm32/remove_timer_set
cpu/efm32/periph/timer: remove timer_set duplicate
2018-03-01 20:16:01 +01:00
Gaëtan Harter
04e180dd3d
Merge pull request #8719 from gebart/pr/kinetis-lpuart-align
kinetis: Align defines in uart.c
2018-03-01 17:58:37 +01:00
Gaëtan Harter
6f2eeca91b cpu/efm32/periph/timer: remove timer_set duplicate
timer_set is already provided by 'periph_common' so does not need to be
provided by cpu/periph.
2018-03-01 17:31:15 +01:00
Joakim Nohlgård
8f3fb59840 kinetis: Align defines in uart.c 2018-03-01 17:12:54 +01:00
Joakim Nohlgård
d8c80e245a kinetis: Fix shiftTooManyBitsSigned warning in GPIO driver 2018-03-01 14:35:22 +01:00
Sebastian Meiling
f5ef0bd09c
Merge pull request #8345 from danpetry/cc2538_uart
cc2538/include/periph_cpu.h: Changed UART configuration format for cc2538.
2018-03-01 12:02:59 +01:00
c450cdebeb
Merge pull request #8482 from cogip/qdec
drivers: Initial import of low-level QDEC driver interface
2018-02-26 17:44:58 +01:00
MichelRottleuthner
bad08596f6
Merge pull request #8399 from OTAkeys/fix/mtd_native_write
mtd_native: fix overlapping pages write check
2018-02-26 15:38:46 +01:00
Vincent Dupont
f04ecee9f6 mtd_native: fix overlapping pages write check 2018-02-26 15:32:06 +01:00
Gilles DOFFE
bee493ac71 cpu/stm32_common: add qdec implementation
* Add support for the STM32 encoder interface
* The STM32 only supports X2 and X4 modes.
* Enable interrupt handler on counter overflow
* Add simple test code for QDEC based on nucleo-f401 board

Signed-off-by: Gilles DOFFE <g.doffe@gmail.com>
2018-02-23 23:17:26 +01:00
Gilles DOFFE
07158755ea cpu/native: add qdec implementation
* Add support for the native encoder interface
* Native QDEC is there mostly for simulation
* Calling code will have to simulate QDEC increment/decrement

Signed-off-by: Gilles DOFFE <g.doffe@gmail.com>
2018-02-23 23:16:42 +01:00
Joakim Nohlgård
d4e5bea0a3 efm32: Use different values for each unsupported ADC res 2018-02-23 09:36:57 +01:00
Bas Stottelaar
11638eb1d6 cpu: efm32: fix typo in cpus.txt 2018-02-22 15:38:13 +01:00
Bas Stottelaar
864839cb90 cpu/efm32: efm32lg: add support 2018-02-21 19:16:49 +01:00
Bas Stottelaar
1e3fdce1d7 cpu/efm32: efm32lg: add vendor headers 2018-02-21 19:16:49 +01:00
Peter Kietzmann
e853c7534f
Merge pull request #8555 from kaspar030/stm32f4_fix_adc_res
cpu/stm32f4: fix periph/adc resolution check
2018-02-19 10:05:18 +01:00
Francisco Acosta
25c818bef0 cpu/efm32: fix flashpage_erase 2018-02-16 18:21:49 +01:00
Bas Stottelaar
a68f47eca1 cpu/efm32: efm32gg: add support. 2018-02-16 13:57:17 +01:00
Bas Stottelaar
f9f1b9ebfa cpu/efm32: efm32gg: add vendor headers 2018-02-16 13:57:17 +01:00
Francisco Acosta
879e949967
Merge pull request #8572 from basilfx/bugfix/efm32_peripherals
cpu: efm32: fix ADC and RTC
2018-02-16 13:54:29 +01:00
Bas Stottelaar
2329b84935 cpu: efm32: fix ADC resolution selection
The `res` argument is a combination of resolution and shifting, combined using `(y << 4) | x`. To yield x, `0x0F` should have been used.
2018-02-15 21:14:09 +01:00
Bas Stottelaar
2af38d749c cpu: efm32: fix RTC for Series 0 MCUs.
Without fix:
  Setting alarm to   12627-11-30 15:00:05
   Alarm is set to   12722-01-25 07:13:03

With fix:
  Setting alarm to   2011-12-13 14:15:17
   Alarm is set to   2011-12-13 14:15:17
2018-02-15 21:12:40 +01:00
Joakim Nohlgård
b61eeb9fe0 kinetis: Allow per-board config of ADC ref
ADC reference can be external pin or internal VREF module on most
Kinetis CPUs.
2018-02-14 15:16:41 +01:00
Bas Stottelaar
76ca2c9bb3 cpu: efm32: use static mutex initialization. 2018-02-14 09:30:08 +01:00
83bff5c643 cpu: stm32_common: always do gpio_read() from input register 2018-02-13 21:51:45 +01:00
41dab11a8f cpu/stm32f4: fix periph/adc resolution check 2018-02-13 21:45:02 +01:00
Francisco Acosta
1b2ce2d559
Merge pull request #8544 from smlng/osx/cflags
cpu/native: reduce scope of CFLAGS for OSX compatibility
2018-02-13 14:29:54 +01:00
Francisco Acosta
ac9328381c cpu/cortexm_common: add NOP after WFI to avoid hardfault on stm32l152 2018-02-12 15:10:34 +01:00
smlng
15a7e6bb98 cpu/native: reduce scope of CFLAGS for OSX compatibility 2018-02-09 17:44:41 +01:00
Vincent Dupont
972eeefe6e stm32_common/rtt: add support for stm32f4 2018-02-08 17:39:39 +01:00
danpetry
cd449e388b cpu/cc2538: Adapted UART driver incl. board config
Changed the style of the UART configuration for different boards,
from a define based configuration to one based on an array of
structs, one struct for each UART, with the format of the struct defined
in cc2538/include/periph_cpu.h.

  - Defined the fields of the struct in periph_cpu.h
  - Removed the compilation includes that were in uart.c for each UART
  - Implemented a generic ISR subroutine for clarity
  - combined uart_base and uart_init in uart.c
  - used bitmask for the interrupt setup
  - took the uart Rx, Tx, and IRQ numbers out of the config
  (as this has to match the .dev field). Replaced with
  macros from the uart number
  - took out some unused code
  - implemented power on/off commands
  - removed reset function - now bytes are just discarded on error
  - Rx now not initialised if Rx callback = NULL, as per
  drivers/periph/uart.h
  - device is now enabled after callbacks are set, not before
  - asserts raised if rts and cts are enabled for UART0
  - BIT macro removed
2018-02-08 14:36:51 +01:00
Francisco Acosta
bba457290e
Merge pull request #8525 from kaspar030/namespace_mcuboot
make: mcuboot: add MCUBOOT_ namespacing
2018-02-07 17:57:24 +01:00
7847a91e12 cpu: instead of cpp-style, use C-style comments 2018-02-06 16:59:58 +01:00
3bfe4b6986 make: mcuboot: add MCUBOOT_ namespacing 2018-02-06 16:41:48 +01:00
dylad
391164a788 pkg: fix broken nordic softdevice package
Prevent CPU from using cortexm_init() when softdevice is used for NRF52 devices
as the softdevice already do some obscur inits
Also ensure the softdevice pkg will be used by hacking Makefile due to RIOT's
build system limitations (will be fix later with the new build system)
2018-02-05 17:04:13 +01:00
Bas Stottelaar
6a112bdf51
Merge pull request #8474 from basilfx/feature/efm32_pwm_mode
cpu: efm32: implement pwm modes.
2018-02-05 12:56:02 +01:00
Hauke Petersen
b1efc39348 cpu/nrf52: optimized i2c driver implementation 2018-02-02 11:34:40 +01:00
Hauke Petersen
787d69c676 cpu/nrf52: add CPU specific sleep function
This function is supposed to be used for putting the CPU into
sleep mode for short amounts of time (e.g. in typical polling
loops used in periph drivers).
2018-02-02 11:33:18 +01:00
Hauke Petersen
959e838836 cpu/nrf52: updated vendor header 2018-02-02 11:33:18 +01:00
Peter Kietzmann
047219aff3
Merge pull request #8486 from haukepetersen/fix_nrf52_i2c-mutexinit
cpu/nrf52/i2c: use static mutex initializtion
2018-02-02 10:53:50 +01:00
Martine Lenders
c982cc81ed
Merge pull request #8278 from smlng/cpu/native/replace_timex
cpu, native: replace timex_t in syscalls
2018-02-01 12:55:29 +01:00
Bas Stottelaar
e4d699ad46
Merge pull request #8471 from cladmi/pr/fix_tradfri_module_name_conflict
cpu/efm32: fix 'cpu' module name conflict
2018-02-01 08:41:03 +01:00
Bas Stottelaar
91b2627539 cpu: efm32: implement pwm modes. 2018-01-31 23:39:42 +01:00
Hauke Petersen
503e60ef25 cpu/nrf52/i2c: use static mutex initializtion 2018-01-30 19:07:26 +01:00
Martine Lenders
c0dcff6dd0
Merge pull request #8421 from aabadie/pr/zep_doxygen_bis
sys/net/zep: add missing doxygen brief description
2018-01-30 17:34:09 +01:00
Gaëtan Harter
f7046f83fb cpu/efm32: Fix 'cpu' module name conflict
Rename 'cpu/efm32/families/efr32mg1p' module to 'cpu_efr32mg1p' to don't
conflict with 'cpu'.

Also required to set the path to vectors.o as its not provided by cpu.
2018-01-30 11:55:05 +01:00
Dan Evans
0f011d53de samd21/cpu DFLL lock loop error 2018-01-26 09:59:59 -07:00
4fe2490bc5 cpu/native/socket_zep: add ref to net_zep doxygen group 2018-01-24 21:41:31 +01:00
smlng
f63f3b2a4b cpu, native: replace timex_t in syscalls 2018-01-23 14:35:24 +01:00
Martine Lenders
d0140a9ec8
Merge pull request #8380 from miri64/gnrc_netif/enh/6lo-nrfmin
gnrc_netif: set-up 6Lo for NRFmin
2018-01-23 11:17:29 +01:00
f4d687502e cpu/native/socket_zep: fix doxygen grouping 2018-01-23 09:02:00 +01:00
smlng
5c38e1a56f socket_zep: remove unnecessary include 2018-01-22 15:28:19 +01:00
Martine Lenders
851eb767be gnrc_netif: set-up 6Lo for NRFmin 2018-01-18 13:00:25 +01:00
Sebastian Meiling
5c0b058db4
Merge pull request #6121 from miri64/native/feat/zep_socket
native: provide socket-based ZEP device
2018-01-18 10:03:08 +01:00
Martine Lenders
81ef15287a native: provide socket-based ZEP device 2018-01-18 09:15:37 +01:00
cefb7974d7
Merge pull request #8210 from astralien3000/teensy31
boards/teensy31 : initial support of Teensy 3.1 & 3.2
2018-01-18 09:14:51 +01:00
Loïc Dauphin
982f36cdb0 cpu/kinetis: add support of MK20D7 2018-01-17 18:13:59 +01:00
99d484f336 cpu/cortexm_common: select bitarithm_lsb() by available instructions 2018-01-16 23:35:14 +01:00
ca38df6960
Merge pull request #7469 from MichelRottleuthner/stm32l4_stmclk
stm32l4: implement stmclk interface
2018-01-15 17:38:28 +01:00
Sebastian Meiling
469a1bb632
Merge pull request #8360 from neiljay/pr/correct_usage_of_features_on_mips
mips: Correct usage of USEMODULE
2018-01-15 15:19:01 +01:00
Neil Jones
e297a71e8c mips: Correct usage of USEMODULE
In CPU definitions we should not be explicilty naming peripheral modules to use
via USEMODULE (one should use FEATURES_PROVIDED instead).
Plus add missing cpu_init() and periph_init() methods.
This commit removes periph_hwrng support from the pic32mx cpu builds as
pic32mx does not have hwrng only pic32mz does.
2018-01-15 14:02:59 +00:00
Sebastian Meiling
eb89954f13
Merge pull request #5166 from kaspar030/syntax_check_debug_code
core: debug: rely on optimizer to kick out unused debug code
2018-01-15 14:52:35 +01:00
4dd854da74 cpu/cc2538: DEBUG fixes 2018-01-15 14:37:05 +01:00
c398b74ae0 cpu: native: uart: adapt to changed DEBUG 2018-01-15 14:37:04 +01:00
Michel Rottleuthner
1e0258d493 stm32l4/stmclk: enable MSI/LSE trimming only with available LSE 2018-01-15 12:22:51 +01:00
Sebastian Meiling
7e7c573eaf
Merge pull request #8355 from beduino-project/fix-stm32f1-pullup
stm32f1: fix gpio mode GPIO_IN_PU
2018-01-15 09:27:08 +01:00
MichelRottleuthner
c33985dc81 stm32l4: implement stmclk functions 2018-01-14 16:58:53 +01:00
neiljay
bec3f12e0b
Merge pull request #8248 from neiljay/pr/mips_makefile_improvements
mips: clean up pic32 makefiles
2018-01-12 15:54:39 +00:00
Tristan Bruns
d4de629c34 stm32f1: fix gpio mode GPIO_IN_PU 2018-01-12 16:11:58 +01:00
kYc0o
af8deddbf1 cpu/stm32l1/vectors.c: fix model stm32l152ret6 -> stm32l152re 2018-01-11 18:48:14 +01:00
Matthieu Berthomé
1c6321791c puts => LOG_INFO for the MSP430 startup message 2018-01-11 09:27:20 +01:00
Daniel Frejek
2925ef9ab5 cpu/stm32f1: fixed flash page sizes 2018-01-09 22:06:27 +01:00
MichelRottleuthner
ee17dae5af pkg/fatfs: add vfs integration 2018-01-09 14:46:40 +01:00
Dylan Laduranty
87e3f10e8b
Merge pull request #8318 from PeterKietzmann/dnahm_nrf52_i2c
cpu/nrf52: add i2c driver and configs
2018-01-08 09:23:35 +01:00
paula75
128ab3a22e cpu/stm32l1: fix ADC resolution register 2018-01-05 14:24:51 -03:00
dnahm
6245b4165f cpu/nrf52: add i2c driver and configs 2018-01-04 10:51:05 +01:00
Neil Jones
0133de6e4f mips: clean up pic32 makefiles.
Make pic32m* depend on pic32_common which depends on mips32r2_common.
Remove some duplication.

This addresses some issues in #8052.
2018-01-02 13:59:08 +00:00
Bas Stottelaar
8f12b9896f cpu: efm32_common + ef32mg1p: replace with generalized efm32 cpu 2017-12-19 20:04:37 +01:00
65acefe478
Merge pull request #8002 from george-hopkins/stm32f103ze
cpu/stm32f1: add support for STM32F103ZE
2017-12-16 07:22:37 +01:00
ce274414ea cpu: add support for stm32l475vg 2017-12-15 13:36:45 +01:00
c1e20f8231
Merge pull request #7709 from smlng/cpu/sam0_common/enh_uart
cpu, sam0 common: adapt periph-uart to use read-only bit-fields
2017-12-15 12:45:10 +01:00
smlng
ba324ef07c cpu, cc2538: adapt uart to RIOT gpio API 2017-12-14 10:32:04 +01:00
smlng
150f3fb231 cpu/sam0_common: fix assert in periph/flashpage 2017-12-10 16:21:52 +01:00
Joakim Nohlgård
3a9cd9653f saml21: Update FEATURE_PERIPH_PM -> MODULE_PERIPH_PM 2017-12-08 05:22:09 +01:00
43e972fc61
Merge pull request #7970 from kYc0o/add_flashpage_write_raw
periph/flashpage: add flashpage_write_raw interface
2017-12-04 13:13:52 +01:00
George Hopkins
e3d42681b7 cpu/stm32f1: add support for STM32F103ZE 2017-12-01 21:20:56 +01:00
kYc0o
cb0d021811 cpu/sam0_common/Makefile.features: add periph_flash_raw 2017-11-30 17:25:35 +01:00
kYc0o
adc08d6578 cpu/sam0_common: add alignment and minimum size write block constants 2017-11-30 17:25:35 +01:00
fcb3fd9e70 cpu/sam0_common: add flashpage_write_raw() 2017-11-30 15:14:39 +01:00
Francisco Acosta
38880acad8
Merge pull request #7799 from kYc0o/factorise_stm32_ld
ld: refactor stm32 linker scripts
2017-11-30 14:28:51 +01:00
kYc0o
d6751dde22 cpu/stm32_common/Makefile.include: add ccm linker var 2017-11-30 14:11:08 +01:00
kYc0o
ab60f9dc47 cpu/stm32*/ldscripts: remove all stm32 family linker scripts 2017-11-30 14:11:07 +01:00
kYc0o
945d7f6887 cpu/stm32_common: add stm32_mem_lengths.mk to calculate ROM and RAM lengths 2017-11-30 14:11:07 +01:00
Martine Lenders
071d9c2d7f
Merge pull request #8176 from PeterKietzmann/pr_msp430_check_tim_chan
cpu/xxx430: correct channel check in periph timer driver
2017-11-29 17:09:21 +01:00
PeterKietzmann
b6b6fd2626 cpu/xxx430: correct channel check in periph timer driver 2017-11-29 16:47:09 +01:00
Bas Stottelaar
be24c66592 cpu: efm32_common: override CMU/EMU parameters in board.h. 2017-11-29 16:15:28 +01:00
Sebastian Meiling
a6c2558802
Merge pull request #8175 from smlng/cpu/efm32/fix_sign_compare
cpu, efm32_common: fix sign-compare error in flashpage
2017-11-29 16:14:10 +01:00
smlng
2be6cf0938 cpu, efm32_common: fix sign-compare error in flashpage 2017-11-29 15:20:37 +01:00
Bas Stottelaar
156240c3b6
Merge pull request #8166 from basilfx/feature/efm32_periph_improvements
cpu: efm32_common: add support for GPIO ports A-K and I2C2.
2017-11-29 10:46:04 +01:00
smlng
b283b7784c make: fix various compile errors with Wextra
pkg, nordic_softdevice_ble: disable CFLAGS to omit compiler error
        sys, pm_layered: fix casting nonscalar to the same type
        cpu, stm32_common: fix type-limits, remove always true assert
        cpu, stm32f4: fix pointer arithmetic in periph/i2c
        drivers, at86rf2xx: fix type-limits where condition always true
        saul, gpio: fix if no gpio configured for saul
        cpu, saml21: add frequency check to periph/timer
        driver, cc110x: fix unused param and type-limts errors
        boards, wsn430-common: fix old-style-declaration
        make: fix old style definition
        drivers, sdcard_spi: fix old style typedef
        driver, at30tse: remove unnecessary check
        driver, nrf24: fix type-limit
        driver, pn532: change buffer from char to uint8_t
        tests/driver_sdcard: fix type limits
        boards, feather-m0: add missing field inits
        driver, tcs37727: fix type limits
        pkg, emb6: disable some compiler warnings
        tests/emb6: disable some compiler warings
        pkg, openthread: fix sign compare and unused params
        tests/trickle: fix struct init
        tests/pthread_cooperation: fix type limits
        board, mips-malta: remove feature periph_uart
        shell: fix var size for netif command
        gnrc, netif: fix sign-compare
        gnrc, nib: fix sign-compare
        shell: fix output in netif command
        posix: fix type-limits in pthread_cond
2017-11-28 18:31:43 +01:00