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

3090 Commits

Author SHA1 Message Date
acfa727151 Merge pull request #7477 from OTAkeys/pr/fix_stm32_clk
cpu/stm32f[2|4|7]: unify stmclk and improve PLL configuration
2017-08-29 21:35:06 +02:00
dylad
c81ae98068 boards: update periph_conf of sam0 based board
Signed-off-by: dylad <dylan.laduranty@mesotic.com>
2017-08-29 21:26:42 +02:00
dylad
89c885ea40 sam0/uart: merge samd21 & saml21 uart driver
Signed-off-by: dylad <dylan.laduranty@mesotic.com>
2017-08-29 21:26:42 +02:00
Andreas "Paul" Pauli
a12dcaa299 Merge pull request #7361 from smlng/enh/cc2538/periph_timer
cpu, cc2538: enhance and cleanup periph timer
2017-08-29 20:03:35 +02:00
Thomas Eichinger
f286f2a276 Merge pull request #7492 from Hyungsin/forupstream_samr21_uart 2017-08-29 08:58:08 -07:00
Hauke Petersen
f8e2b46603 Merge pull request #7122 from kaspar030/fix_stm32f4_i2c
cpu: stm32f4: i2c: fix some problems
2017-08-29 17:56:26 +02:00
Hyungsin
5dac8fc263 cpu/samd21: include uart driver only when UART_NUMOF is defined 2017-08-29 08:51:10 -07:00
Hauke Petersen
e51ff56b96 cpu/nrf52: share const CLOCK_CORECLOCK 2017-08-29 17:28:10 +02:00
55c09a7471 Merge pull request #7526 from haukepetersen/opt_nrf51_coreclockdefine
boards/nrf51-based: share CLOCK_CORECLOCK define
2017-08-29 17:24:01 +02:00
Hauke Petersen
4b53044fac Merge pull request #7527 from aabadie/typo_successfully
doxygen: fix typo on word 'successfully'
2017-08-29 15:26:51 +02:00
5dc834a72d doxygen: fix typo on word 'successfully' 2017-08-29 15:12:44 +02:00
Hauke Petersen
7b9d3b32ca boards/nrf51-based: share CLOCK_CORECLOCK define 2017-08-29 14:12:39 +02:00
Hauke Petersen
25f285f1d1 cpu/msp430: added flashpage driver implementation 2017-08-29 12:08:33 +02:00
Hauke Petersen
3ecea173ea cpu/msp430|cc430: removed old flashrom driver 2017-08-29 11:55:27 +02:00
smlng
12868d2416 cpu, cc2538: cleanup periph/timer 2017-08-28 21:43:12 +02:00
f5838ebea9 Merge pull request #7467 from Marc-Aurele/i2c_channel2_l0
cpu/stm32l0: add i2c channel 2 & 3
2017-08-28 17:54:09 +02:00
Vincent Dupont
33e8a419be cpu/stm32_common: add clock config documentation 2017-08-28 17:51:00 +02:00
Vincent Dupont
d2a4acecd9 cpu/stm32_common: unify stmclk for stm32f[2|4|7] and adapt to use clk_conf 2017-08-28 17:51:00 +02:00
Vincent Dupont
400158537f cpu/stm32_common: add a tool to generate clock settings 2017-08-28 17:51:00 +02:00
Hauke Petersen
10d394802d Merge pull request #6932 from dylad/saml21_multiple_exti
saml21/gpio: Allow multiple EXTI at the same time
2017-08-28 17:35:00 +02:00
Hauke Petersen
663be1b810 cpu/sam3: added DAC (DACC) driver implementation 2017-08-28 14:30:57 +02:00
7222f76ac0 cpu/msp430: cleanup doxygen grouping 2017-08-28 14:26:10 +02:00
Hauke Petersen
ac95d429f5 Merge pull request #7485 from aabadie/stm32_cleanup_vectors
cpu/stm32: cleanup interrupt vectors
2017-08-28 13:52:53 +02:00
2b3a9d2e82 cpu/mips: cleanup doxygen documentation 2017-08-28 13:27:58 +02:00
Hauke Petersen
7bc271807c cpu: remove support for lpc11u34
CPU is not maintained and not hardware for testing available to
the community.
2017-08-28 12:11:51 +02:00
Joakim Nohlgård
480f77065b Merge pull request #7514 from gebart/pr/netdev-set-const
netdev: Make set() value parameter const void *
2017-08-26 08:09:15 +02:00
b8070a6f5b cpu/sam0: unify for arduino-mkr1000 and arduino-mkrzero boards 2017-08-25 15:18:44 +02:00
Joakim Nohlgård
065bc62e0a netdev: Make set() value parameter const void * 2017-08-25 13:41:19 +02:00
Hauke Petersen
d54c849822 Merge pull request #6573 from gebart/pr/lpc11u34-periph-macro
lpc11u34: Remove short name macros for GPIO modes
2017-08-25 10:57:28 +02:00
Joakim Nohlgård
a905a88b7c Merge pull request #6959 from haukepetersen/fix_lpc11u_adc
cpu/lpc11u34: fixed ADC resolution selection
2017-08-24 18:09:43 +02:00
Martine Lenders
952682b32c Merge pull request #7508 from aabadie/cpu_samd21_doc
cpu: fix missing doxygen group definitions + cleanup
2017-08-24 16:37:02 +02:00
Hauke Petersen
138092f88c Merge pull request #7373 from smlng/cpu/cc2538/gpio_af
cpu, cc2538: add gpio alternative functions
2017-08-24 15:48:13 +02:00
Hauke Petersen
8b150624ed cpu/stm32: reworked the RTC driver implementation 2017-08-24 15:32:27 +02:00
smlng
46facf4ff7 cpu, cc2538: add gpio alternative functions 2017-08-24 15:31:52 +02:00
c07a6af0fd cpu/mips: add missing brief doxygen + cleanup 2017-08-24 14:54:47 +02:00
24a1aacca2 cpu/sam0: add missing doxygen group definition + cleanup 2017-08-24 14:54:47 +02:00
d2938a3a34 cpu/stm32_common: add missing doxygen group definition 2017-08-24 14:54:47 +02:00
a02ba6917f cpu/stm32l4: cleanup interrupt vectors definitions 2017-08-23 22:20:26 +02:00
47e9bfb8e0 cpu/stm32f4: cleanup interrupt vectors definitions 2017-08-23 22:20:26 +02:00
3e342e844d cpu/stm32f3: cleanup interrupt vectors definitions 2017-08-23 22:20:26 +02:00
1bcb13d6ef cpu/stm32f2: cleanup interrupt vectors definitions 2017-08-23 22:20:26 +02:00
de343a4c4f cpu/stm32l1: cleanup interrupt vectors definitions 2017-08-23 22:20:26 +02:00
cde93ffc39 cpu/stm32f1: cleanup interrupt vectors definitions 2017-08-23 22:20:25 +02:00
b2674e5f69 cpu/stm32l0: cleanup interrupt vectors definitions 2017-08-23 22:20:25 +02:00
16253b650f cpu/stm32f0: cleanup interrupt vectors definitions 2017-08-23 18:25:39 +02:00
Hauke Petersen
265173806e cpu/stm32: added model specific LSI clock speeds 2017-08-23 15:39:16 +02:00
Hauke Petersen
82485cf7c6 cpu/stm32: fixed lfclk functions for L0 and L1 2017-08-23 15:39:16 +02:00
Hauke Petersen
7ea8c7f768 Merge pull request #7486 from smlng/enh/docu/cc26x0/timer
docu: enhance timer config docu for cc26x0
2017-08-23 15:21:39 +02:00
Hauke Petersen
5422f0da72 stm32: unified parts of stmclk implementations
- unified dbp, hsi, and lfclk functions
- all of them now work for all STM32 CPUs
- renamed from bdp to dbp as this is the expression used
  in the reference manuals (old naming was a typo...)
2017-08-21 17:40:22 +02:00
smlng
09bc23b41f docu: enhance timer config docu for cc26x0 2017-08-21 10:44:14 +02:00
Hauke Petersen
768459d6c1 Merge pull request #7420 from MichelRottleuthner/rtc_stm32l4
periph/rtc: add support for stm32l4
2017-08-21 10:10:26 +02:00
7682e11763 cpu/stm32f7: add support for stm32f722ze 2017-08-18 13:52:59 +02:00
Aurelien Fillau
860cd70bb7 i2c: add channel 2 & 3
Now, I2C driver on stm32l0 family can handle up to 3
channels.

Signed-off-by: Aurelien Fillau <aurelien.fillau@gmail.com>
2017-08-18 08:03:39 +02:00
Sebastian Meiling
2bab65ce03 Merge pull request #7335 from smlng/cpu/cc2650/periph_timer
cpu, cc26x0: fixing periph timer
2017-08-17 13:26:38 +02:00
4d54dc43fc Merge pull request #7359 from photonthunder/samd21_DFLL_fix
samd21:DFLL bug
2017-08-16 18:18:26 +02:00
Joakim Nohlgård
b94e91c6f1 kinetis: Adjust RTT alarm trigger time
The RTT alarm will trigger when the RTT seconds register is equal to the
set alarm target, instead of triggering at the following second.
2017-08-15 20:28:24 +02:00
03caac8951 Merge pull request #7307 from Hyungsin/forupstream_gpio_fix
samd21: gpio support samr21e18a
2017-08-15 19:44:27 +02:00
Hyungsin
e8e06949eb cpu/samd21: add gpio support for samr21e18a 2017-08-15 09:43:18 -07:00
Vincent Dupont
e2099ebc66 Merge pull request #7454 from MichelRottleuthner/stm32_rtc_sync_fix
stm32_common/periph/rtc: fix wrong read order of rtc regs
2017-08-07 17:34:20 +02:00
MichelRottleuthner
0a9383228e stm32_common/periph/rtc: fix wrong read order of rtc regs, add wait for calender sync to rtc_set_time 2017-08-07 16:35:56 +02:00
Joakim Nohlgård
efa4f985ef k60: Update to latest vendor headers 2017-08-04 06:32:41 +02:00
Joakim Nohlgård
0ef0f7b855 kw2xd: Update to latest vendor headers 2017-08-03 21:18:09 +02:00
Joakim Nohlgård
2ac66c8d65 kinetis: Handle CPUs without DAC module (KW2xD) 2017-08-03 21:18:09 +02:00
Joakim Nohlgård
f3ca4a1ef0 k60: Update to latest vendor headers 2017-08-03 21:18:09 +02:00
Joakim Nohlgård
33dfb66bc5 k22f: Update to latest vendor headers 2017-08-03 21:18:08 +02:00
Joakim Nohlgård
9205edfb7b k64f: Update to latest vendor headers 2017-08-03 21:18:08 +02:00
Joakim Nohlgård
97878f9c6e kinetis: Add compatibility definitions to common cpu include 2017-08-03 21:18:08 +02:00
Francisco Acosta
020c2a41ff Merge pull request #7435 from gebart/pr/kinetis-rm-unused-config
kinetis: Remove unused configuration items
2017-08-02 12:48:04 +02:00
Martine Lenders
170277967c Merge pull request #7426 from OlegHahm/stm32f1_rtt_fix
stm32f1: rtt: declare functions static
2017-08-01 16:53:44 +02:00
Joakim Nohlgård
a67940e382 kinetis: Remove some unused configuration macros from docs 2017-08-01 16:42:49 +02:00
Joakim Nohlgård
10e53fe841 Merge pull request #7379 from gebart/pr/kinetis-clock-init
kinetis: Unify cpu.c, update clock initialization code
2017-08-01 16:40:19 +02:00
Joakim Nohlgård
742bcad912 kinetis: Unify cpu.c, update clocking initialization
Unify cpu_init for all Kinetis CPUs to reduce code duplication.
Updated the MCG driver implementation to make the configuration easier.
Most clock settings are initialized by kinetis_mcg_init() called from
cpu_init. Board specific external clock source initialization
(FRDM-K64F, PhyNode) needs to be performed in board_init instead of
in cpu_init.
2017-08-01 16:30:19 +02: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
Joakim Nohlgård
aa67bdbc42 kinetis: Add support for CPUs with RSIM module
Some KW series CPUs have no OSC module, but uses the oscillator found in
the built-in transceiver.
2017-08-01 12:03:49 +02:00
MichelRottleuthner
87c1c96a13 stm32_common/periph/rtc: fix RTSR_TR17 reg name 2017-07-31 13:43:45 +02:00
Martine Lenders
3686b2cba5 Merge pull request #7394 from gebart/pr/kinetis-periph-docs
kinetis: Update Doxygen
2017-07-29 11:29:32 +02:00
Joakim Nohlgård
7b2f503051 Merge pull request #7399 from gebart/pr/kinetis-cpu-conf
kinetis: Merge cpu_conf settings into kinetis_common
2017-07-28 14:03:06 +02:00
Francisco Acosta
97ad5da84e Merge pull request #7395 from gebart/pr/k60-rm-macros
k60: Remove unused macro definitions and typedefs
2017-07-28 13:53:34 +02:00
Oleg Hahm
650d297890 stm32f1: rtt: declare functions static 2017-07-28 11:24:03 +02:00
Sebastian Meiling
027d65d491 Merge pull request #7327 from smlng/cpu/cc2538/periph_adc
cpu, cc2538: add low-level adc periph driver
2017-07-27 10:08:05 +02:00
MichelRottleuthner
ffd4d9280e stm32_common/periph/rtc: add support for stm32l4 2017-07-26 21:52:35 +02:00
Martine Lenders
3f00ab18e7 nrfmin: add missing return (#7412) 2017-07-26 13:54:25 +02:00
Joakim Nohlgård
60a5c85ca8 kinetis: Merge cpu_conf settings into kinetis_common 2017-07-22 15:51:25 +02:00
Joakim Nohlgård
de78f501ea k60: Remove unused macro definitions and typedefs 2017-07-22 15:51:18 +02:00
smlng
91412453ae cpu, cc26x0: fixing low-level timer
- complete rework of periph/timer.c
    - based on TI CC2538 periph/timer.c
2017-07-21 22:20:54 +02:00
Joakim Nohlgård
cb9e3c13bf kinetis: fix capitalization of periph doc headings 2017-07-21 09:57:27 +02:00
Francois Berder
d8984a6aef cpu: pic32_common: Fix void pointer arithmetic in hw rng
Signed-off-by: Francois Berder <fberder@outlook.fr>
2017-07-20 19:55:44 +01:00
Francois Berder
ab6006ea3e cpu: pic32: Implement cpuid_get function
Signed-off-by: Francois Berder <fberder@outlook.fr>
2017-07-20 19:52:29 +01:00
smlng
b30d0617aa cpu, cc2538: add low-lever adc driver 2017-07-20 20:47:49 +02:00
Joakim Nohlgård
86ae36b5be kinetis: Update documentation page titles 2017-07-20 18:07:29 +02:00
Hauke Petersen
3c623f63c3 cpu/kinetis: optimization of DAC driver impl.
- use assert() for checking the line parameter
- use 'bit.h' for bitbanding
- simplified code a bit
- unified style of defifining the board configuration
- removed unused configurations form pba-d-01-kw2x and frdm-k64f
2017-07-20 16:44:41 +02:00
Hauke Petersen
ae3f0193b8 cpu/lpc11u34: fixed ADC driver
- fixed selection of resolution
- fixed result masking
- fixed channel selection (and optimized it)
- fixed clock prescaler calculation
2017-07-20 16:29:15 +02:00
Joakim Nohlgård
da4f2f6e6e Merge pull request #6892 from neiljay/pr/mips-newlib-v2
cpu/mips: Integrate better with RIOT newlib layer (v2)
2017-07-20 00:27:51 +02:00
Francois Berder
9277ff005c cpu: pic32: Implement HW RNG driver
Signed-off-by: Francois Berder <fberder@outlook.fr>
2017-07-19 23:08:55 +01:00
Joakim Nohlgård
2194a3366e kinetis: Update documentation for periph drivers 2017-07-19 17:36:56 +02:00
Joakim Nohlgård
57b32f5c66 cpu/k22f: Add GPIO compatibility definitions to vendor headers 2017-07-18 08:39:21 +02:00
Joakim Nohlgård
4ceb71e719 cpu/k22f: Add Freescale/NXP Kinetis K22F 2017-07-18 08:39:21 +02:00
Joakim Nohlgård
de8f0b62d9 kinetis: Handle ADC modules without extra ADICLK divider
Newer CPUs have alternate clock sources on ADICLK=1 instead of Bus/2
2017-07-18 08:39:21 +02:00
Joakim Nohlgård
676df9a0d7 kinetis: Add support for alternate location for ADC1 clock gate 2017-07-18 08:39:21 +02:00
Joakim Nohlgård
156c7ec58c boards/frdm-common: Introduce frdm-common for shared files for all FRDM boards 2017-07-18 08:39:21 +02:00
Neil Jones
54eb49af4d mips: syscalls: supress ccpcheck error 2017-07-17 17:17:44 +01:00
Francisco Acosta
1523186f99 Merge pull request #7209 from kYc0o/mcuboot_nrf52dk
Add MCUBoot linking options for RIOT images
2017-07-17 15:12:57 +02:00
kYc0o
3b6fad4dde cpu/cortexm_common: add image headers default size 2017-07-17 14:48:30 +02:00
kYc0o
41e9884b20 cpu/nrf52: add alignment and image header sizes for bootlaoder usage 2017-07-17 14:48:29 +02:00
kYc0o
1a52c80bf4 cpu/cortexm_common/ldscripts: add multislot variables 2017-07-17 14:48:28 +02:00
kYc0o
7137b7d5c4 cpu/nrf52/ldscripts: extend script for multislot usage 2017-07-17 14:48:28 +02:00
Dan Evans
354803110d samd21:DFLL bug 2017-07-13 13:09:42 -06:00
Hauke Petersen
10d357e847 cpu/msp430: call periph_init during CPU init 2017-07-13 14:21:30 +02:00
smlng
ce7f170972 cpu, cc26x0: add missing Makefile.feature, with pm 2017-07-10 14:50:15 +02:00
smlng
e94672599d cpu, cc2538: gpio helper functions 2017-07-07 11:57:07 +02:00
Anon Mall
c4584aca2b gpio interrupt fix 2017-07-04 00:03:13 +02:00
268c6b647e drivers/can: fix doxygen documentation + typo 2017-07-03 20:43:51 +02:00
0ccc264538 drivers: initial implementation of sx127x radio (LoRa mode only) 2017-06-30 19:00:40 +02:00
Peter Kietzmann
afbb00cca7 Merge pull request #7225 from dnahm/atmega_spi
cpu/atmega_common: adjust spi for at328p and at1281
2017-06-30 08:53:10 +02:00
dnahm
af34c87a8d cpu/atmega_common: adjust spi for at328p and at1281 2017-06-30 08:34:47 +02:00
122076976d Merge pull request #7274 from smlng/cpu/periph/spi/const
cpu, periph: retain constness in spi_transfer_bytes
2017-06-29 16:03:28 +02:00
smlng
01af6d94c4 cpu, periph: retain constness in spi_transfer_bytes 2017-06-29 15:47:13 +02:00
Martine Lenders
abe2d44861 Merge pull request #7041 from OTAkeys/pr/stm32f413vg
cpu/stm32f4: add stm32f413vg support
2017-06-29 14:48:14 +02:00
Hauke Petersen
73ede74cd8 cpu/stm32: unified and cleaned up DAC driver
- removed neccessity to define empty `DAC_NUMOF 0` for each STM
  base board
- adapted all board configs to this
- joined stm32f2 to use common DAC driver
- improved code of DAC driver
2017-06-29 13:03:12 +02:00
49c1725d98 Merge pull request #7249 from haukepetersen/opt_dac_doc
drivers/dac: clarified doc and named return values
2017-06-29 12:29:05 +02:00
Hauke Petersen
30ef5d0a30 cpu/sam3: added ADC implementation 2017-06-28 22:03:11 +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
11893d8e5f cpu/lm4f120 fix cpuid cleanup
remove dangling CPUID_LEN macro left after fe75996c that caused some
code to wronlgy believe this cpu has cpuid_get().
2017-06-28 16:54:37 +02:00
Marc Poulhiès
685b42c9a2 cpu/lm4f120: SPI support 2017-06-28 16:54:37 +02:00
Neil Jones
af70c0844c mips: Clean-up makefiles 2017-06-28 12:56:54 +01:00
Neil Jones
9d736dc4eb cpu/mips32r2: Add UHI sycalls implementation. 2017-06-28 12:10:08 +01:00
277189ef05 cpu: k60: remove ssp code 2017-06-27 18:05:14 +02:00
Hauke Petersen
a2bc258af0 drivers/dac: clarified doc and named return values
- added more comprehensive doc to dac_init and dac_set
- named return values for dac_init
- use named return values in existing implementations
2017-06-27 12:52:12 +02:00
901404ecae cpu: stm32f4: i2c: fix some problems 2017-06-27 10:41:44 +02:00
Dan Evans
08224bd85a samd21/clock: add xosc32/DFLL option 2017-06-26 10:42:23 -06:00
067231936f Merge pull request #5793 from OTAkeys/pr/can_stack
can: add a CAN stack for RIOT
2017-06-26 16:02:35 +02:00
smlng
bb82789644 cc2538: fix cppcheck warning in periph i2c driver 2017-06-26 15:29:04 +02:00
smlng
692cf96297 doc: fix doxygen grouping of cpu periph drivers 2017-06-26 14:42:11 +02:00
Vincent Dupont
2e97664c37 cpu/stm32f4: fix vector definition for stm32f413 2017-06-26 10:46:15 +02:00
Vincent Dupont
ecbe64d6f5 cpu/stm32f4: add stm32f413vg support 2017-06-26 10:46:15 +02:00
Martine Lenders
b75479c442 Merge pull request #6332 from ant9000/saml21_i2c_support
SAM L21 i2c support
2017-06-23 22:26:03 +02:00
c59a7d83c7 cpu/stm32f4: update stm32f412zx vendor cmsis version 2017-06-23 17:02:29 +02:00
Francisco Acosta
cd824c3bc2 Merge pull request #6723 from aabadie/nucleo144_f412
boards/nucleo144-f412: initial support
2017-06-23 15:29:41 +02:00
Antonio Galea
dae3472d49 cpu/sam0_common: add saml21 i2c driver adaption 2017-06-23 11:19:56 +02:00
1d062a93d7 Merge pull request #7125 from kbumsik/mkr-fix
cpu/samd21: Added CPU_MODEL_SAMD21G18A interrupt config
2017-06-22 16:00:39 +02:00
8b3082da82 cpu/stm32l0: add support for stm32l072cz 2017-06-21 15:08:41 +02:00
Joakim Nohlgård
f516717907 lpc11u34: Remove short name macros for GPIO modes
... and replace with a GPIO bitmask generator macro instead.
The short macro names in the original implementation were prone to
collisions or other problems with user applications and library code.
2017-06-21 13:15:56 +02:00
42830d2308 Merge pull request #6916 from gebart/pr/cortexm3-bitband
cpu: Add bit manipulation macros for Cortex-M
2017-06-21 12:47:41 +02:00
Joakim Nohlgård
ca1e32977f kinetis: Fix typo in periph_cpu.h 2017-06-21 12:31:49 +02:00
Vincent Dupont
68f1ea8fd0 native: add a CAN device using socketCAN 2017-06-19 15:36:20 +02:00
biboc
0e41861db0 Change my email address:
<baptiste.clenet@xsoen.com>
to
<bapclenet@gmail.com>
2017-06-19 10:38:16 +02:00
a6fcbcde9c Merge pull request #7159 from OTAkeys/pr/stmclk_f2
cpu/stm32f2: implement stmclk interface for stm32f2
2017-06-15 19:09:57 +02:00
9dadb9cbaf Merge pull request #7158 from OTAkeys/pr/stmclk_f4
cpu/stm32f4: implement stmclk interface for stm32f4
2017-06-15 11:23:24 +02:00
Joakim Nohlgård
54b68844e0 Merge pull request #7165 from mfrey/kinetis-uart
kinetis: Use 9 bit UART config for 8E1, 8O1 modes
2017-06-13 09:04:04 +02:00
Francisco Acosta
5f0b8e5b80 Merge pull request #6978 from gebart/pr/kinetis-mcg
kinetis: MCG improvements
2017-06-12 23:27:39 +02:00
Michael Frey
282dafdd25 kinetis: Use 9 bit UART config for 8E1, 8O1 modes 2017-06-11 18:34:27 +02:00
Joakim Nohlgård
a63c0a84a6 kinetis: Use bit.h functions 2017-06-09 05:19:13 +02:00
Joakim Nohlgård
dc3aa13e90 cortexm_common: Introduce bitbanding macros 2017-06-09 05:19:13 +02:00
Vincent Dupont
73e0fa25e4 cpu/stm32f2: convert to stmclk 2017-06-08 19:10:55 +02:00
Vincent Dupont
91e601280c cpu/stm32f2: update vendor headers 2017-06-08 19:10:55 +02:00
Dan Evans
4cc0e585d1 sam0/adc: assert resolution check fix 2017-06-08 11:04:11 -06:00
ed4d9003cc cpu/stm32f7: add support for stm32f767zi 2017-06-08 17:35:22 +02:00
Vincent Dupont
22399d4b06 cpu/stm32f4: implement stmclk functions 2017-06-08 16:51:17 +02:00
Vincent Dupont
c0400100cc cpu/stm32f4: update vendor headers 2017-06-08 16:51:17 +02:00
750b98c541 cpu/stm32l0: add I2C driver 2017-06-08 09:38:45 +02:00
Hauke Petersen
3cf30e4165 Merge pull request #7128 from haukepetersen/opt_cortexm_m0pvtor
cpu/cortexm: set VTOR for selected M0+ CPUs
2017-06-07 11:12:23 +02:00
Francisco Acosta
6df211383e Merge pull request #5366 from haukepetersen/add_flashrom_samd21
cpu/samd21: added flashpage driver implementation
2017-06-06 15:54:04 +02:00
joris
6a5da1c1f7 cpu/stm32-common: add RTC support to stm32l0
Signed-off-by: joris <laborde.joris@gmail.com>
2017-06-02 20:03:09 +02:00
Hauke Petersen
a1499f4190 cpu: add and use shared code for timer_set() 2017-06-02 12:21:56 +02:00
Hauke Petersen
fd981dff22 cpu/cortexm: set VTOR for selected M0+ CPUs 2017-06-02 11:53:59 +02:00
Hauke Petersen
4e29dce36b cpu/samd0: added flashpage driver implemenation 2017-06-02 11:32:34 +02:00
Joakim Nohlgård
91d930c574 cpu/mips32r2_common: ifdef __attribute__((optimize))
Causes compilation error on Clang
2017-06-02 10:24:44 +01:00
Joakim Nohlgård
14ec5237a1 cpu/mips: Integrate better with RIOT newlib layer
- Copied the relevant parts of mipshal.mk from the toolchain
 - Cleaned up CFLAGS and more in Makefile.include
 - Added empty syscalls implementation which can be used to interface
   with the UHI system
 - Added a note on why -std=gnu99 is necessary for this CPU presently
2017-06-02 10:24:43 +01:00
Bumsik Kim
ab7ab168fb samd21: Added CPU_MODEL_SAMD21G18A interrupt config 2017-06-01 15:40:07 -04:00
Hauke Petersen
9e995dde81 cpu/stm32f1: remove unused cpu_clock_scale 2017-06-01 18:52:15 +02:00
Joakim Nohlgård
7548c509e6 Merge pull request #7101 from haukepetersen/opt_kinetis_rmsymlinks
cpu/kinetis: prevent use of symlinks for ld-scripts
2017-06-01 06:35:43 +02:00
Cenk Gündoğan
044fac8d17 native: add break to satisfy compiler gcc-7.1.1
Building any application with gcc 7.1.1 fails with the following error:

```
~/RIOT % make -C examples/hello-world
make: Entering directory 'RIOT/examples/hello-world'
Building application "hello-world" for "native" with MCU "native".

"make" -C RIOT/boards/native
"make" -C RIOT/boards/native/drivers
"make" -C RIOT/core
"make" -C RIOT/cpu/native
RIOT/cpu/native/startup.c: In function ‘startup’:
RIOT/cpu/native/startup.c:292:17: error: this statement may fall through [-Werror=implicit-fallthrough=]
       usage_exit(EXIT_SUCCESS);
       ^~~~~~~~~~~~~~~~~~~~~~~~
RIOT/cpu/native/startup.c:293:13: note: here
   case 'i':
   ^~~~
cc1: all warnings being treated as errors
make[2]: *** [RIOT/Makefile.base:81: RIOT/examples/hello-world/bin/native/cpu/startup.o] Error 1
make[1]: *** [RIOT/Makefile.base:20: ALL--RIOT/cpu/native] Error 2
make: *** [RIOT/examples/hello-world/../../Makefile.include:297: all] Error 2
make: Leaving directory 'RIOT/examples/hello-world'
```

```
% gcc --version
gcc (GCC) 7.1.1 20170528
Copyright (C) 2017 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
```

fixed by adding a `break` statement after `usage_exit()`
2017-05-30 13:56:17 +02:00
Joakim Nohlgård
8efb714edd kinetis/mcg: Use {} for empty while loops 2017-05-30 08:50:30 +02:00
Joakim Nohlgård
5c34eb4e2c kinetis: Add support for low-end MCG without PLL
Found in Kinetis L series, among others
2017-05-30 08:50:30 +02:00
Joakim Nohlgård
a8450f2952 kinetis: Simplify MCG state traversal algorithm
The new implementation uses a precalculated map of which mode to switch
to next if going from mode A to mode B. This simplifies the
implementation for moving between modes which are not direct neighbors.
See mcg.h documentation for a diagram of the state machine for the
clocking modes. Also found in the CPU reference manual of all Kinetis
CPUs, MCG chapter, MCG mode state diagram.
2017-05-30 08:50:30 +02:00
Joakim Nohlgård
f9ed160fe2 cpu/kinetis_common: Add state graph to MCG documentation 2017-05-30 08:50:30 +02:00
Joakim Nohlgård
f6073c0aa4 Merge pull request #6993 from gebart/pr/kinetis-isr
kinetis: Unify default ISR definitions
2017-05-30 08:48:50 +02:00
Hauke Petersen
9b7ece6827 cpu/kinetis: prevent use of symlinks for ld-scripts
The use of symbolic links leads to trouble in certain environments
(e.g. vagrant under Win). This PR gets rid of symlinks and uses
variables in the Makefiles to map to the correct linkerscripts
instead.
2017-05-26 16:07:48 +02:00
Martine Lenders
d4693648ba Merge pull request #7095 from kaspar030/add_headerguard_check_script
dist: tools: add headerguard check script
2017-05-24 18:08:29 +02:00
0fcc7d3834 cleanup: apply headerguard script output 2017-05-24 17:54:02 +02:00
a65931c04a add some missing header guards 2017-05-24 17:54:01 +02:00
Hauke Petersen
867b09c224 cpu/kinetis: make UART mode configurable per board 2017-05-24 14:48:49 +02:00
dfe55b6dec cpu/stm32f4: add support for smt32f412zg 2017-05-19 13:29:26 +02:00
Hauke Petersen
31dfe382a3 net/gnrc/eth: enable filtering of L2 addresses 2017-05-18 15:24:25 +02:00
dce3015e0c Merge pull request #7051 from OTAkeys/pr/stm32f7discovery
boards: add stm32f769 discovery
2017-05-17 19:24:03 +02:00
Vincent Dupont
460608cc7a cpu/stm32_common: add support of stm32f7 to RTC driver 2017-05-17 15:32:42 +02:00
Vincent Dupont
a7acc844c7 cpu/stm32f7: add support of stm32f769 2017-05-17 15:32:42 +02:00
Hauke Petersen
58cb30db6b Merge pull request #7060 from haukepetersen/opt_cpu_isrstacksizecleanup
cpu: remove ISR stack related placeholders
2017-05-16 10:44:52 +02:00
d768f5b357 cpu/sam0_common: add support for MCU used in Arduino MKR1000 board 2017-05-16 10:14:59 +02:00
8501a03cbc cleanup: apply enable_debug_false.cocci to codebase (coccinelle)
Skipped sys/cbor/cbor.c, examples/microcoap_server/microcoap_sock.c,
as they use different semantics.
2017-05-15 18:45:43 +02:00
Hauke Petersen
de4611f830 Merge pull request #6989 from photonthunder/samd21_waitstates
samd21/cpu:waitstates for low voltage
2017-05-15 11:48:39 +02:00
Hauke Petersen
5d5d4dc5a6 Merge pull request #6652 from hamilton-mote/spi-wtf
periph/spi: power regression
2017-05-15 09:17:28 +02:00
3d48eee095 cleanup: apply remove_atoi_casts.cocci (coccinelle) 2017-05-13 12:39:48 +02:00
6b0cf6a728 Merge pull request #7027 from dylad/saml21_adc
saml21/adc: initial support
2017-05-12 23:33:47 +02:00
Dan Evans
7a8551574b samd21/cpu:waitstates for low voltage 2017-05-12 14:13:09 -07:00
dylad
44dd56c3e8 sam0/adc: merged samd21 & saml21 adc driver
Signed-off-by: dylad <dylan.laduranty@mesotic.com>
2017-05-12 21:02:17 +02:00
Michael Andersen
20ee531486 periph/spi: hotfix for power regression 2017-05-12 10:24:47 -07:00
Hauke Petersen
9aad0e528f cpu: cleanup unused/umimplemented isr stack code
- removed ISR_STACKSIZE define where unused (set to 0)
- removed thread_arch_isr_stack_usage(), thread_arch_isr_stack_start(),
  and/or thread_arch_isr_stack_pointer() where not implemented
2017-05-12 18:07:08 +02:00
Martine Lenders
044ac554dd Merge pull request #7038 from haukepetersen/opt_sam0_sam0htovendor
cpu/sam0: move sam0.h to vendor header tree
2017-05-11 16:34:14 +02:00
8f239e4c61 Merge pull request #6812 from haukepetersen/fix_cortexm_usecommonsleep
cpu/sam0|stm32: use common cortexm_sleep()
2017-05-11 14:44:05 +02:00