Hauke Petersen
c7f54c1189
cpu/nrf51822: added custom GPIO_UNDEF define
2015-06-14 16:15:19 +02:00
Hauke Petersen
d748d4ba4f
cpu/atmega2560: removed empty gpio.c file
2015-06-14 16:14:48 +02:00
Hauke Petersen
4d34100585
cpu/atmega2560: adapted to changed GPIO driver IF
2015-06-12 19:10:49 +02:00
Hauke Petersen
5abd2ffc0a
cpu/native: added periph_cpu.h
2015-06-12 19:10:49 +02:00
Hauke Petersen
480d3c68d8
cpu/stm32l1: adjusted to changed GPIO interface
2015-06-12 19:10:49 +02:00
Hauke Petersen
6284bbbbe4
cpu/stm32f1: adjusted to changed GPIO interface
2015-06-12 19:10:49 +02:00
Hauke Petersen
f9bb383118
cpu/stm32f0: adjusted to changed GPIO interface
2015-06-12 19:10:49 +02:00
Hauke Petersen
854730cfa4
cpu/sam3x8e: adjusted to changed GPIO interface
2015-06-12 19:10:49 +02:00
Hauke Petersen
17c8640708
cpu/lpc1768: added periph_cpu.h
2015-06-12 19:10:49 +02:00
Hauke Petersen
d7f659db71
cpu/kinetis_common: adjusted to changed GPIO if
2015-06-12 19:10:49 +02:00
Hauke Petersen
47e8472949
cpu/cc2538: adjusted to changed GPIO interface
2015-06-12 19:10:49 +02:00
Hauke Petersen
55db7008d8
cpu/nrf51822: remodeled GPIO driver implementation
2015-06-12 19:10:48 +02:00
Hauke Petersen
368f5fb64f
cpu/samd21: remodeled GPIO driver implementation
2015-06-12 19:10:48 +02:00
Hauke Petersen
aeecb09883
cpu/saml21: remodeld GPIO driver implementation
2015-06-12 19:10:48 +02:00
Hauke Petersen
3a2d89f88d
cpu/stm32f3: remodeled GPIO driver implementation
2015-06-12 19:10:48 +02:00
Hauke Petersen
69d16af81c
cpu/stm32f4: remodeled GPIO implementation
2015-06-12 19:10:48 +02:00
Katja Kirstein
4abb2bbfc6
Nucleo-f303 initial commit
2015-06-12 18:45:25 +02:00
Peter Kietzmann
98312452ce
Merge pull request #3170 from A-Paul/sam3x8e-periph-pwm
...
cpu/sam3x8e: Add pwm implementation
2015-06-12 16:09:08 +02:00
Andreas "Paul" Pauli
ba66a3d63f
cpu/sam3x8e: add pwm peripheral driver
2015-06-12 11:15:23 +02:00
ce8b47b75c
cpu: cortexm_common: set default value for CPU_MODEL
2015-06-11 20:41:21 +02:00
haukepetersen
e32b6c9504
cpu/native: improved error msg for netivenet
2015-06-11 15:40:40 +02:00
daniel-k
9703d324f6
samd21/rtt: fix bug in rtt_set_alarm that caused interrupt immediately after calling
2015-06-08 15:37:22 +02:00
Hauke Petersen
d9deb569b2
cpu/samd21: added peripheral PWM driver
2015-06-05 11:19:48 +02:00
bapclenet
217815c48d
Merge pull request #3034 from haukepetersen/opt_samr21
...
cpu/samd21: added cpu clock configuration code
2015-06-05 09:35:58 +02:00
Joakim Gebart
65f088a246
kinetis: hwtimer refactor/rewrite
...
- Use hwtimer_set for hwtimer_set_absolute()
- Collect hwtimer statistics with #if ENABLE_STATS
- Assembler optimized functions for CNR handling
- Correct off-by-1 after counter reset
- Defer CMR update from hwtimer_unset until ISR fires
2015-06-04 14:25:29 +02:00
Hauke Petersen
164721657d
cpu/samd21: added cpu clock configuration
...
- choosable between PLL and internal 8MHz osciallator
- configurable to a wide range of frequencies
2015-06-04 11:58:26 +02:00
Joakim Gebart
7a9f6f9796
Merge pull request #3140 from gebart/pr/kinetis-hwtimer-isr-off-by-1
...
kinetis: hwtimer fix off-by-1 in LPTMR ISR
2015-06-02 19:23:10 +02:00
Hauke Petersen
401adb8b58
Merge pull request #3018 from kaspar030/saml21_add_rtt
...
saml21: add periph rtt support
2015-06-02 16:21:23 +02:00
369a47aa35
Merge pull request #3099 from jfischer-phytec-iot/pr@kinetis-use-common-makefile
...
kinetis: adaption for common makefiles
2015-06-02 14:07:55 +02:00
Joakim Gebart
06c41108c7
kinetis: hwtimer fix off-by-1 in LPTMR ISR
2015-06-02 11:21:49 +02:00
Joakim Gebart
6e12503937
mulle: remove device map
2015-05-31 18:31:17 +02:00
Johann F
14542765a5
cpu/k60: use cortex common makefile and newlib module
2015-05-31 18:25:57 +02:00
Johann Fischer
002ba9b334
cpu/kw2x: use cortex common makefile and newlib module
2015-05-31 18:24:15 +02:00
Johann Fischer
072d0a80c7
cpu/kinetis_common/ldscripts: adapt for newlib module
2015-05-31 18:24:05 +02:00
Johann Fischer
7bc468a54e
Makefile.include.cortex_common: enhancement for kinetis_common
...
Add a exception for common startup
2015-05-31 18:24:05 +02:00
Joakim Gebart
fc92ec98bf
cortexm: CMSIS: Add extern "C" to CMSIS headers
2015-05-31 17:27:24 +02:00
Joakim Gebart
1cfb11bcde
cortexm: CMSIS: Suppress cppcheck error about uninitialized result
...
False positive, the variable result is assigned from within inline assembly
2015-05-31 17:27:24 +02:00
Joakim Gebart
9511027946
cortexm: CMSIS: Replace tabs by spaces
2015-05-31 17:27:24 +02:00
Joakim Gebart
5bfed6c3f7
cortexm: Update CMSIS to v4.3
...
found at www.arm.com/cmsis
2015-05-31 17:27:23 +02:00
Peter Kietzmann
6dc0e789e1
Merge pull request #3101 from gebart/pr/warning-fixes
...
Various warning fixes
2015-05-31 17:03:49 +02:00
Hauke Petersen
19ef9dbe4e
cpu/cortexm: raised ISR stack size to safer value
...
256 Byte were not enough for some boards (not sure why, yet).
So go back to 512 byte as a save (and known working value).
2015-05-31 12:00:17 +02:00
Joakim Gebart
79ca190666
lpc2387: Add missing exception tables to linker script
...
Copied from kinetis_common
2015-05-31 09:55:49 +02:00
Hauke Petersen
744ec88a74
cpu: use cortexm common linkerscript
2015-05-30 13:43:19 +02:00
Hauke Petersen
8752894cc9
cpu/cortexm: added base linkerscript
2015-05-30 13:43:19 +02:00
Joakim Gebart
c09a8484e2
cortexm: Move ldscripts into separate directory
...
Less clutter inside the cpu/* directories by placing linker scripts
under cpu/*/ldscripts/CPUNAME.ld
2015-05-30 12:20:07 +02:00
Joakim Gebart
68ee0f7c77
Merge pull request #3112 from haukepetersen/fix_cortex_fpu
...
cpu/cortexm: disabled hard floats for M4F CPUs
2015-05-30 09:30:39 +02:00
Joakim Gebart
41e1b57624
Merge pull request #3100 from haukepetersen/opt_cortexm_init
...
cpu: centralized cortex initialization and some defines
2015-05-30 09:21:46 +02:00
9ecaea4038
Merge pull request #2848 from haukepetersen/fix_samr21_optimization
...
cpu/samd21: remove -O0 override
2015-05-29 16:49:55 +02:00
Hauke Petersen
f48ea33805
cpu/stm32l1: adapted to centralized cpu conf
2015-05-29 16:44:52 +02:00
Hauke Petersen
0e61ec097c
cpu/stm32f1: adapted to centralized cpu conf
2015-05-29 16:44:52 +02:00
Hauke Petersen
79d9391d3b
cpu/stm32f4: adapted to centralized cpu conf
2015-05-29 16:44:52 +02:00
Hauke Petersen
c6d65fec8b
cpu/stm32f3: adapted to centralized cpu conf
2015-05-29 16:44:52 +02:00
Hauke Petersen
cb476daff0
cpu/stm32f0: adapted to centralized cpu conf
2015-05-29 16:44:52 +02:00
Hauke Petersen
dfb717c308
cpu/samd21: adapted to centralized cpu conf
2015-05-29 16:44:52 +02:00
Hauke Petersen
3c48722e0f
cpu/saml21: adapted to centralized cpu conf
2015-05-29 16:44:52 +02:00
Hauke Petersen
4d3b147122
cpu/sam3x8e: adapted to centralized cpu conf
2015-05-29 16:42:05 +02:00
Hauke Petersen
a97cdaaf8d
cpu/nrf51822: adapted to centralized cpu conf
2015-05-29 16:42:05 +02:00
Hauke Petersen
aa728e0506
cpu/lpc1768: adapted to centralized cpu conf
2015-05-29 16:42:05 +02:00
Hauke Petersen
6102896f7a
cpu/kw2x: adapted to centralized cpu conf
2015-05-29 16:42:05 +02:00
Hauke Petersen
de31e1f9e8
cpu/kinetis_common: fixes to fault_handlers
2015-05-29 16:42:05 +02:00
Hauke Petersen
d4d34a782e
cpu/k60: adapted to centralized cpu conf
2015-05-29 16:42:05 +02:00
Hauke Petersen
52e51bfea1
cpu/cc2538: adapted to centralized cpu conf
2015-05-29 16:42:05 +02:00
Hauke Petersen
78d65a4dec
cpu/cortexm_common: centralized init and defines
...
- added a centralized core implementation for all cortex CPUs
- moved default stack size defines to cpu.h in cortexm_common
- moved uart0 bufsize define to cpu.h in cortexm_common
- moved typed of panic_t to cpu.h in cortexm_common
2015-05-29 16:42:05 +02:00
Joakim Gebart
ea597a3bf3
stm32f4: random fix sign-compare
2015-05-29 14:23:02 +02:00
Joakim Gebart
18ea5561f8
stm32f4: spi_transfer_bytes fix sign-compare, reduce scope
2015-05-29 14:23:02 +02:00
Joakim Gebart
13bdc21c9e
stm32f4: i2c_init_slave fix unused-parameter
2015-05-29 14:23:01 +02:00
Joakim Gebart
12cfb8deef
k60: fix unused-parameter warnings
2015-05-29 14:23:01 +02:00
Joakim Gebart
697b85c182
kinetis: fix SPI double initialization warnings
2015-05-29 14:23:01 +02:00
Joakim Gebart
ec3679fd13
kinetis: spi_init_slave add missing callback assignment
2015-05-29 14:23:01 +02:00
Joakim Gebart
d4c1436de9
kinetis: fix warnings
...
- find_closest_x: sign-compare
- hwtimer_arch: unused-parameter
- i2c_init_slave: unused-parameter
- rnga: sign-compare
- rngb: sign-compare
- spi_transfer_bytes: sign-compare
- spi_transfer_regs: sign-compare
- timer: unused-parameter
2015-05-29 14:21:52 +02:00
Joakim Gebart
8a34b15964
cortexm_common: Conditionally define __set_FPSCR
...
It is an error to call __set_FPSCR if no FPU is present in the CPU.
2015-05-29 14:16:35 +02:00
Hauke Petersen
f3a7515d34
cpu/cortexm: disabled hard floats for M4F CPUs
2015-05-29 13:56:41 +02:00
Hauke Petersen
bca23c410b
cpu/saml21: use core_panic in startup.c
2015-05-29 12:55:13 +02:00
Hauke Petersen
93fe62f975
cpu/saml21: removed non-existent exception handlers
2015-05-29 12:55:13 +02:00
Hauke Petersen
c91a0983c0
cpu/saml21: fixed some formatting in startup.c
2015-05-29 12:52:30 +02:00
Hauke Petersen
32410bbfe5
cpu/samd21: set optimization level to -Os
2015-05-29 12:15:40 +02:00
haukepetersen
36a99a0c70
cpu/msp430-common: removed e|dINT calls
2015-05-29 12:07:57 +02:00
haukepetersen
38f4fc7027
cpu/samd21: moved -O0 from board to cpu
2015-05-28 19:30:07 +02:00
haukepetersen
0d5c8546f3
cpu: adapted Makefiles to unified cortexm module
2015-05-28 19:30:07 +02:00
Hauke Petersen
b8dd144e03
cpu: unified cortexm_common folder
...
- removed coretx-m[0|3|4]
- moved their content to cortexm_common
- adjusted cortex Makefiles to this new name
- adjusted cortex Makefiles new structure
2015-05-28 19:30:07 +02:00
Hauke Petersen
a5e4b02ed8
cpu: fixed doxygen for multiple headers
2015-05-28 15:45:05 +02:00
Hauke Petersen
9943f51080
global: renamed cpu-conf.h into cpu_conf.h
2015-05-28 15:45:05 +02:00
Peter Kietzmann
6e8096c4ea
Merge pull request #3079 from haukepetersen/opt_stm_hwtimercompat
...
cpu: use hwtimer_compat module for STM CPUs
2015-05-28 14:55:22 +02:00
Peter Kietzmann
8e5541757d
Merge pull request #2911 from neumodisch/driver_i2c_stm32f3
...
boards: Implemented i2c functionality for the stm32f3discovery board
2015-05-27 15:12:11 +02:00
Johann Fischer
d1566254d9
Merge pull request #2982 from gebart/pr/openocd-verify-watchdog
...
kinetis_common: Disable watchdog between flashing and verifying image
2015-05-27 14:45:09 +02:00
Oleg Hahm
e857ca7f51
Merge pull request #2933 from gebart/pr/atomic-set-return-deprecated
...
core: remove atomic_set_return
2015-05-27 12:33:39 +02:00
Jan Pohlmann
50b8a96322
cpu/stm32f3: Initial import of the i2c driver.
2015-05-27 11:37:15 +02:00
Johann Fischer
c56afd9575
kinetis: Add check-fcfield-elf.sh
...
Checks an ELF file for a correctly set flash configuration field.
2015-05-27 10:30:33 +02:00
Joakim Gebart
5afd93f29e
kinetis: Add check-fcfield-hex.sh
...
Checks a .hex file for a correctly set flash configuration field.
2015-05-27 10:30:33 +02:00
Joakim Gebart
a745de3ef5
kinetis: Add watchdog disable code snippet
2015-05-27 10:30:21 +02:00
Hauke Petersen
b56ed06a5e
cpu/stm32l1: make use of hwtimer_compat module
2015-05-27 10:02:37 +02:00
Hauke Petersen
669544daaa
cpu/stm32f4: make use of hwtimer_compat module
2015-05-27 10:02:37 +02:00
Hauke Petersen
5112eb874c
cpu/stm32f3: make use of hwtimer_compat module
2015-05-27 10:02:36 +02:00
Hauke Petersen
c51ba47c87
cpu/stm32f1: make use of hwtimer_compat module
2015-05-27 10:02:36 +02:00
Hauke Petersen
f6d4efae13
cpu/stm32f0: make use of hwtimer_compat module
2015-05-27 10:02:30 +02:00
e2aa1051bc
Merge pull request #3076 from haukepetersen/opt_saml21_makefiles
...
board/cpu saml21: cleaned Makefiles and unused files
2015-05-26 22:21:06 +02:00
haukepetersen
286a8f2aad
cpu/saml21: removed not needed files
...
- removed hwtimer_arch.c
- removed syscalls.c
2015-05-26 21:39:03 +02:00
4872e7c1ab
saml21: add RTT support
2015-05-26 21:31:45 +02:00
haukepetersen
c9b371bb7f
cpu/saml21: simplified Makefiles
...
- made use common Makefiles
- changed name of linkerscript
2015-05-26 21:31:42 +02:00
Joakim Gebart
8b6308d89b
x86: Remove atomic_set_return
2015-05-26 21:28:31 +02:00
Joakim Gebart
dc6ab7a3a0
arm7: Remove atomic.s
2015-05-26 21:28:31 +02:00
acd9c14ddb
Merge pull request #2776 from kaspar030/add_dev_eth_netdev2
...
sys: net: add netdev device driver using dev_eth low-level ethernet driver API
2015-05-26 21:24:56 +02:00
Hauke Petersen
42f38122c5
Merge pull request #2849 from kaspar030/saml21
...
cpu: saml21 initial commit
2015-05-26 21:13:55 +02:00
1c91baed8b
sys: net: add ng_netdev_eth netdev driver for dev_eth based ethernet devices
2015-05-26 21:05:19 +02:00
bd479a5564
cpu: saml21: adapt to new THREAD_ stacksize defines
2015-05-26 20:58:51 +02:00
cfd9a5905a
Merge pull request #2766 from kaspar030/add_dev_eth
...
sys: net: introduce low-level ethernet driver API
2015-05-26 19:28:14 +02:00
Hauke Petersen
138ac603de
Merge pull request #3033 from haukepetersen/fix_samd21_spi
...
cpu/samd21: fixed broken spi_transfer_byte function
2015-05-26 15:39:55 +02:00
Hauke Petersen
569f28f6d9
Merge pull request #2711 from haukepetersen/ng_nrf51prop
...
cpu/nrf51822: added minimal radio driver implementation
2015-05-26 15:39:34 +02:00
fbfb0954eb
cpu: native: add tap implementation of dev_eth (ng_nativenet)
2015-05-26 15:37:55 +02:00
Peter Kietzmann
68dd9a3996
Merge pull request #2865 from kaspar030/fix_samd21_gpio_compile_issue
...
cpu: samd21: fix gpio irq handling compile handling
2015-05-26 14:08:45 +02:00
302699eb02
make: move cpu specific CFLAGS into cpu makefile
2015-05-26 10:46:34 +02:00
107be4122c
board: samr21-xpro: adapt to common board Makefile
2015-05-26 10:46:34 +02:00
9dc0554d98
cpu: samd21: use cortex common makefile and newlib module
2015-05-26 10:46:33 +02:00
b6a92bc8f3
cpu: stm32l1: use cortex common makefile and newlib module
2015-05-26 10:46:29 +02:00
8a8d547711
cpu: stm32f4: use cortex common makefile and newlib module
2015-05-26 10:46:24 +02:00
2d680776ba
cpu: stm32f3: use cortex common makefile and newlib module
2015-05-26 10:46:24 +02:00
8ef7c5eaac
cpu: stm32f1: use cortex common makefile and newlib module
2015-05-26 10:46:24 +02:00
45d588c167
cpu: stm32f0: use cortex common makefile and newlib module
2015-05-26 10:46:19 +02:00
cad9cb42f6
cpu: sam3x8e: use cortex common makefile and newlib module
2015-05-26 10:46:19 +02:00
c0bdebd164
cpu: nrf51822: use cortex common makefile and newlib module
2015-05-26 10:46:11 +02:00
484c3e3697
cpu: lpc1768: use cortex common makefile and newlib module
2015-05-26 10:46:03 +02:00
6e6e1eb2b3
cpu: cc2538: use cortex common makefile and newlib module
2015-05-26 10:46:03 +02:00
b89a58fdb5
cpu: add common cortex Makefile.include
2015-05-26 10:45:40 +02:00
aff25936d1
cpu: samd21: fix gpio irq handling compile handling
2015-05-26 10:23:43 +02:00
Martine Lenders
b11eb90042
Merge pull request #3005 from authmillenon/od/fix/PRI.64
...
od: add PRI.64 for unsupported boards
2015-05-23 10:05:59 +02:00
Oleg Hahm
7be7e00ab9
Merge pull request #3042 from gebart/pr/doxygen-@file-remove-filename
...
everything: Remove filename from @file Doxygen command
2015-05-22 17:10:04 +02:00
Hauke Petersen
bac6b7fa97
Merge pull request #2954 from d00616/cpu_nrf51_lpm
...
cpu/nrf51822/lpm_arch: add __WFI
2015-05-22 13:45:44 +02:00
Martine Lenders
6d13c899c5
od: add PRI.64 for unsupported boards
2015-05-22 11:54:23 +02:00
af63254f4e
cpu: saml21 initial commit
...
basic port, uart, one timer, gpio, spi working.
2015-05-22 11:47:51 +02:00
Johann Fischer
31c0ea7358
Merge pull request #2994 from gebart/pr/kinetis-pwm-refactor
...
kinetis: Refactor PWM periph
2015-05-22 09:51:47 +02:00
Joakim Gebart
13832d8e62
everything: Remove filename from @file Doxygen command
2015-05-22 07:34:41 +02:00
Oleg Hahm
d0790ad034
Merge pull request #2993 from gebart/pr/kinetis-bitband-reg
...
kinetis: remove ambiguous BITBAND_REG macro
2015-05-21 19:18:33 +02:00
Lucas Jenß
742c39e838
Merge pull request #2881 from x3ro/clarify-stacksize-constants
...
Clarify and unify naming of thread-related constants (stacksize and priority)
2015-05-21 16:55:30 +02:00
Joakim Gebart
af3263b0a2
k60: Use BITBAND_REG32
...
- Use BITBAND_REG32 instead of BITBAND_REG for improved code readability.
- Remove BITBAND_PERIPH* from cpu-conf.h
- Remove BITBAND_REG from MK60D10.h, MK60DZ10.h
2015-05-21 11:00:50 +02:00
Joakim Gebart
e82ba82dc3
kinetis: Use BITBAND_REG32 instead of BITBAND_REG in random_rngb.c
2015-05-21 11:00:49 +02:00
Joakim Gebart
82d1432e07
k60: Add BITBAND_REG8,16,32 macros to MK60DZ10.h
...
For specifying the register access width. Copied from MK60D10.h.
2015-05-21 11:00:49 +02:00
Lucas Jenss
426170b064
Improve naming of thread stacksize/priority constants
...
As discussed in #2725 , this commit renames a number of stacksize constants to
better convey their intended usage. In addition, constants for thread priority
are given a `THREAD_` prefix. Changes are:
* KERNEL_CONF_STACKSIZE_PRINTF renamed to THREAD_EXTRA_STACKSIZE_PRINTF
* KERNEL_CONF_STACKSIZE_DEFAULT renamed to THREAD_STACKSIZE_DEFAULT
* KERNEL_CONF_STACKSIZE_IDLE renamed to THREAD_STACKSIZE_IDLE
* KERNEL_CONF_STACKSIZE_MAIN renamed to THREAD_STACKSIZE_MAIN
* Move thread stacksizes from kernel.h to thread.h, since the prefix changed
* PRIORITY_MIN renamed to THREAD_PRIORITY_MIN
* PRIORITY_IDLE renamed to THREAD_PRIORITY_IDLE
* PRIORITY_MAIN renamed to THREAD_PRIORITY_MAIN
* Move thread priorities from kernel.h to thread.h since the prefix has changed
* MINIMUM_STACK_SIZE renamed to THREAD_STACKSIZE_MINIMUM for consistency
2015-05-21 00:14:23 +02:00
Frank Holtz
ece408a96c
cpu/nrf51822/lpm_arch: add power modes
2015-05-20 20:30:12 +02:00
Oleg Hahm
8cb0e59283
Merge pull request #3030 from gebart/pr/tab-fixes2
...
Tab indentation fixes
2015-05-20 18:27:28 +02:00
Joakim Gebart
c85cc83a5a
kinetis: Refactor PWM periph implementation
...
- Set the proper prescaler value depending on requested frequency
- Return the actual achieved frequency in pwm_init
- Handle 1-8 channels depending on periph_conf.h instead of 4 fixed
- Perform function argument verification before touching the hardware
- Turn on PORT clock gate before touching PORT registers
- Eliminate some magic numbers
2015-05-20 06:16:42 +02:00
Hauke Petersen
f0d9574de1
cpu/samd21: fixed broken spi_transfer_byte function
2015-05-19 18:05:36 +02:00
Peter Kietzmann
b393e530da
Merge pull request #3024 from haukepetersen/fix_stm32f1_uart
...
cpu/stm32f1: fixed uart_init()
2015-05-19 14:43:03 +02:00
Joakim Gebart
ae5098bb9b
cpu/stm32f0/include/stm32f091xc.h: Replace tabs by spaces
2015-05-19 12:25:46 +02:00
Hauke Petersen
9878f78050
cpu/nrf51822: added minimal radio driver
...
This driver aims to behave like 802.15.4 devices do, supporting
short addressing, PAN ID and address broadcasts.
2015-05-19 10:02:57 +02:00
BytesGalore
369e7bbf43
Merge pull request #2540 from josephnoir/topic/cpp-stl-compatibility
...
Add replacement headers for std thread, mutex and condition_variable
2015-05-19 07:56:54 +02:00
haukepetersen
84be07f2ab
cpu/stm32f1: fixed uart_init()
...
- added linebreak to funtion declaration
- fixed saving of callback argument
2015-05-18 21:12:23 +02:00
Peter Kietzmann
b3e78ddc33
Merge pull request #3016 from gebart/pr/tab-indentation
...
Inconsistent indentation in some files
2015-05-18 15:45:15 +02:00
df7deccd25
Merge pull request #2976 from gebart/pr/cortex-m-initial-stack-alignment
...
cortex-m: initial stack alignment to 64bit
2015-05-18 15:01:30 +02:00
Joseph Noir
bddaee751d
Add replacement headers for thread, mutex and cond
...
These headers do not provide full stl functionality,
but a small subset:
* thread and this_thread
* condition_variable (some timed functions are missing)
* mutex, lock_guard and unique_lock
2015-05-18 13:57:02 +02:00
Martine Lenders
e53cdbb1b5
Merge pull request #3015 from gebart/pr/cppcheck-warnings
...
cppcheck drive-by fixes
2015-05-18 11:51:22 +02:00
Hauke Petersen
9e92ad5e89
Merge pull request #2948 from d00616/cpu_nrf51_poweropt_random
...
cpu/nrf51822/periph/random Power optimization
2015-05-18 10:41:44 +02:00
Joakim Gebart
273481455b
stm32l1: Replace tabs by spaces
2015-05-18 07:10:52 +02:00
Joakim Gebart
6000b29440
stm32f4: Replace tabs by spaces
2015-05-18 07:10:52 +02:00
Joakim Gebart
d0709d914e
stm32f1: Replace tabs by spaces
2015-05-18 07:10:52 +02:00
Joakim Gebart
04c445c17e
mc1322x: Replace tabs by spaces
2015-05-18 07:10:52 +02:00
Joakim Gebart
a595ab00af
lpc2387: Replace tabs by spaces
2015-05-18 07:10:52 +02:00
Joakim Gebart
dbb4ff1744
kw2x: Replace tabs by spaces
2015-05-18 07:10:52 +02:00
Joakim Gebart
0f23a9a599
cortex-m4: Replace tabs by spaces
2015-05-18 07:10:52 +02:00
Joakim Gebart
a0e6cc7504
cortex-m3: Replace tabs by spaces
2015-05-18 07:10:52 +02:00
Joakim Gebart
b39b4fc6d1
cortex-m0: Replace tabs by spaces
2015-05-18 07:10:52 +02:00
Joakim Gebart
01c5120039
cortex-m: Suppress cppcheck error about uninitialized result
...
False positive, the variable result is assigned from within inline assembly
2015-05-18 06:29:35 +02:00
Frank Holtz
85248ddec8
cpu: nrf51822/periph/random Power optimization
2015-05-16 10:39:30 +02:00
Joakim Gebart
43b9150460
stm32f4: pwm_init: return actual frequency
2015-05-16 10:17:02 +02:00
Joakim Gebart
018b6a73d4
stm32f3: pwm_init: return actual frequency
2015-05-16 10:17:02 +02:00
Joakim Gebart
8619bdec63
lpc2387: pwm_init: return actual frequency
2015-05-16 10:17:02 +02:00
Johann F
1d60d9870d
add support for Freescale MKW2x family devices
2015-05-15 08:05:43 +02:00
Joakim Gebart
76a49bc3d2
cortex-m3: Align initial stack pointer to 64 bits
...
AAPCS requires stack pointers to be aligned on a double word boundary.
In addition, Clang-3.6 assumes the stack pointer is always aligned to
a 8 byte boundary upon function entry, at least in armv7-m, causing
hard-to-find errors in the compiled code.
This is the same implementation as for the Cortex-M4
2015-05-13 09:17:07 +02:00
Joakim Gebart
eddd3177a5
cortex-m4: Align initial stack pointer to 64 bits
...
AAPCS requires stack pointers to be aligned on a double word boundary.
In addition, Clang-3.6 assumes the stack pointer is always aligned to
a 8 byte boundary upon function entry, at least in armv7-m, causing
hard-to-find errors in the compiled code.
2015-05-13 09:15:56 +02:00
Oleg Hahm
5079446beb
Merge pull request #2937 from gebart/pr/kinetis-unsuppress-cppcheck
...
kinetis: unsuppress variable scope warnings in rnga.c
2015-05-12 23:24:09 +02:00
bapclenet
3f2afcd596
Merge pull request #2918 from daniel-k/samd21_rtt
...
cpu/samd21: Add RTT driver
2015-05-11 10:31:13 +02:00
Oleg Hahm
68ab3aa046
Merge pull request #2958 from mryndzionek/ret_status_fix
...
Propagate the return status
2015-05-10 21:54:53 +02:00
Oleg Hahm
69f07c601f
Merge pull request #2949 from OlegHahm/crash_panic_foobar
...
core: panic unification
2015-05-10 21:54:43 +02:00
daniel-k
a31848ceb8
cpu/samd21: implement peripheral real time timer (periph/rtt)
2015-05-10 21:09:31 +02:00
mryndzionek
37f03c6f52
lpc1768: propagate the timer setting result up
2015-05-10 15:44:19 +02:00
Oleg Hahm
cb1f047f59
core: unified core_panic implementation
2015-05-10 11:58:43 +02:00
Oleg Hahm
828839316b
core: renamed crash.h to panic.h
2015-05-09 18:44:10 +02:00
Joakim Gebart
cc27846ac3
cpu/stm32f4/include/stm32f415xx.h: Trailing whitespace
2015-05-09 09:17:27 +02:00
Joakim Gebart
12554b1537
cpu/stm32f3/include/stm32f334x8.h: Unix line endings
2015-05-09 09:16:56 +02:00
Joakim Gebart
03745f7884
cpu/nrf51822: Unix line endings
2015-05-09 09:13:26 +02:00
Joakim Gebart
7a84faf8bc
cpu/lpc2387/linkerscript.x: Tabs->Spaces
2015-05-09 09:11:37 +02:00
Joakim Gebart
9ae63bac0b
cpu/atmega_common/avr-libc-extra/time.h: trailing whitespace
2015-05-09 09:10:41 +02:00
Joakim Gebart
e9c567107d
all: remove extra blank lines at the end
2015-05-09 09:10:08 +02:00
Joakim Gebart
64d7a5f55a
kinetis: unsuppress variable scope warnings in rnga.c
2015-05-08 21:25:55 +02:00
bapclenet
bfaa4ea1e3
Merge pull request #2929 from bapclenet/samr21/rtc_isr
...
samd21/rtc_safety_isr
2015-05-08 14:39:14 +02:00
bapclenet
fa571013ee
samr21/rtc safety isr
2015-05-07 20:18:49 +02:00
Joakim Gebart
f15fc173b9
arm7: Add ARCH_HAS_ATOMIC_SET_RETURN
2015-05-07 18:52:13 +02:00
René Kijewski
96ca6a6bef
x86: Add atomic_cas implementation
2015-05-07 18:52:13 +02:00
Joakim Gebart
afc1dd3a6d
cortex-m4: Add atomic_cas implementation
2015-05-07 18:52:13 +02:00
Joakim Gebart
b7db351400
cortex-m3: Add atomic_cas implementation
2015-05-07 18:52:13 +02:00
Joakim Gebart
46b9358e84
native: Remove generic atomic_set_return implementation
...
The removed implementation is the same as the generic implementation in core/atomic.c
2015-05-07 18:52:13 +02:00
Joakim Gebart
215ccc1213
core: Introduce atomic counters
...
- Move generic implementation of atomic_set_return to core/atomic.c
- Generic implementation of atomic compare and swap in core/atomic.c
- atomic_cas is used to implement atomic counters in core/include/atomic.h
- atomic_int_t is an atomic integer type
- ATOMIC_INIT can be used as an initializer for atomic_int_t
- ATOMIC_VALUE gets a reference to the value of an atomic integer
2015-05-07 18:52:13 +02:00
Joakim Gebart
988ae54e4f
cortex-m3_common: Homogenize documentation tags against Cortex-M0, Cortex-M4.
2015-05-07 18:52:13 +02:00
df3ed49305
cpu: samd21: switch to hwtimer compat wrapper
2015-05-06 12:04:53 +02:00
Peter Kietzmann
19425f56b0
Merge pull request #2872 from gebart/pr/kinetis-spi-slave-warnings
...
kinetis: Add SPI_[2-7] to spi_transmission_begin
2015-04-29 13:24:56 +02:00
Joakim Gebart
fd46cb2364
kinetis: Add SPI_[2-7] to spi_transmission_begin
...
Fix compiler warning about unhandled switch cases.
2015-04-28 22:21:57 +02:00
Hauke Petersen
6bf31c6e01
cpu/nrf51822: fixed spi_transfer_bytes
2015-04-28 16:01:48 +02:00
Oleg Hahm
3dd3bbb461
transceiver: use transceiver specific broadcast
2015-04-19 20:35:11 +02:00
Hauke Petersen
4a734d51ca
Merge pull request #2798 from FrancescoErmini/extend_sam3x_gpio
...
cpu/sam3x: extend gpio implementation
2015-04-17 11:52:50 +02:00
Peter Kietzmann
3922f6e04c
Merge pull request #2817 from jfischer-phytec-iot/pr@kinetis-enable-hwcs
...
kinetis_common: add a option to enable hardware CS for kinetis spi
2015-04-17 10:54:52 +02:00
Johann Fischer
36e89175b8
cpu/kinetis_common/spi.c: add a option to use hardware cs (PCS0 only)
...
minor fixes:
- get rid of compiler warning "value 'SPI_1' not handled in switch"
- add a giant macro to avoid redundant code in spi_init_master
2015-04-17 09:05:37 +02:00
Francesco Ermini
ca743ae97b
cpu/sam3x: extend gpio implementation
...
fix functions arguments
extended sam3x GPIO from 16 to 31
fix GPIO_NUMOF to 32
add GPIOs
extend GPIO 16-31 for ArduinoDue/UDOO
fix white space at the end gpio_clear
2015-04-15 17:56:00 +02:00
Hauke Petersen
5893ca8851
cpu/stm32f1: fixed GPIO interrupt cb arg handling
2015-04-15 15:39:57 +02:00
Peter Kietzmann
7c870f8730
Merge pull request #2767 from bapclenet/samr21/RTC
...
samr21/RTC
2015-04-10 11:11:00 +02:00
Oleg Hahm
c1ecccfbd8
Merge pull request #2282 from gebart/pr/k60-initial
...
Add support for Kinetis K60 CPUs and Eistec Mulle IoT board
2015-04-10 00:22:21 +02:00
Peter Kietzmann
33133c677e
Merge pull request #2701 from gebart/pr/kinetis-gpio-lut
...
kinetis: Refactor GPIO to use a look-up-table
2015-04-09 16:10:12 +02:00
Joakim Gebart
7f64920cd7
kinetis: Refactor GPIO to use a look-up-table
...
Saves a bunch of ROM space
mulle, gcc-4.9.2:
text data bss dec hex filename
20800 216 65320 86336 15140 /data/riotbuild/riotproject/tests/periph_gpio/bin/mulle/periph_gpio.elf
18992 216 65320 84528 14a30 /data/riotbuild/riotproject/tests/periph_gpio/bin/mulle/periph_gpio.elf
diff = 1808
36080 272 65264 101616 18cf0 /data/riotbuild/riotproject/examples/default/bin/mulle/default.elf
34296 272 65264 99832 185f8 /data/riotbuild/riotproject/examples/default/bin/mulle/default.elf
diff = 1784
2015-04-09 13:53:21 +02:00
bapclenet
edfb255a5d
samr21/RTC
...
Solve issue #2261 by using the external 32,768KHz Oscillator
2015-04-09 10:05:09 +02:00
d0dfbf0079
cpu: stm32f3: periph: gpio: fix possibly uninitialized variable access
2015-04-08 19:52:14 +02:00
8653e685bc
stm32f3: gpio: fix isr2
2015-04-08 19:52:14 +02:00
bcb206be61
cpu: stm32f3: add myself as author
2015-04-08 19:52:03 +02:00
bb6b04bfaf
cpu: stm32f3: SPI: remove empty line
2015-04-08 19:52:03 +02:00
cfcd06964a
cpu: stm32f3: SPI: force 8bit transfers
2015-04-08 19:52:03 +02:00
333dae4c57
stm32f3: spi: ifdef stm32f303vc specific de/initialization
2015-04-08 19:52:03 +02:00
Cenk Gündoğan
4fae22bf3d
cpu/native: do not exit when real_read returns 0
2015-04-06 10:18:46 +02:00
José Roberto de Souza
684b081a16
x86: fix FPU lazy swap
...
The ucontext->x86_fxsave is initialize as 512 bytes of zeros, but it
is not a valid value to be set onto FPU registers, causing a General
Protection Fault:
Interrupt 0x0d (General Protection Fault) while handling 0x07 (Device not available)
EAX=0012f4c0 ECX=001336e4 EDX=001334ac EBX=001336e0
ESP=00123784 EBP=001237c8 ESI=00000200 EDI=00000000
Error code=00000000
CR0=80010031 CR2=00000000 CR3=0012d000 CR4=000001e0
EIP=0000:80010031 EFLAGS=0012d000
<stack trace>
00000000
???
</stack trace>
Halting.
So lets copy the initial state of FPU registers before FPU is used
and set it as the initial state of FPU to new threads(coroutine).
2015-04-02 19:27:17 -03:00
Joakim Gebart
de486ff79f
k60: Initial commit of K60 CPU.
...
Tested on the following Freescale Kinetis K60 CPUs:
- MK60DN512VLL10
The port should with a high probability also support the following variations of the above CPUs (untested):
- MK60DN256VLL10
And possibly also:
- MK60DX256VLL10
- MK60DX512VLL10
- MK60DN512VLQ10
- MK60DN256VLQ10
- MK60DX256VLQ10
- MK60DN512VMC10
- MK60DN256VMC10
- MK60DX256VMC10
- MK60DN512VMD10
- MK60DX256VMD10
- MK60DN256VMD10
Currently not working on the following CPUs (Missing PIT channel
chaining necessary for kinetis_common/periph/timer implementation):
- MK60DN256ZVLL10
- MK60DN512ZVLL10
- MK60DX256ZVLL10
- MK60DX512ZVLL10
- MK60DN512ZVLQ10
- MK60DN256ZVLQ10
- MK60DX256ZVLQ10
- MK60DN512ZVMC10
- MK60DN256ZVMC10
- MK60DX256ZVMC10
- MK60DN512ZVMD10
- MK60DX256ZVMD10
- MK60DN256ZVMD10
Regarding header files from Freescale:
dist/tools/licenses: Add Freescale CMSIS PAL license pattern
Redistribution is OK according to:
https://community.freescale.com/message/477976?et=watches.email.thread#477976
Archive copy in case the above link disappears:
https://web.archive.org/web/20150328073057/https://community.freescale.com/message/477976?et=watches.email.thread
Applies to:
- MK60DZ10.h (K60 variant)
2015-03-28 08:30:13 +01:00
Ludwig Ortmann
1572c94e41
cpu/samd21: implement gpio_toggle properly
...
Before, gpio_toggle relied on gpio_read which is inefficient and does not
work with GPIOs configured as outputs.
2015-03-25 22:05:05 +01:00
Hauke Petersen
ad69413d22
Merge pull request #2669 from gebart/pr/cortex-thread-arch-asm
...
cortex-m4_common: Refactor context save/restore
2015-03-25 18:21:11 +01:00
Joakim Gebart
791c57720a
cortex-m4_common: Refactor context save/restore
...
Clang 3.6 is stricter than GCC and previous releases of Clang regarding
naked functions and now only allows inline asm inside naked functions.
This is a refactoring of the functions isr_pendsv, isr_svc,
context_save, context_restore to still be naked functions but allow
building with Clang 3.6
2015-03-21 18:43:01 +01:00
Ludwig Ortmann
cf637942cc
*: add missing blank lines
...
Some functions had no blank lines to separate them from their
neighborhood.
2015-03-21 16:34:59 +01:00
James Hollister
93cff5613f
cpu/native: Fix for missing malloc.h in OSX
2015-03-21 01:41:54 -07:00
Hauke Petersen
66e7646091
cpu/nrf51822: added SPI driver implementation
2015-03-17 10:37:47 +01:00
Hauke Petersen
4ad36a799e
cpu/stm32f0: added support for stm32f091rc
2015-03-16 16:23:44 +01:00
Thomas Eichinger
c633c083db
Merge pull request #2597 from haukepetersen/add_stm32f0_corepanic
...
cpu/stm32f0: included core_panic module
2015-03-16 15:15:33 +01:00
Hauke Petersen
3436a10039
cpu/stm32f0: included core_panic module
2015-03-13 17:40:37 +01:00
Hauke Petersen
ec17730c38
cpu/stm32f0: fixed gpio interrupt routines
...
- guarded calls in case no interrupt is defined
- eneabled detection of multiple, simoultaneous events
2015-03-13 15:32:48 +01:00
Thomas Eichinger
1eac81b562
Merge pull request #2593 from haukepetersen/fix_stm32f0_timerdef
...
cpu/stm32f0: cleanup for timer IRQ macro
2015-03-13 14:23:41 +01:00
Thomas Eichinger
64410350bd
Merge pull request #2552 from jhollister/add_cpuid
...
Added cpuid_get for STM boards
2015-03-13 10:59:09 +01:00
Hauke Petersen
49491cf66d
cpu/stm32f0discovery: fixed timer irq prio macro
2015-03-13 10:21:18 +01:00
Joakim Gebart
f8eb76caec
kinetis: Enable UART hardware FIFO buffers.
2015-03-10 17:52:07 +01:00
kushalsingh007
390e030f84
Removing the warnings after running static code analyser.
...
-Changes to fix all the clarifyCalulation warnings.
-Fixes a part of issue number 480
2015-03-10 04:08:43 +05:30
James Hollister
722835989d
cpu/stm32f4: added cpuid_get to stm32f4
2015-03-08 12:18:37 -07:00
James Hollister
10f4aacf6c
cpu/stm32f3: added cpui_get for stm32f3
2015-03-08 12:14:19 -07:00
James Hollister
3d6ab85bb3
cpu/stm32f0: added cpuid_get for stm32f0
2015-03-08 12:13:10 -07:00
Hauke Petersen
d19515d590
cpu/stm32f3: set cpu specific hwtimer spin barrier
2015-03-04 10:44:26 +01:00
Joakim Gebart
f317cf42a8
kinetis: Add configuration macros for I2C bus speed parameters.
2015-03-04 08:55:06 +01:00
Thomas Eichinger
bc378dbb23
Merge pull request #2378 from locicontrols/vtor
...
cpu/cc2538: set the VTOR register to the actual address of the vector table
2015-03-03 18:25:47 +01:00
Ludwig Ortmann
4f29a7757e
Merge pull request #2285 from authmillenon/pktbuf/api/use-pkt
...
pktbuf: port to use pkt_t instead of void*
2015-02-19 14:46:15 +01:00
Martine Lenders
41f60aca4c
pktbuf: port to use ng_ version
2015-02-19 13:51:27 +01:00
Lotte Steenbrink
f08a371f1f
Merge pull request #2466 from LudwigOrtmann/pr/trailing_whitespace
...
cpu, drivers, boards, tests: remove trailing whitespace
2015-02-18 19:10:22 +01:00
Ludwig Ortmann
51a4f8a43c
cpu/kinetis_common/i2c: fix indent, trailing space
2015-02-18 13:52:48 +01:00
Ludwig Ortmann
e9e3f3d148
cpu/samd21/periph/i2c: fix spacing, comment length
2015-02-18 13:52:48 +01:00
Ludwig Ortmann
cec87139a5
core, cpu, drivers, tests: remove trailing space
2015-02-18 13:52:48 +01:00
Ludwig Ortmann
88f1dc5cbc
cpu/native: improve daemonization
...
- detach from working directory
- detach from process group
- set umask
2015-02-17 22:01:02 +01:00
Ludwig Ortmann
9a130e2e84
cpu/native: add some syscall wrappers
...
Add wrappers for chdir, setsid, and umask.
2015-02-17 22:00:14 +01:00
Joakim Gebart
b6eeb65f70
Merge pull request #2420 from gebart/pr/cortex-m4-crash-bkpt
...
cortex-m4_common: Add debugger break in crash.c + minor string handling fix
2015-02-17 16:06:33 +01:00
Joakim Gebart
5a09e54e1b
cortex-m0_common: Update crash.c with changes from Cortex-M4.
2015-02-17 13:16:40 +01:00
Joakim Gebart
2605b57a35
cortex-m3_common: Update crash.c with changes from Cortex-M4.
2015-02-17 13:16:26 +01:00
Joakim Gebart
972e61529c
cortex-m4_common: Update crash.c author and copyright after recent changes.
2015-02-17 13:15:40 +01:00
Joakim Gebart
f6ce0561ed
Merge pull request #2412 from jfischer-phytec-iot/pr@kinetis-startup
...
Add common startup.c for Kinetis MCUs.
2015-02-15 18:48:19 +01:00