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

2780 Commits

Author SHA1 Message Date
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
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
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
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
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
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
Hauke Petersen
21d97c6aa7 cpu/sam0: move sam0.h to vendor header tree 2017-05-11 12:33:22 +02:00
dylad
55de3781ca saml21/adc: initial support
Signed-off-by: dylad <dylan.laduranty@mesotic.com>
2017-05-09 22:14:54 +02:00
Hauke Petersen
7079d481c7 cpu/stm32: added support for STM32F7 2017-05-08 09:16:12 +02:00
Hauke Petersen
10a7486246 cpu/cortex_common: added support for Cortex-M7 2017-05-08 09:16:11 +02:00
e18acd2078 Merge pull request #7009 from kbumsik/io1-fix
SAMD21/SAMR21: Add more ADC lines
2017-05-07 11:32:42 +02:00
Bumsik Kim
dfba4394c6 cpu/samd21: move adc channel struct definition to periph_cpu.h 2017-05-05 10:19:39 -04:00
Hauke Petersen
a7e54e10c0 driver/nrfmin: add get MAX_PACKET_SIZE option 2017-05-05 13:59:18 +02:00
Hauke Petersen
f875c3efc2 cpu/cortexm: s/cpu_sleep_until_.../cortexm_sle.../ 2017-05-04 13:45:11 +02:00
7fb528ef76 cpu/stm32f1: fix build issue with iotlab-m3 (arm-none-eabi-gcc 4.9.3) 2017-05-03 15:01:09 +02:00