483b59554a
cpu: msp430fxyz: fix usart ISR
2015-09-22 10:43:27 +02:00
c122571801
cpu: msp430-common: fix context save/restore
...
Previously, __restore_context was meddling with the to-be-restored
context SR on the stack, not correctly restoring GIE.
Now, we let the CPU restore the correct status register as saved in
__save_context.
Contains some simplification of the context save/restore logic.
2015-09-22 10:43:27 +02:00
Joakim Gebart
96528ea266
cpu/k60: remove leftover files from old syscall implementation
2015-09-21 08:45:07 +02:00
Joakim Nohlgård
808b1abdd0
Merge pull request #3623 from gebart/pr/kinetis-timer-stop-fix
...
cpu/kinetis_common: periph/timer, read PIT value before stopping
2015-09-21 08:21:34 +02:00
Oleg Hahm
d89ac480eb
atmega: added panic function
2015-09-20 21:44:26 +02:00
Joakim Nohlgård
98c465008b
all: Update @gebart family name, email
2015-09-20 13:47:39 +02:00
Oleg Hahm
d664f96e61
lm4f120: removed superfluous stellaris debug.h
2015-09-20 01:51:47 +02:00
Oleg Hahm
e15bdd257a
debug: replace __FILE__ by RIOT_RELATIVE_FILE
2015-09-20 01:51:47 +02:00
Joakim Gebart
27565a655e
cpu/native: remove dINT/eINT definitions
2015-09-19 10:38:18 +02:00
Joakim Gebart
6473fa77d4
cpu/arm7_common: remove dINT/eINT definitions
2015-09-19 10:37:20 +02:00
Joakim Gebart
b6a88cba5f
cpu/cortexm_common: remove dINT/eINT definitions
2015-09-19 10:37:17 +02:00
Joakim Gebart
199528d3fb
cpu/atmega: remove dINT/eINT definitions
2015-09-19 10:35:58 +02:00
Joakim Gebart
0d2efd5fe7
native/syscalls: Use restoreIRQ
2015-09-19 10:35:58 +02:00
Hauke Petersen
b3b7fe790f
cpu/stm32l1: optimized baudrate calculation
2015-09-18 12:25:21 +02:00
Hauke Petersen
d17973a060
cpu/stm32f4: optimized baudrate calculation
2015-09-18 12:21:46 +02:00
Hauke Petersen
b4e3c2849c
cpu/stm32f3: optimized baudrate calculation
2015-09-18 12:17:01 +02:00
Hauke Petersen
c0c277c49b
cpu/stm32f0: optimized baudrate calculation
2015-09-18 12:10:17 +02:00
Hauke Petersen
6b9ca4d5c0
cpu/stm32f1: optimized baudrate calculation
2015-09-18 12:04:25 +02:00
Hauke Petersen
b49eb93249
cpu/cc430: timer: s/TIMER_DEV/TIMER_BASE/
2015-09-17 13:57:58 +02:00
Hauke Petersen
35aaa62c38
cpu/kinetis_common: s/TIMER_DEV/TIMER_BASE/
2015-09-17 13:57:58 +02:00
Hauke Petersen
7957ce4d75
cpu/msp430fxyz: s/TIMER_DEV/TIMER_BASE/
2015-09-17 13:57:58 +02:00
Hauke Petersen
399e7c1c2e
cpu/msp430: added SPI periph driver
2015-09-17 11:32:38 +02:00
Thomas Eichinger
92cd6dfcba
Merge pull request #3866 from haukepetersen/opt_msp430_board_makefiles
...
boards: Makefile cleanup for MSP430 based boards
2015-09-17 11:30:40 +02:00
Sebastian Sontberg
8b4fcc2a14
cpu: let spi_init_slave() stubs return error codes
2015-09-17 11:19:31 +02:00
Martine Lenders
aaff370bc9
Merge pull request #3710 from authmillenon/cpu/feat/atmega-errno
...
atmega_common: give distinct numbers to errnos
2015-09-17 10:14:57 +02:00
Martine Lenders
2184c97002
Merge pull request #3838 from haukepetersen/opt_samuart
...
cpu/samd21: optimized and extended UART impl.
2015-09-17 03:39:36 +02:00
Hauke Petersen
515d325c89
cpu/msp430xx: some Makefile cleanup
...
- removed redundancies
- optical cleanup
2015-09-16 17:07:26 +02:00
ca540c9d07
cpu: atmega2560: use double-read scheme for timer read
2015-09-16 11:13:42 +02:00
cbb7750202
boards: msba2: add xtimer tuning values, remove HW_TIMER define
2015-09-16 10:58:55 +02:00
a22f0a3c78
cpu: msp430*: remove obsolete hwtimer_compat dependency
2015-09-16 10:58:54 +02:00
832539fc88
cpu: cc430: remove hwtimer support, switch gpioint to xtimer
2015-09-16 10:58:53 +02:00
87d2596819
cpu: cc430: make adc use xtimer
2015-09-16 10:58:53 +02:00
9d088bb3d7
cpu: lpc2387: mci: use xwtimer
2015-09-16 10:58:53 +02:00
4e8bf2cb69
cpu: native: remove hwtimer traces
2015-09-16 10:58:53 +02:00
48b21f00c3
cpu: x86: remove obsolete hwtimer support
2015-09-16 10:58:53 +02:00
b0893a99ba
cpu: lpc2387: adc: use xtimer
2015-09-16 10:58:53 +02:00
2cd4a80054
cpu: native: minor timer-related doxygen updates
2015-09-16 10:58:53 +02:00
012d82ecaf
cpu: arm7_common: remove obsolete hwtimer support
2015-09-16 10:58:53 +02:00
8c147f1e3c
cpu: cc2538: remove obsolete hwtimer support
2015-09-16 10:58:52 +02:00
d239f3c4fd
cpu: k60: remove obsolete hwtimer support
2015-09-16 10:58:52 +02:00
c0d3524132
cpu: kinetis_common: remove obsolete hwtimer support
2015-09-16 10:58:52 +02:00
16e19f3975
cpu: lm4f120: remove obsolete hwtimer support
2015-09-16 10:58:52 +02:00
8b46d1dfc4
cpu: lpc1768: remove obsolete hwtimer support
2015-09-16 10:58:52 +02:00
c3fa148256
cpu: msp430-common: remove obsolete hwtimer support
2015-09-16 10:58:52 +02:00
ea2013ff16
cpu: nrf51: remove obsolete hwtimer support
2015-09-16 10:58:52 +02:00
90c1e7ce74
cpu: sam3: remove obsolete hwtimer support
2015-09-16 10:58:52 +02:00
889991503e
cpu: saml21: remove obsolete hwtimer support
2015-09-16 10:58:52 +02:00
9d75b2f2d9
cpu: stm32f0: remove obsolete hwtimer support
2015-09-16 10:58:52 +02:00
d7a4f90e69
cpu: stm32f1: remove obsolete hwtimer support
2015-09-16 10:58:52 +02:00
3e0bcd45c5
cpu: stm32f3: remove obsolete hwtimer support
2015-09-16 10:58:52 +02:00
01f87b9df0
cpu: stm32f4: remove obsolete hwtimer support
2015-09-16 10:58:52 +02:00
8e475fa57d
cpu: stm32l1: remove obsolete hwtimer support
2015-09-16 10:58:52 +02:00
41dff1052e
cpu: x86: remove obsolete hwtimer support
2015-09-16 10:58:52 +02:00
d82ca16b5a
cpu: atmega2560: drop obsolete hwtimer support
2015-09-16 10:58:52 +02:00
a23169b831
cpu: stmf32f1: remove obsolete hwtimer_compat dependency
2015-09-16 10:58:51 +02:00
391bc02c06
cpu: cortexm_common: busywait before resetting
2015-09-16 10:58:51 +02:00
dd9de14e49
cpu: samd21: remove hwtimer support
2015-09-16 10:58:51 +02:00
fb773bf90a
cpu: native: remove hwtimer_compat dependency
2015-09-16 10:58:51 +02:00
Peter Kietzmann
0f740f611c
Merge pull request #3829 from DipSwitch/spi_set_pin_speed
...
cpu/stm32l1-f0/spi: Configure the SPI pins as highspeed
2015-09-16 10:23:43 +02:00
dd87073a60
Merge pull request #3826 from OlegHahm/netdev2_tap_buffer_size
...
netdev2_tap: set maximum buffer size correctly
2015-09-15 13:23:28 +02:00
Hauke Petersen
1a29163b63
cpu/samd21: optimized UART implementation
2015-09-14 17:20:01 +02:00
bd27feefec
cpu: atmega2560: simplify periph/timer implementation
2015-09-14 10:47:35 +02:00
7fcb2b718e
cpu: atmega: implement irq_arch_in
2015-09-14 10:47:28 +02:00
Martine Lenders
93f555ef69
Merge pull request #3782 from OlegHahm/RIOT_assert
...
core: RIOT's own assert macro
2015-09-12 13:12:34 +02:00
DipSwitch
1fe296d707
cpu/stm32l1-f0/spi: Configure the SPI pins as highspeed
2015-09-12 12:47:32 +02:00
Oleg Hahm
49917a5797
core: cpu: fix check for DEVELHELP
2015-09-12 12:43:15 +02:00
Oleg Hahm
fd121a94e6
netdev2_tap: set maximum buffer size correctly
2015-09-12 12:02:48 +02:00
Oleg Hahm
f3245cecac
core: panic: last instruction's address for assert
2015-09-11 23:23:31 +02:00
Oleg Hahm
d7161b6d4b
cpu: inline function to print instruction register
2015-09-11 23:23:31 +02:00
Oleg Hahm
143d613307
x86: added missing panic function
2015-09-11 16:09:28 +02:00
Martine Lenders
1c0cf3bf9c
native: netdev2_tap: fix NETOPT_IS_WIRED flag
2015-09-11 13:11:33 +02:00
Thomas Eichinger
5a6bc8c284
Merge pull request #3569 from authmillenon/msp430/enh/use-log
...
msp430: use assert instead of printf
2015-09-11 12:47:15 +02:00
Hauke Petersen
a4d393eea3
cpu/stm32f4: fixed typo in prescaler for timer1
2015-09-08 16:22:24 +02:00
Peter Kietzmann
b4bd18e220
Merge pull request #3792 from haukepetersen/fix_stm32f3_gpio_debug
...
cpu/stm32f3: disable debug in GPIO driver
2015-09-07 21:49:34 +02:00
Peter Kietzmann
4e47e909ba
Merge pull request #2799 from ReneHerthel/arduino_2560_gpio
...
Arduino-mega2560 GPIO implementation
2015-09-07 21:43:30 +02:00
Hauke Petersen
32cf5423a2
cpu/stm32f3: disable debug in GPIO driver
2015-09-07 18:13:00 +02:00
Hauke Petersen
92c8f279d9
Merge pull request #3725 from avmelnikoff/cpu/stm32f1
...
cpu/stm32f1: added stm32f103c8 linkerscript
2015-09-07 17:05:33 +02:00
René Herthel
d05151fdef
cpu/mega2560: initial import of a gpio driver
2015-09-07 14:48:15 +02:00
344b56bca8
Merge pull request #3167 from haukepetersen/fix_native_stacksizes
...
cpu/native: adjusted stacksizes
2015-09-05 23:17:45 +02:00
efbd5518f6
cpu: stm32f1: timer: fix race when combining two 16bit timer values
2015-09-05 12:43:37 +02:00
Hauke Petersen
7701aed546
Merge pull request #3164 from kaspar030/remove_uart0
...
sys: remove uart0
2015-09-04 18:54:30 +02:00
48baf5ddcf
Merge pull request #3683 from kaspar030/add_gnrc_netdev2_support
...
sys: net: add gnrc netdev2 support
2015-09-04 18:00:18 +02:00
fe594126e6
cpu: x86: remove obsolete uart0 code
2015-09-04 17:47:01 +02:00
f433c9a5c7
cpu: msp430-common: remove obsolete UART0_BUFSIZE define
2015-09-04 17:46:23 +02:00
087f11db09
cpu: lpc2387: remove obsolete UART0_BUFSIZE define
2015-09-04 17:46:23 +02:00
d3006b171a
cpu: cortexm_common: remove obsolete UART0_BUFSIZE define
2015-09-04 17:46:23 +02:00
f2825d2b55
cpu: atmega2560: remove obsolete UART0_BUFSIZE define
2015-09-04 17:46:23 +02:00
ab863cf831
cpu: x86: remove obsolete uart0 header include
2015-09-04 17:46:23 +02:00
0e4386a46f
native: remove uart0
2015-09-04 17:46:23 +02:00
a13bc46f3e
sys: remove uart0
2015-09-04 17:46:23 +02:00
Oleg Hahm
e2639d7f83
core: use enums for panic
2015-09-04 16:14:35 +02:00
ef972735dc
sys: net: replace dev_eth with netdev2, adapt native tap driver
2015-09-04 15:39:04 +02:00
Hauke Petersen
56ffc5672c
cpu/lpc2387: use hwtimer_compat module
2015-09-04 15:32:50 +02:00
Hauke Petersen
342d292889
cpu/lpc2387: added low-level timer implementation
2015-09-04 15:32:50 +02:00
128d9db0a5
Merge pull request #3766 from haukepetersen/rm_econotag
...
boards: removed support for redbee-econotag
2015-09-04 12:35:41 +02:00
Peter Kietzmann
ef000d46af
Merge pull request #3426 from kaspar030/make_arduino-mega2560_use_uart_stdio
...
board: arduino-mega2560: use uart_stdio
2015-09-03 18:04:19 +02:00
Hauke Petersen
4f0bd75a99
cpu/msp430fxyz: added periph GPIO driver
2015-09-03 16:29:55 +02:00
Hauke Petersen
62d4981457
cpu/arm7_common: removed mc1322x code
2015-09-03 16:09:42 +02:00
Hauke Petersen
4e45d4640c
cpu: removed support for the mc1322x CPU
2015-09-03 16:07:20 +02:00
73e15bdde1
atmega2560: remove uart0, adapt to uart_stdio
2015-09-03 15:53:01 +02:00
Thomas Eichinger
fa11195e38
Merge pull request #3393 from thomaseichinger/pr/fix_osx_warnings_errors
...
native: fix warning error OS X
2015-09-03 14:04:45 +02:00
Hauke Petersen
ed71388532
cpu/msp430fxyz: make use of uart_stdio module
2015-09-03 12:00:33 +02:00
Hauke Petersen
2f63bac318
cpu/msp430fxyz: added low-level UART driver
2015-09-03 12:00:33 +02:00
Hauke Petersen
fb8d15d34a
Merge pull request #3724 from haukepetersen/add_msp430_periph_timer
...
cpu/[msp|cc]430: added peripheral timer driver
2015-09-03 12:00:07 +02:00
Thomas Eichinger
3fba38e47b
cpu/native: fix wrong type for _sigio_child()
2015-09-03 11:49:57 +02:00
Hauke Petersen
68e7965b50
cpu/msp43-common: re-added deprecated e|dINT defs
2015-09-03 10:31:30 +02:00
Thomas Eichinger
f841811a49
cpu/native: fix OS X includes and declarations
2015-09-02 17:34:47 +02:00
Thomas Eichinger
f10939c01e
cpu/native: add conditional include on OS X for IFNAMSIZ
2015-09-02 17:34:47 +02:00
Hauke Petersen
fd8c0de3d2
cpu/msp430-common: simplified hwtimer configuration
2015-09-02 17:10:28 +02:00
Hauke Petersen
c20af817c7
cpu/msp430fxyz: added peripheral timer driver
2015-09-02 17:10:27 +02:00
Hauke Petersen
335ec926de
cpu/cc430: added peripheral timer implementation
2015-09-02 17:10:27 +02:00
Hauke Petersen
69e83bbab3
cpu: removed hwtimer code from msp430 CPUs
2015-09-02 17:10:27 +02:00
Hauke Petersen
0cdda8bad6
boards/chronos: fixed after removing legacy header
2015-09-02 17:10:27 +02:00
Hauke Petersen
7d25b41610
cpu/msp430-common: removed legacymsp430.h code
2015-09-02 16:47:52 +02:00
6dec2efdd6
saml21: add lpm support
2015-09-02 16:46:42 +02:00
daniel-k
c747d7dae4
samd21/i2c: add feedback in case transfer failed
2015-08-31 17:31:17 +02:00
Iván Briano
1481b01df8
cpu: samd21: Enable the interrupt line for PA28
...
So the onboard button on the Samr21-xpro works again.
2015-08-27 14:08:16 -03:00
Alex V. Melnikov
8d47f83964
cpu/stm32f1: added stm32f103c8 linkerscript
...
Added stm32f103c8 memory definitions for cortexm common linkerscript
2015-08-27 11:52:44 +03:00
Martine Lenders
dc82939eb3
atmega_common: give distinct numbers to errnos
2015-08-25 22:07:22 +02:00
Emmanuel Baccelli
014939805e
Merge pull request #3062 from alignan/pull/remote-port
...
New Zolertia Re-Mote platform (CC2538 + CC1120)
2015-08-25 21:18:13 +02:00
Thomas Eichinger
82aff54a74
Merge pull request #3703 from DipSwitch/add_clock_selection_stm32l1
...
Add clock source selection based on CLOCK_HSE or CLOCK_HSI for STM32L1 family
2015-08-25 12:22:46 +02:00
DipSwitch
148acc684b
cpu: Add clock source selection based on CLOCK_HSE or CLOCK_HSI for STM32L1 family
2015-08-25 10:12:48 +02:00
DipSwitch
04f49a1929
cpu: fix stm32l1 cpuid driver for cat 1/2
2015-08-24 21:46:36 +02:00
Lari Lehtomäki
1ecaadab4e
cpu/stm32f0: RTC implementation with external clock
...
tests: Tests for RTC clock
2015-08-20 13:09:43 +03:00
Peter Kietzmann
86af1969b5
Merge pull request #3666 from daniel-k/cortexm_r13_deprecated
...
cortexm_common: don't compare with r13/sp in assembly, fix #3664
2015-08-20 11:48:13 +02:00
Joakim Gebart
56b0beeebe
Merge pull request #3107 from gebart/pr/cppsupport
...
c++: Define some support functions required by GCC
2015-08-19 21:49:24 +02:00
Daniel Krebs
cb4aec676b
cortexm_common: don't compare with r13/sp in assembly, fix #3664
2015-08-19 20:56:43 +02:00
daniel-k
7a86344c4d
cpu/cortexm_common: gather addition information on hardfault
2015-08-19 14:24:54 +02:00
Martine Lenders
58ff31bfe9
gnrc: make all gnrc modules sub-modules of gnrc
2015-08-18 23:00:07 +02:00
Martine Lenders
87c222d2fa
Merge pull request #3595 from authmillenon/gnrc/api/mv
...
gnrc: rename ng_netbase to gnrc
2015-08-18 16:59:34 +02:00
Martine Lenders
b969eeb217
gnrc: rename ng_netbase to gnrc
2015-08-18 16:11:55 +02:00
Hauke Petersen
3922b6c852
Merge pull request #3530 from kaspar030/update_msba2
...
cpu: lpc2387: provide periph/* implementations, update to use newlib module.
2015-08-17 21:45:16 +02:00
Antonio Lignan
b8823b7afe
Zolertia Re-Mote platform (cc2538 + cc1120) port
2015-08-17 14:17:32 +02:00
Joakim Gebart
ff05007a6e
boards/mulle: cleanup
...
Remove old syscalls implementation from before cortexm_common unification and sys/newlib introduction.
2015-08-14 20:09:44 +02:00
3b94a0d497
lpc2387/msba2/avsextrem: fix doxygen warnings
2015-08-14 16:50:41 +02:00
a03ff202cf
cpu: lpc2387: switch to newlib module
2015-08-14 16:50:41 +02:00
4dd63dd24e
cpu: lpc2387: add periph/spi support
2015-08-14 16:50:41 +02:00
bd76626fb5
cpu: lpc2387: add periph/uart driver
2015-08-14 16:50:41 +02:00
3c5f31eb95
cpu: lpc2387: add periph/gpio imlementation
2015-08-14 16:50:41 +02:00
223ef9fe66
cpu: lpc2387: drop gpioint
2015-08-14 16:50:41 +02:00
0541d21f86
Merge pull request #3620 from kaspar030/add_generic_spi_fallbacks
...
drivers: periph: add generic spi fallbacks
2015-08-14 16:47:48 +02:00
6b2b5eb5e4
cpu: stm32l1: use periph_common SPI functions
2015-08-14 14:46:35 +02:00
4b15cc635e
cpu: stm32f4: use periph_common SPI functions
2015-08-14 14:46:35 +02:00
fa00154f2a
cpu: stm32f3: use periph_common SPI functions
2015-08-14 14:46:35 +02:00
6c185655c8
cpu: stm32f1: use periph_common SPI functions
2015-08-14 14:46:35 +02:00
336c5300cd
cpu: stm32f0: use periph_common SPI functions
2015-08-14 14:46:35 +02:00
21c774fd82
cpu: saml21: use periph_common SPI functions
2015-08-14 14:46:35 +02:00
0a859b91ee
cpu: samd21: use periph_common SPI functions
2015-08-14 14:46:35 +02:00
626289b5c7
cpu: sam3: use periph_common SPI functions
2015-08-14 14:46:35 +02:00
Martine Lenders
664f51e149
doc: adapt documentation on tapsetup script
2015-08-14 12:05:34 +02:00
Martine Lenders
5760f9042d
native: unify and simplify usage of tapsetup script
2015-08-14 12:05:34 +02:00
Joakim Gebart
cf5db434e6
cpu/kinetis_common: periph/timer, read PIT value before stopping
...
Reading CVAL after stopping timer seem to return zero.
Ref. manual states: "The counter period can be restarted, by first
disabling, and then enabling the timer with TCTRLn[TEN]", but does not
state whether the reset of CVAL happens on TEN 0->1 transition, or 1->0
transtion. Empirical evidence suggests the latter is the implemented behaviour.
2015-08-13 21:06:50 +02:00
Peter Kietzmann
77ca7a50bc
Merge pull request #3509 from katezilla/LimiFrog-v1
...
board: limifrog-v1 initial commit
2015-08-13 15:45:27 +02:00
Katja Kirstein
c95612295e
cpu/stm32l1: remodel to new GPIO interface
2015-08-13 15:07:49 +02:00
Katja Kirstein
bda86cfcd3
boards: limifrog-v1 initial commit
2015-08-13 14:14:18 +02:00
Hauke Petersen
af10ab64a7
cpu/stm32f1: simplified pin init in periph drivers
2015-08-12 10:50:17 +02:00
Martine Lenders
f0cb1429f0
native: rename ng_nativenet to dev_eth_tap
2015-08-09 22:04:26 +02:00
Martine Lenders
ca71ae4f59
dev_eth: fix documentation
2015-08-09 22:02:10 +02:00
Joakim Gebart
62b1435646
cortexm: Remove __dso_handle from startup.c in favour of sys/cpp11-compat/cppsupport.cpp
2015-08-08 14:44:41 +02:00
Martine Lenders
472ee315f0
ethernet/ethertype: remove ng_ prefix
2015-08-07 17:09:19 +02:00
Hauke Petersen
97a19016cf
drivers: adapted to renamed NETOPT header
2015-08-06 15:36:56 +02:00
Oleg Hahm
f90032f94f
Merge pull request #3334 from kaspar030/remove_old_net
...
remove old network stack
2015-08-06 15:10:11 +02:00
Hauke Petersen
bcb9aebadd
cpu/stm32f1: modernized the GPIO driver
2015-08-06 13:48:25 +02:00
Hauke Petersen
75472eddf4
cpu: remove transceiver defines from cpu_conf files
2015-08-06 12:13:54 +02:00
723d0b2479
remove legacy board specific cc110x code
2015-08-06 12:13:19 +02:00
09fb612ceb
cpu: lpc2387: remove obsolete transceiver defines
2015-08-06 12:13:18 +02:00
5d8349298f
remove bulk of legacy network stack and drivers
2015-08-06 12:12:47 +02:00
Martine Lenders
cef0857992
msp430: use assert instead of printf
2015-08-05 19:43:51 +02:00
Martine Lenders
6d9b928818
Merge pull request #3536 from cgundogan/pr/doc/todo
...
Make use of doxygen todo
2015-08-05 15:59:01 +02:00
Benoît Canet
22da1f834b
native: ng: net: Close tap device and cleanup on reboot
2015-08-03 18:17:53 +02:00
Benoît Canet
008b105166
native: net: Take care of unregistering SIGIO on reboot
2015-08-03 18:17:53 +02:00
Benoît Canet
800b057fac
native: net: Make _native_tap_fd static
...
One global variable less is always good.
2015-08-03 18:17:52 +02:00
Hauke Petersen
3caa44ca95
cpu/lm4f120: included dev_enums.h in periph_cpu.h
2015-08-03 13:56:16 +02:00
Hauke Petersen
3d6661fa62
cpu/lpc1768: included dev_enums.h in periph_cpu.h
2015-08-03 13:56:16 +02:00
Cenk Gündoğan
6e1a593e28
cortexm_common: use doxygen todo
2015-08-03 11:00:21 +02:00
f584bd6921
cpu: stm32f1: fix timer auto reload value
...
Previously, the auto-reload register was set to TIMERx_MAXVALUE. This is
incorrect, as TIMERx combines two 16bit timers.
This commit fixes the assignment.
2015-07-30 14:35:27 +02:00
Benoît Canet
4893d4daea
native: irq: Get rid of dINT() and eINT()
...
Get rid of internal usage of the old IRQ
API and keep it's implementation while
waiting for other modules to kill it.
2015-07-29 16:51:22 +02:00
21238b2ccc
Merge pull request #3347 from benoit-canet/timer
...
native: timer: synchronize HWTIMER_SPIN_BARRIER with native timer min resolution
2015-07-29 10:14:58 +02:00
d359c86c60
cpu: cortexm_common: set pendSV to default priority
2015-07-28 20:02:45 +02:00
Oleg Hahm
03b7c7349a
Merge pull request #3457 from authmillenon/gnrc/api/rename-netconf
...
gnrc: rename ng_netconf to ng_netopt
2015-07-28 18:21:09 +02:00
Andreas "Paul" Pauli
82c16f2b93
cpu/stm32f3: corrected register and return value, edit comment
2015-07-28 14:52:52 +02:00
Martine Lenders
6f56b983f0
gnrc: replace all instances of ng_netconf with ng_netopt
2015-07-28 13:33:12 +02:00
Rakendra Thapa
da91eba1ca
Converting C++ style coding to C style
2015-07-24 08:59:55 +05:30
rakendrathapa
3761ebcc21
VariableScope fix: Reducing scope of local var
2015-07-24 08:59:54 +05:30
rakendrathapa
de98cdf8be
Modify: C++ compatible header files_3
2015-07-24 08:59:54 +05:30
rakendrathapa
e4c281a0ff
Modify: C++ compatible header files_2
2015-07-24 08:59:54 +05:30
rakendrathapa
d263a9b2c5
Modify: C++ compatible headers
2015-07-24 08:59:54 +05:30
rakendrathapa
2dc37817bc
Modify to have C++ compatible header
2015-07-24 08:59:54 +05:30
rakendrathapa
63cb5cee4e
Converting from DOS endings to UNIX _2
2015-07-24 08:59:54 +05:30
rakendrathapa
60fc3f2511
Convert from Windows to Dos endings
2015-07-24 08:59:54 +05:30
Raken
186041b553
Addition for doxygen documentation
2015-07-24 08:59:54 +05:30
Rakendra Thapa
aa30ecd04f
Interrupt file to include isr correctly.
2015-07-24 08:59:54 +05:30
Rakendra Thapa
38d70a3356
Remove trailing whitespace_3
2015-07-24 08:59:54 +05:30
Rakendra Thapa
1227cb30f6
Including CPU_MODEL_ guard in cpu config file.
...
Remove CC110X definitions.
Changes to be committed:
modified: cpu/lm4f120/include/cpu_conf.h
2015-07-24 08:59:54 +05:30
Rakendra Thapa
2d656b8732
Define CLOCK_SOURCE and move the clock defines to appropriate files.
2015-07-24 08:59:54 +05:30
Rakendra Thapa
c99de05d23
Remove Not yet supported ADC peripheral. ToDo task
2015-07-24 08:59:54 +05:30
Rakendra Thapa
dad274ccea
Makefile changes.
...
License edit in stellaris_common
2015-07-24 08:59:53 +05:30
Rakendra Thapa
8e24860266
Commits:
- Indentation Edits.
- Edit Header Files.
- Change comments to C-style indentation.
- Edit Periph_conf file to exclude not used peripherals.
# Please enter the commit message for your changes. Lines starting
# with '#' will be ignored, and an empty message aborts the commit.
# On branch master
# Your branch is up-to-date with 'origin/master'.
#
# Changes to be committed:
# modified: boards/ek-lm4f120xl/board.c
# modified: boards/ek-lm4f120xl/include/board.h
# modified: boards/ek-lm4f120xl/include/periph_conf.h
# modified: cpu/lm4f120/cpu.c
# modified: cpu/lm4f120/include/cpu_conf.h
# modified: cpu/lm4f120/include/hwtimer_cpu.h
# modified: cpu/lm4f120/include/lm4f120h5qr.h
# modified: cpu/lm4f120/lpm_arch.c
# modified: cpu/lm4f120/periph/adc.c
# modified: cpu/lm4f120/periph/cpuid.c
# modified: cpu/lm4f120/periph/timer.c
# modified: cpu/lm4f120/periph/uart.c
# modified: cpu/lm4f120/vectors.c
#
2015-07-24 08:59:53 +05:30
Rakendra Thapa
dc2bbffcc7
Formatting: Delete blank line at EOF
2015-07-24 08:59:53 +05:30
Rakendra Thapa
1165d91b6f
Remove trailing whitespace_2
2015-07-24 08:59:53 +05:30
Rakendra Thapa
be15d5c973
removing trailing whitespace
2015-07-24 08:59:53 +05:30
Rakendra Thapa
4757e30e10
Remove tabs to spaces
2015-07-24 08:59:53 +05:30
Rakendra Thapa
9c4a5f5d86
Applying Coding Conventions correction
2015-07-24 08:59:53 +05:30
Rakendra Thapa
8c1abd716d
Adding Files for Stellaris Porting
2015-07-24 08:59:53 +05:30
Rakendra Thapa
0b673e66da
Adding Support for Stellaris Launchpad LM4f120. This board is based on ARM Cortex M4 from TI.
2015-07-24 08:59:53 +05:30
Thomas Eichinger
e416937398
Merge pull request #3390 from thomaseichinger/pr/fix_warning_errors_freebsd
...
native: fix warning errors freebsd
2015-07-23 10:11:29 +02:00
Oleg Hahm
9922d2600c
native: removed dead code
...
num was never read, because native will exit before.
2015-07-22 14:36:21 +02:00
Thomas Eichinger
cbc9ddc639
native: add missing include for FreeBSD
2015-07-21 18:31:13 +02:00
Thomas Eichinger
0c15084db5
native: fix wrong pointer type warning
2015-07-21 18:31:13 +02:00
Oleg Hahm
75f38c026b
Merge pull request #3412 from OlegHahm/doxygen_fixes_ng
...
doxygen: documentation hierarchy fixes
2015-07-21 11:04:42 +02:00
Oleg Hahm
6a035fe910
doc: exclude sam3* completely from doxygen
...
Also remove doc.txt for sam3 (moved to cpu_conf.h)
2015-07-21 10:00:11 +02:00
Joakim Gebart
601c3002c3
cpu/kinetis_common: Cast device index enums to unsigned int before comparing for out of range values
...
Suppresses false warning in Clang:
warning: comparison of constant 42 with expression of type 'xxx_t'
is always false [-Wtautological-constant-out-of-range-compare]
See:
- https://llvm.org/bugs/show_bug.cgi?id=16154
- https://llvm.org/bugs/show_bug.cgi?id=22062
2015-07-21 07:21:51 +02:00
Joakim Gebart
70d59331b8
arm7_common: Build fixes after discovering an include guard overlap
2015-07-20 12:40:32 +02:00
Joakim Gebart
897f40fabe
cpu/msp430-common: Clean up Doxygen groups
2015-07-20 12:40:31 +02:00
Joakim Gebart
7ff26d12ea
cpu/arm7_common: Rename Doxygen group to cpu_arm7_common
2015-07-20 12:40:31 +02:00
Hauke Petersen
25abd13fb5
cpu/sam3: use hwtimer_compat module
2015-07-15 16:06:34 +02:00
Hauke Petersen
7173b41069
cpu/lpc1768: use hwtimer_compat module
2015-07-15 16:06:08 +02:00
Hauke Petersen
809b99f648
cpu/atmega2560: make use of hwtimer_compat
2015-07-15 16:05:28 +02:00
Hauke Petersen
86261e03e6
cpu/nrf51: make use of hwtimer_compat module
2015-07-15 16:02:43 +02:00
Hauke Petersen
696dff5da3
cpu/nrf51: fixedd cppcheck issue in spi.c
2015-07-14 18:22:03 +02:00
haukepetersen
1cd18f92c9
cpu/nrf51: updated CPU headers
2015-07-14 18:15:42 +02:00
haukepetersen
431ac7b3c5
cpu/nrf51: added linkerscript for 128kb variant
2015-07-14 18:15:42 +02:00
haukepetersen
987dbe983a
cpu/nrf51: generalized linkerscript
2015-07-14 18:15:42 +02:00
haukepetersen
9c46a40005
cpu: renamed nrf51822 to nrf51
2015-07-14 18:15:42 +02:00
Hauke Petersen
3be56ba97e
cpu/sam3: fixed vectors.c
...
This was an error introduced by merging #3194...
2015-07-14 16:32:06 +02:00
Hauke Petersen
3ec9c7b2cb
cpu/cc430: fixed missing include in adc driver
2015-07-14 16:15:13 +02:00
Oleg Hahm
c0d5d2e9b6
Merge pull request #2571 from haukepetersen/rm_msp430_edint
...
cpu/msp430-common: removed e|dINT calls
2015-07-14 15:46:33 +02:00
Thomas Eichinger
7e88358135
Merge pull request #3194 from haukepetersen/mv_sam3x
...
cpu: rename SAM3X8E to SAM3
2015-07-14 15:42:45 +02:00
Hauke Petersen
08c4732fba
cpu/native: adjusted stacksizes
...
The stacksizes for native were defined in a way, so that
DEBUG did not work inside of interrupt routines. The new
values should still be large enough but allow now for this.
2015-07-14 15:06:50 +02:00
Joakim Gebart
fa4e059588
Merge pull request #3319 from gebart/pr/warning-fixes-3
...
Makefile.cflags: Build with -Wall -Werror by default (including fixes to correct all existing warnings)
2015-07-14 08:50:31 +02:00
Joakim Gebart
499666f24a
cpu/msp430-common: Add getchar declaration
2015-07-14 08:11:19 +02:00
Joakim Gebart
153c97fc74
cpu/msp430-common: Add stdlib.h header to ensure malloc is defined.
...
Fixes warnings of the kind:
/data/riotbuild/riotbase/sys/bloom/bloom.c: In function 'bloom_new':
/data/riotbuild/riotbase/sys/bloom/bloom.c:39:5: error: implicit declaration of function 'calloc' [-Werror=implicit-function-declaration]
/data/riotbuild/riotbase/sys/bloom/bloom.c:39:22: error: incompatible implicit declaration of built-in function 'calloc' [-Werror]
2015-07-14 08:11:15 +02:00
Joakim Gebart
d8e9b62c75
cpu/cc430/flashrom.c: Fix warning about unused static function by declaring inline
2015-07-14 08:11:14 +02:00
Joakim Gebart
c274558e91
cpu/arm7_common/syscalls: Fix warnings and comment style
2015-07-14 08:11:14 +02:00
Joakim Gebart
32c213d0b0
cpu/cortexm_common: Fix signedness warning
2015-07-14 08:11:14 +02:00
Joakim Gebart
84bf05a0bd
cpu/cc430: fix unused-but-set-variable
2015-07-14 08:11:14 +02:00
Oleg Hahm
91da19d500
Merge pull request #3381 from gebart/pr/kinetis-spi-unused-byte-in
...
cpu/kinetis_common/spi: Fix byte_in unused.
2015-07-14 01:17:56 +02:00
Joakim Gebart
53d81bd58d
cpu/x86: rename stack_t -> stack_info_t
...
Avoids collision with libc defined stack_t in #include <sys/signal.h>
2015-07-13 19:57:55 +02:00
Joakim Gebart
624c241ec6
cpu/kinetis_common/spi: Fix byte_in unused.
...
Bug reported by the clang static analyzer.
Description: Value stored to 'byte_in' is never read
File: .../riot/cpu/kinetis_common/spi.c
Line: 1261
2015-07-13 17:24:00 +02:00
Johann Fischer
cb8ff544d5
cpu/kinetis_common/i2c.c: add _i2c_reset function, minor fixes
2015-07-09 23:19:56 +02:00
Joakim Gebart
eef8f25a44
kinetis: i2c: Handle ARBL flag in master mode.
...
The ARBL flag signals that bus master arbitration has been lost.
This may occur if devices on the bus misbehave, or in a multi-master
situation, or if devices are not powered and pull the SDA line down, or
if the communication wires are disconnected while communicating.
2015-07-09 23:19:55 +02:00
Joakim Gebart
cba6a81a73
kinetis: i2c: only send STOP in _i2c_stop()
2015-07-09 23:19:55 +02:00
d15f0990b3
Merge pull request #3344 from kaspar030/fix_native_timer_possible_underflow
...
native: periph/timer: prevent underflow in timer_set_absolute
2015-07-09 22:17:44 +02:00
Benoît Canet
e01329796d
native: timer: synchronize HWTIMER_SPIN_BARRIER with timer min resolution
...
This keeps the test/hwtimer_wait test duration correct.
2015-07-09 20:42:21 +02:00
Peter Kietzmann
f95aaa6bf6
Merge pull request #3327 from authmillenon/native/enh/address-sanitizer
...
native: add address sanitizer make target
2015-07-09 16:07:00 +02:00
ec441e9aa6
native: periph/timer: prevent underflow in timer_set_absolute
2015-07-09 15:23:21 +02:00
Benoît Canet
e8e89d8ca9
native: timer: Do not cancel timer when setting it to 0
2015-07-09 15:08:47 +02:00
Martine Lenders
8a33a62914
native: add address sanitizer make target
2015-07-09 15:00:19 +02:00
Joakim Gebart
b949b5b539
Merge pull request #3335 from gebart/pr/kinetis-ldscript-cleanup
...
cpu/kinetis_common: refactor ldscripts
2015-07-09 12:59:02 +02:00
b2272fc016
Merge pull request #3282 from benoit-canet/timer
...
native: Resurect native/perif/timer and handle #715 (WIP)
2015-07-09 11:12:24 +02:00
Benoît Canet
dfbd4f946e
cpu: native: switch to hwtimer_compat
...
The hwtimer_wait test was tortured with the
following script which ran several hours.
----
make clean all-debug
while :
do
date
./bin/native/hwtimer_wait.elf > log &
pid=$!
sleep 20
success=$(cat log|grep success)
if [ "$success" != "success" ]
then
date
echo "BUG"
exit
fi
kill $pid
done
----
Closes #715 .
2015-07-09 02:43:04 +02:00
fe96d379f6
native: add periph/timer.h timer implementation
2015-07-09 02:43:04 +02:00
Benoît Canet
ced541cc67
native: irq_cpu: Rewrite IRQs (de)registration
2015-07-09 02:43:04 +02:00
Benoît Canet
4832a1a6b0
native: irq_cpu: Whitelist signals
2015-07-09 02:43:03 +02:00
Benoît Canet
a035d27414
native: irq_cpu: Make IRQ enabling/disabling safe
2015-07-09 02:43:01 +02:00
52599fde66
cpu: native: work around shared errno in _native_lpm_sleep
2015-07-09 00:31:31 +02:00
Joakim Gebart
ed81e35e4c
cpu/kinetis_common: refactor ldscripts
...
- Merged the two kinetis_common ldscripts into a single script.
- Updated cpus to use the new script
- Updated K60 to merge sram_l and sram_u into one segment
2015-07-08 19:20:00 +02:00
Joakim Gebart
ee4182b246
cpu/cortexm_common: Overwrite stack up until the current stack pointer only.
2015-07-07 18:04:30 +02:00
Joakim Gebart
63bde8906e
cpu/atmega_common/avr-libc-extra/inttypes.h: Correct format strings for 64 bit numbers
2015-07-07 00:53:26 +02:00
Peter Kietzmann
004a83c44d
Merge pull request #3028 from gebart/pr/cmsis-dsp
...
pkg/cmsis-dsp: Add CMSIS-DSP as a package
2015-07-04 09:39:22 +02:00
Lari Lehtomäki
85cf28451b
cpu/stm32f3: Split the RAM on STM32F334 into RAM and CCM RAM
2015-07-03 16:45:39 +03:00
Johann F
d614cbe066
cpu/k64f: initial import for the Freescale K64F Cortex-M4 MCU
2015-07-01 23:08:02 +02:00
bapclenet
10f3f715cb
Merge pull request #3205 from kaspar030/fix_samr21-xpro_clock_setup
...
cpu: samd21: fix synchronization loop in clk_init
2015-06-28 20:15:08 +02:00
Joakim Gebart
2f47ec6057
cortexm_common: Add CMSIS DSP defines
2015-06-25 08:00:59 +02:00
Joakim Gebart
fc4ab35140
Merge pull request #3116 from gebart/pr/lpc2387-extab
...
lpc2387: Add missing exception tables to linker script
2015-06-24 14:46:50 +02:00
Hauke Petersen
5a163b2e61
Merge pull request #3230 from benoit-canet/add_missing_addtogroup_brace
...
cpu/stm32f3: Add missing closing Doxygen braces for addtogroup
2015-06-23 09:56:23 +02:00
Peter Kietzmann
f62bc56648
Merge pull request #3215 from haukepetersen/fix_periphcpu_addenums
...
cpu: added dev_enums.h include to all periph_cpu.h
2015-06-22 08:44:26 +02:00
Benoît Canet
8c6c1114f3
cpu/stm32f3: Add missing closing Doxygen braces for addtogroup
...
The candidates locations for the closing braces were confirmed by looking at
cpu/stm32f0 headers.
The closing brace styles stick with the style of each file.
Closes #2956
2015-06-22 00:08:13 +02:00
Hauke Petersen
765c013834
Merge pull request #3155 from haukepetersen/opt_cortex_startup
...
cpu: centralized startup code for cortexm CPUs
2015-06-17 00:01:56 +02:00
Hauke Petersen
4ae5204b36
cpu: added dev_enums.h include to all periph_cpu.h
2015-06-16 22:41:16 +02:00
Peter Kietzmann
666ad5da5f
Merge pull request #3165 from katezilla/nucleo-f303
...
board/Nucleo-f303: initial support for the Nucleo-f303
2015-06-16 09:17:10 +02:00
Peter Kietzmann
938d12c2d8
Merge pull request #3204 from haukepetersen/fix_f3_gpio
...
cpu/stm32f3: fixed init_af in GPIO driver
2015-06-16 08:05:42 +02:00
1172597594
cpu: samd21: fix synchronization loop in clk_init
2015-06-15 21:33:13 +02:00
Hauke Petersen
7216f21122
cpu/stm32f4: fix init_af in GPIO driver
2015-06-15 20:41:49 +02:00
Hauke Petersen
ad0e9c26b6
cpu/stm32f3: fixed init_af in GPIO driver
2015-06-15 20:40:40 +02:00
Hauke Petersen
88130fcb54
cpu/kw2x: optimization of startup code
2015-06-15 16:00:51 +02:00
Hauke Petersen
253e7ce715
cpu/kinetis_common: optimization of startup code
2015-06-15 16:00:51 +02:00
Hauke Petersen
8db0a57a81
cpu/k60: optimization of startup code
2015-06-15 16:00:51 +02:00
Hauke Petersen
983e8abd74
cpu/lpc1768: optimized startup code
...
- make use of common cortexm isr vectors
- use common cortexm startup code
- renamed startup.c to vectors.c
2015-06-15 16:00:51 +02:00
Hauke Petersen
d7e27c67c3
cpu/stm32f4: optimization of startup code
...
- make use of common startup code
- make use of common exception handlers
- renamed startup.c to vectors.c
2015-06-15 16:00:51 +02:00
Hauke Petersen
bdb708a39e
cpu/stm32f3: optimization of startup code
...
- make use of common startup code
- make use of common exception handlers
- renamed startup.c to vectors.c
2015-06-15 16:00:51 +02:00
Hauke Petersen
5eb9b73cd6
cpu/stm32f1: optimization of startup code
...
- make use of common startup code
- make use of common exception handlers
- renamed startup.c to vectors.c
2015-06-15 16:00:51 +02:00
Hauke Petersen
38d38f6c79
cpu/stm32l1: optimization of startup code
...
- make use of common startup code
- make use of common exception handlers
- renamed startup.c to vectors.c
2015-06-15 16:00:51 +02:00
Hauke Petersen
f30b7bf13d
cpu/stm32f0: optimization of startup code
...
- make use of common startup code
- make use of common exception handlers
- renamed startup.c to vectors.c
2015-06-15 16:00:51 +02:00
Hauke Petersen
aa583f254d
cpu/saml21: optimization of startup code
...
- make use of common startup code
- make use of common exception handlers
- renamed startup.c to vectors.c
2015-06-15 16:00:51 +02:00
Hauke Petersen
e8dd6afa38
cpu/samd21: optimization of startup code
...
- make use of common startup code
- make use of common exception handlers
- renamed startup.c to vectors.c
2015-06-15 16:00:51 +02:00
Hauke Petersen
4ccbeeb6bf
cpu/sam3x8e: optimization of startup code
...
- make use of common startup code
- make use of common exception handlers
- renamed startup.c to vectors.c
2015-06-15 16:00:51 +02:00
Hauke Petersen
db1ee85d8b
cpu/nrf51822: optimization of startup code
...
- make use of common startup code
- make use of common exception handlers
- renamed startup.c to vectors.c
2015-06-15 16:00:51 +02:00
Hauke Petersen
37078856e7
cpu/cc2538: optimization of startup code
...
- make use of common startup code
- make use of common exception handlers
- renamed startup.c to vectors.c
2015-06-15 16:00:51 +02:00
Hauke Petersen
4b65a07adc
cpu/make.cortexm: s/startup.o/vectors.o/
2015-06-15 16:00:51 +02:00
Hauke Petersen
c286da8d7f
cpu/cortexm: unified startup code and isr handlers
2015-06-15 16:00:51 +02:00
Hauke Petersen
9476c03550
cpu/sam3: adjusted name of doxygen group
2015-06-15 14:29:46 +02:00
Hauke Petersen
2588a62d89
cpu/sam3: made headers for sam3e8x exclusive
2015-06-15 14:29:46 +02:00
Hauke Petersen
6764f7abcd
cpu/sam3: moved pwm driver into correct position
2015-06-15 14:29:46 +02:00
Hauke Petersen
a819fd6474
cpu/sam3: fixed to remove cppcheck warnings
...
- fixed gpio driver
- fixed uart driver
2015-06-15 14:29:46 +02:00
Hauke Petersen
88c32664a8
cpu: s/sam3x8e/sam3/
2015-06-15 14:29:46 +02:00
Hauke Petersen
71995e7cde
cpu/stm32f4: added custom GPIO_UNDEF define
2015-06-14 16:16:39 +02:00
Hauke Petersen
8c690f1d6a
cpu/stm32f3: added custom GPIO_UNDEF define
2015-06-14 16:16:28 +02:00
Hauke Petersen
ac8ad5419d
cpu/saml21: added custom GPIO_UNDEF define
2015-06-14 16:16:04 +02:00
Hauke Petersen
138a6a7d1b
cpu/samd21: added custom GPIO_UNDEF define
2015-06-14 16:15:53 +02:00
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
haukepetersen
28655049a5
cpu/sam3x8e: use core_panic for fault ISRs
2015-02-15 11:20:59 +01:00
Johann Fischer
8afc8dfdc3
cpu/kinetis_common: add common startup.c
...
cpu/kinetis_common/wdog.c: move wdog disable code to initial wdog driver
cpu/kinetis_common/wdog.c: add COP WDOG
cpu/kinetis_common/include/wdog.h: add configuration example
cpu/kinetis_common: add fault handlers
cpu/kinetis_common: add .ramcode and ISR vector relocation to startup.c
2015-02-15 10:28:13 +01:00
Joakim Gebart
a745c018da
kinetis: Refactor RTC into RTT, add RTC wrapper.
2015-02-14 14:20:26 +01:00
Martine Lenders
9077299d06
msp430: add assert header
2015-02-12 14:24:06 +01:00
Ian Martin
c3417d151a
cpu/cc2538: vector table address and alignment
...
Enforce the 512-byte vector table alignment and set the
VTOR register to the actual address of the vector table.
2015-02-11 11:09:19 -05:00
Fabian Nack
36025280de
cpu/stm32f4: Add low power mode implementation
2015-02-11 10:04:26 +01:00
Joakim Gebart
7829a55a8c
cortex-m4_common: Minor fixes for string handling in core_panic()
2015-02-10 13:33:30 +01:00
Joakim Gebart
0b7a929ec6
cortex-m4_common: Add debugger break in crash.c
2015-02-10 13:09:43 +01:00
Hauke Petersen
02831e325f
cpu/nrf51822: use of core_panic in startup code
2015-02-10 09:40:35 +01:00
Joakim Gebart
bf730c1c60
Merge pull request #2415 from haukepetersen/add_m0_crash
...
cpu/cortex_m0_common: added crash.c
2015-02-10 09:18:01 +01:00
Joakim Gebart
4d47e652dc
Merge pull request #2416 from haukepetersen/add_m4_crash
...
cpu/cortex-m4_common: added crash.c
2015-02-10 08:07:19 +01:00
Hauke Petersen
68b167ca77
cpu/cortex-m4_common: added crash.c
2015-02-09 18:28:32 +01:00
Hauke Petersen
7a11301451
cpu/cortex_m0_common: added crash.c
2015-02-09 18:27:42 +01:00
Joakim Gebart
29d3959b10
kinetis: Add shared Kinetis linker script.
2015-02-09 17:52:04 +01:00
Ludwig Ortmann
dd2da2fb71
Merge pull request #2405 from cgundogan/restrict_with_leading_underscores
...
Use `__restrict` instead of `restrict`
2015-02-08 22:07:23 +01:00
Cenk Gündoğan
432f0014c0
cpu: restrict => __restrict
2015-02-08 19:15:14 +01:00
Martine Lenders
0eb2d78dda
doc: use my real name
2015-02-08 18:52:16 +01:00
Hauke Petersen
21dd39249f
cpu/nrf51822: raised default stack size
2015-02-07 13:22:18 +01:00
Joakim Gebart
890262e6ff
Merge pull request #2265 from jfischer-phytec-iot/pr@kinetis_common
...
Support for Freescale Kinetis MCUs, kinetis_common
2015-02-05 10:00:02 +01:00
Thomas Eichinger
304d3b13eb
Merge pull request #2371 from gebart/pr/cmsis-hal-4.0
...
Update CMSIS HAL to version 4.0
2015-02-04 15:50:17 +01:00
Johann F
c0628a3058
cpu/kinetis_common: initial import for kinetis_common
...
add peripheral drivers for Freescale Kinetis MCUs:
adc driver
cpuid driver
gpio driver
hwtimer_arch driver (hwtimer used Low Power Timer)
i2c driver (master mode only)
mcg driver
pwm driver
random_rnga driver
random_rngb driver
rtc driver
spi driver
timer driver (timer used Periodic Interrupt Timer)
uart driver
add doc.txt (configuration examples)
random_rnga: Update RNGA driver in preparation for RNGB driver.
random_rngb: Add RNGB driver.
spi: refactor SPI to work for multiple CTARS, add spi_acquire, spi_release
gpio: Add gpio_irq_enable, gpio_irq_disable. Refactor GPIO.
gpio: Add gpio_irq_enable, gpio_irq_disable.
gpio: Refactor ISR functions to work with all GPIOs (0-31) and all ports (PORTA-PORTH)
adc: Refactor ADC, add calibration and scaling.
Added integer scaling of results in adc_map.
Handle precision setting in adc_init.
Set ADC clock divider depending on module clock.
Add ADC_1 as a possible device.
Add ADC calibration procedure according to K60 ref manual.
Handle ADC pins which are not part of the pin function mux.
Signed-off-by: Joakim Gebart <joakim.gebart@eistec.se>
2015-02-04 14:50:54 +01:00
Joakim Gebart
45dbbd18ae
stm32f0: Remove Doxygen from already documented functions.
2015-02-01 08:09:46 +01:00
Joakim Gebart
f977448d18
cortex-m0: Add extern "C" to core_cmInstr.h
...
Signed-off-by: Joakim Gebart <joakim.gebart@eistec.se>
2015-01-29 10:18:29 +01:00
Joakim Gebart
ae8c7607ea
cortex-m0: Add extern "C" to core_cmFunc.h
...
Signed-off-by: Joakim Gebart <joakim.gebart@eistec.se>
2015-01-29 10:18:29 +01:00
Joakim Gebart
8c00ee0d7b
cortex-m0: Update to CMSIS HAL 4.0
...
Signed-off-by: Joakim Gebart <joakim.gebart@eistec.se>
2015-01-29 10:18:29 +01:00
Joakim Gebart
068dfdff4b
cortex-m3: Add extern "C" to core_cmInstr.h
...
Signed-off-by: Joakim Gebart <joakim.gebart@eistec.se>
2015-01-29 10:18:29 +01:00
Joakim Gebart
489caf0be0
cortex-m3: Add extern "C" to core_cmFunc.h
...
Signed-off-by: Joakim Gebart <joakim.gebart@eistec.se>
2015-01-29 10:18:28 +01:00
Joakim Gebart
463d4a1cf4
cortex-m3: Update to CMSIS HAL 4.0
...
Signed-off-by: Joakim Gebart <joakim.gebart@eistec.se>
2015-01-29 10:18:28 +01:00
Joakim Gebart
53b29f40e7
cortex-m4: Add extern "C" to core_cmInstr.h
...
Signed-off-by: Joakim Gebart <joakim.gebart@eistec.se>
2015-01-29 10:18:28 +01:00
Joakim Gebart
0d8aaf86a8
cortex-m4: Add extern "C" to core_cmFunc.h
...
Signed-off-by: Joakim Gebart <joakim.gebart@eistec.se>
2015-01-29 10:18:28 +01:00
Joakim Gebart
fe43bb2b7a
cortex-m4: Update to CMSIS HAL 4.0
...
Signed-off-by: Joakim Gebart <joakim.gebart@eistec.se>
2015-01-29 09:38:31 +01:00
haukepetersen
bb1288b775
cpu/stm32f3: added support for stm32f334r8
2015-01-27 23:14:10 +01:00
BytesGalore
714ee38355
boards: core: cpu: drivers: sys: added missing header guards
2015-01-27 19:10:57 +01:00
Fabian Nack
870a695a38
cpu/stm32f4: Adapt PWM implementation to allow timers with < 4 channels
2015-01-22 02:24:00 +01:00
Peter Kietzmann
eaf9cc32e6
Merge pull request #2308 from haukepetersen/fix_stm32f0_gpioclks
...
cpu/stm32f0: fixed port clk en for GPIO driver
2015-01-21 10:20:10 +01:00
haukepetersen
0f746047d7
cpu/stm32l1: repaired doxygen group
2015-01-21 09:34:31 +01:00
Hauke Petersen
3976554f12
cpu/stm32f0: fixed port clk en for GPIO driver
2015-01-21 08:14:31 +01:00
Ludwig Ortmann
e03596f9d6
Merge pull request #2324 from LudwigOrtmann/native-random-warnings
...
cpu/native: warn about uninitialized random module
2015-01-20 09:28:51 +01:00
Peter Kietzmann
ebadbd6da3
Merge pull request #2323 from thomaseichinger/i2c_mutex
...
periph/i2c: added means to make I2C thread-safe
2015-01-20 07:57:20 +01:00
Peter Kietzmann
0c3083200d
Merge pull request #2317 from gebart/pr/spi-locking
...
drivers/periph/spi: Implement thread safety for all SPI devices
2015-01-20 07:27:49 +01:00
Joakim Gebart
d68b4ef6c2
stm32l1: Basic implementation of spi_acquire(), spi_release()
...
Signed-off-by: Joakim Gebart <joakim.gebart@eistec.se>
2015-01-19 19:05:37 +01:00
Joakim Gebart
3292987516
stm32f3: Basic implementation of spi_acquire(), spi_release()
...
Signed-off-by: Joakim Gebart <joakim.gebart@eistec.se>
2015-01-19 19:05:34 +01:00
Joakim Gebart
f64c54bf66
stm32f1: Basic implementation of spi_acquire(), spi_release()
...
Signed-off-by: Joakim Gebart <joakim.gebart@eistec.se>
2015-01-19 19:05:31 +01:00
Joakim Gebart
98c88b0549
stm32f0: Basic implementation of spi_acquire(), spi_release()
...
Signed-off-by: Joakim Gebart <joakim.gebart@eistec.se>
2015-01-19 19:05:23 +01:00
Joakim Gebart
bec43f11d8
samd21: Basic implementation of spi_acquire(), spi_release()
...
Signed-off-by: Joakim Gebart <joakim.gebart@eistec.se>
2015-01-19 19:05:20 +01:00
Joakim Gebart
b20f21f2c5
sam3x8e: Basic implementation of spi_acquire(), spi_release()
...
Signed-off-by: Joakim Gebart <joakim.gebart@eistec.se>
2015-01-19 19:05:15 +01:00
Thomas Eichinger
830b2b2312
cpu/stm32l1: make i2c thread-safe
2015-01-19 12:20:09 +01:00
Thomas Eichinger
8821e0edcf
cpu/stm32f4: make i2c thread-safe
2015-01-19 12:20:09 +01:00
Thomas Eichinger
30040fa311
cpu/samd21: make i2c thread-safe
2015-01-19 12:20:09 +01:00
Thomas Eichinger
fe643f7077
periph/i2c: added means to make I2C thread-safe
...
As discussed in #2289 this changes provide means to
use the i2c interface safely within multible threads.
2015-01-19 12:18:03 +01:00
Thomas Eichinger
5ae38d6dc7
Merge pull request #1927 from kaspar030/add_lto_flags
...
make: optionally build with gcc's link time optimization
2015-01-19 11:33:32 +01:00
Ludwig Ortmann
3465213118
cpu/native: warn about uninitialized random module
2015-01-19 11:21:01 +01:00
Hauke Petersen
70a5df67a5
cpu/stm32f4: made SPI driver thread safe
2015-01-17 15:13:51 +01:00
Hauke Petersen
c3cdfe7ef7
Merge pull request #2315 from fnack/spi_clock
...
cpu/stm32f4: Fix SPI baud rate control settings
2015-01-16 11:19:18 +01:00
Fabian Nack
672a362f2e
cpu/stm32f4: Corrected wrong spi baud rate control settings
2015-01-16 09:24:48 +01:00
Hauke Petersen
23ecb09f12
cpu/stm32f4: added lost port clock eanble
2015-01-15 14:23:06 +01:00
Ludwig Ortmann
c4d4458651
Merge pull request #2243 from LudwigOrtmann/native-calloc
...
native: fix real_calloc, _native_in_calloc initialization
2015-01-14 14:05:06 +01:00
Ludwig Ortmann
88fa49ab38
cpu/native: add high-quality random implementation
...
Per default random data is read from `/dev/random` now.
If specified (e.g. `-s 4711`), data is generated by calls to POSIX
random function like before. The POSIX random API is initialize with
the given seed (`srandom(4711);` in this example).
2015-01-14 11:51:23 +01:00
Hauke Petersen
b435a488fa
Merge pull request #2026 from thomaseichinger/stm32l1
...
stm32l1: initial port for the nucleo-l1 board and stm32l1 cpu
2015-01-12 21:33:21 +01:00
Thomas Eichinger
07d76d7127
stm32l1: initial port for the nucleo-l1 board and stm32l1 cpu
2015-01-12 15:13:19 +01:00
Troels Hoffmeyer
29b0e73350
samr21: cpuid implemented by reading 128 bits from flash
2015-01-12 13:50:16 +01:00
Ludwig Ortmann
3ab73bc633
cpu/native: init _native_in_calloc explicitly
2015-01-11 10:59:49 +01:00
Ludwig Ortmann
f5cfda977a
cpu/native: fix real_calloc initialization
2015-01-11 10:59:49 +01:00
Thomas Eichinger
2ea028dd51
Merge pull request #2011 from haukepetersen/add_stm32f3_spi
...
cpu/stm32f3: added SPI driver
2015-01-09 11:46:06 +01:00
9fffd99493
stm32f1: mark interrupt vector table as __attribute__((used))
...
Enables gcc LTO for stm32f1 based boards
2015-01-08 15:59:54 +01:00
Oleg Hahm
9bddd61115
Merge pull request #2207 from gebart/pr/lpc2387-gc-sections
...
msba2: Use --gc-sections when linking.
2015-01-08 14:05:27 +01:00
Hauke Petersen
a365619854
cpu/stm32f3: added SPI driver
2015-01-07 20:18:25 +01:00
Hauke Petersen
905a7f2f56
Merge pull request #1867 from haukepetersen/fix_stm32f0_uartremodel
...
cpu/stm32f0: optimizations to UART driver
2015-01-07 20:11:59 +01:00
Hauke Petersen
3987f528f4
cpu/stm32f0: optimizations to UART driver
2015-01-07 20:11:15 +01:00
Joakim Gebart
99319f4e28
[SQUASH ME] lpc2387: Add missing *(data.*) to linker script.
2015-01-07 19:10:58 +01:00
Ludwig Ortmann
7d948e4d65
Merge pull request #2260 from bapclenet/samr21/RTC
...
SAMR21/RTC: Error negative second fixed
2015-01-07 18:33:24 +01:00
bapclenet
f49661f617
cpu/samd21: fix rtc negative second error
2015-01-07 17:07:41 +01:00
Oleg Hahm
6dac96ad1b
Merge pull request #1904 from LudwigOrtmann/native_bufferbloat
...
native: increase buffer size, set defaults conditionally
2015-01-07 03:00:01 +01:00
benpicco
9c50f206c5
Merge pull request #2252 from benpicco/samd21-malloc
...
cpu/samd21: check if the requested memory is really available in _sbrk_r
2015-01-06 20:31:09 +01:00
Benjamin Valentin
070420db7d
samd21: check if the requested memory is really available in _sbrk_r
...
copy the check from sam3x8e
2015-01-06 19:22:46 +01:00
Thomas Eichinger
d6c4d5581f
Merge pull request #2215 from bapclenet/samr21/RTC
...
cpu/samd21: add rtc periph implementation
2015-01-06 18:21:22 +01:00
Thomas Eichinger
e6c4181c94
Merge pull request #2229 from LudwigOrtmann/issue-2228
...
cpu/samd21: increase default stack size
2014-12-28 02:26:46 +01:00
Ludwig Ortmann
5e0973ca89
Merge pull request #2150 from OlegHahm/more_doc_cleanup
...
doc: More documentation cleanup
2014-12-22 11:58:59 +01:00
Ludwig Ortmann
d74f7425a5
cpu/samd21: increase default stack size
...
Provide enough space to run `examples/default`.
2014-12-20 17:00:11 +01:00
Oleg Hahm
db58a8b226
Merge pull request #2214 from rousselk/msp430-fix-intr
...
Msp430 misc interrupt-related fixes
2014-12-19 16:35:39 +01:00
Hauke Petersen
6a35845203
Merge pull request #2223 from kaspar030/stm32f1_fix_function_definition
...
stm32f1: make function definition match declaration
2014-12-19 15:58:43 +01:00
547ddddad2
stm32f1: make function definition match declaration
2014-12-19 15:15:00 +01:00
Hauke Petersen
1bd63978a8
Merge pull request #2222 from haukepetersen/fix_lpc1768_uartclk
...
cpu/lpc1768: fixed UART PCLK selection
2014-12-19 14:21:08 +01:00
Hauke Petersen
31a6e81bd9
cpu/lpc1768: fixed UART PCLK selection
2014-12-19 13:47:58 +01:00
Kévin Roussel
892268d74b
Ensure only GIE bit is touched in splx_()
2014-12-19 11:11:15 +01:00
Kévin Roussel
07b170595c
Ensure interrupts are enabled before going in low-power mode
2014-12-19 11:11:14 +01:00
Kévin Roussel
91fd567c8f
Use custom assembly code instead of MSP GCC primitives for dINT()/eINT()
...
and all other functions that enable or disable interrupts
2014-12-19 11:11:14 +01:00
Kévin Roussel
f9b0df7e4b
Use TimerB for 'hwtimer' module implementation
2014-12-19 10:53:12 +01:00
Kévin Roussel
25ac0db606
Robust use of TimerA for 'hwtimer' module
2014-12-19 10:53:12 +01:00
Oleg Hahm
a17d89fbed
Merge pull request #1619 from rousselk/msp430-hwtimer-16bit
...
Only use 16 significative bits for MSP430 hwtimers
2014-12-18 18:49:02 +01:00
bapclenet
55aabf9dfb
cpu/samd21: add rtc periph implementation
2014-12-18 15:25:49 +01:00
Thomas Eichinger
ca53077e3c
Merge pull request #1998 from Troels51/samr21-hwtimer-fix
...
samr21: 32 hwtimer
2014-12-17 17:29:36 +01:00
Troels Hoffmeyer
7124ec6258
samr21: implemented 32 bit hwtimer
2014-12-17 14:44:54 +01:00
Kévin Roussel
1fb12b770e
Reduce variable scope in init function
2014-12-17 12:21:16 +01:00
Kévin Roussel
d101b30dd8
Make hwtimer_spin() work even with interrupts disabled
...
by using only 16 significative bits on MSP430 hardware timers
2014-12-17 12:21:07 +01:00
Thomas Eichinger
5689a7d218
Merge pull request #1997 from Troels51/samr21-transceiver-port
...
samr21: implemention of transceiver via spi
2014-12-17 11:56:37 +01:00
Joakim Gebart
390b8394d6
msba2: Use --gc-sections when linking.
...
- Add `-Wl,--gc-sections` to LDFLAGS
- Add `-fdata-sections` and `-ffunction-sections` to CFLAGS
- Update lpc2387 linker script to keep the isr vector and init
sections when garbage collecting.
- Keep .ctors and .dtors sections (similar to what binutils default
linker script does when building for Linux targets)
Signed-off-by: Joakim Gebart <joakim.gebart@eistec.se>
2014-12-17 11:37:58 +01:00
Hauke Petersen
765c4f38e5
Merge pull request #2201 from BytesGalore/mbed_lpc1768_uartUSB
...
board/mbed_lpc1768 changed the serial device to UART0
2014-12-17 10:35:03 +01:00
BytesGalore
c40e5267a6
board/mbed_lpc1768 changed the serial device to UART0
...
-> enables USB/serial communication
2014-12-17 07:27:28 +01:00
Ludwig Ortmann
e7f6f640f6
Merge pull request #2060 from OlegHahm/periph_rtc
...
drivers: Adapt old platforms to periph rtc
2014-12-16 18:56:59 +01:00
Troels Hoffmeyer
33ef43c8e2
samr21: implemented transceiver via spi, gpio changes
2014-12-16 17:43:30 +01:00
Oleg Hahm
60cd0d357d
periph_rtc: streamline lpc2387 and cc430 naming
2014-12-16 17:02:44 +01:00
Oleg Hahm
849580a9c9
cpu: lpc2387: further rtc cleanup
2014-12-16 17:02:44 +01:00
Oleg Hahm
587920cc49
cpu: remove superfluous gettimeofday functions
2014-12-16 17:02:44 +01:00
Oleg Hahm
93cf446b55
rtc: cleanup of lpc2387-rtc implementation
2014-12-16 17:02:44 +01:00
Oleg Hahm
498edb1854
cc430: lpc2387: switch to new periph/rtc interface
...
Removes the old interface.
2014-12-16 17:02:44 +01:00
Hauke Petersen
78eed22dd2
cpu/lpc1768: added basic timer implementation
2014-12-16 16:57:31 +01:00
Ludwig Ortmann
2ec0a1ca02
native/rtc: apply naming conventions
2014-12-16 15:46:56 +01:00
Ludwig Ortmann
474c8afd93
native/rtc: define ENABLE_DEBUG, move include
2014-12-16 15:41:51 +01:00
Thomas Eichinger
29c5822e02
Merge pull request #2016 from bapclenet/master
...
cpu/samd21: I2C driver implementation (Master mode)
2014-12-15 16:58:19 +01:00
Ludwig Ortmann
f35981a6d7
native/rtc: improve implementation
...
* add error checking / warnings
* implement parts of alarm functionality
* clean up
2014-12-13 15:21:52 +01:00
Ludwig Ortmann
37a1a105bc
native/rtc: clean up documentation
2014-12-13 15:21:52 +01:00
Ludwig Ortmann
c0ef84bb9f
native: move rtc to periph
...
* adapt implementation to new interface
* remove now superfluous drivers directory
2014-12-13 15:21:52 +01:00
Oleg Hahm
e79e00ef7f
doc: add documentation for packet format in mc1322x
2014-12-11 17:26:26 +01:00
bapclenet
54fb0f0610
cpu/samd21: add i2c periph implementation
2014-12-11 08:32:27 +01:00
Hauke Petersen
67b4dfd89d
cpu/lpc1768: added basic UART driver
2014-12-08 19:48:20 +01:00
Ludwig Ortmann
0027f90be4
Merge pull request #2118 from OlegHahm/simplify_cpu_folder_structure
...
cpu: simplify folder structure
2014-12-08 13:10:13 +01:00
Oleg Hahm
a5dc951ef2
doc: fix doxygen group for cc2538 memory map
2014-12-06 14:32:22 +01:00
Oleg Hahm
04b67f1ff0
doc: avr cleanup
2014-12-06 01:12:31 +01:00
Oleg Hahm
cd81c040d8
uart0: remove superfluous prototype from header
...
Declare and document prototype in CPU part instead.
2014-12-05 20:33:10 +01:00
Oleg Hahm
000450c894
Merge pull request #2117 from OlegHahm/doxygen_eliminate_warnings
...
Doxygen eliminate warnings pt. 2
2014-12-04 17:18:42 +01:00
Oleg Hahm
43c86b5a3e
doc: fix remaining doxygen warnings
2014-12-04 17:16:57 +01:00
Oleg Hahm
0ccf1043de
doc: fixed broken doxygen references
2014-12-04 17:16:57 +01:00
Ludwig Ortmann
015f5598e4
native: cleanup irq_cpu, native_cpu debug output
2014-12-04 10:48:15 +01:00
Ludwig Ortmann
eb2cc522cd
native: forced debug message for SIGUSR1
2014-12-04 10:38:12 +01:00
Ian Martin
58e413afce
cpu/cc2538: add eh_frame section to the linkerscript
...
Fixes linker errors on some toolchains, for example:
ld: foo.elf section `.eh_frame' will not fit in region `cca'
ld: region `cca' overflowed by 40 bytes
2014-12-03 11:41:59 -05:00
Oleg Hahm
42436c9c37
Merge pull request #2120 from OlegHahm/fix_1235
...
native: removing externs from native tramp
2014-12-03 16:40:45 +01:00
Oleg Hahm
54bdc35ac8
native: removing externs from native tramp
2014-12-03 15:50:53 +01:00
Peter Kietzmann
8c189ce56e
Merge pull request #2127 from thomaseichinger/stm32f1-fix-TIMER_1
...
cpu/stm32f1: use correct timer device in timer interrupt
2014-12-03 14:35:25 +01:00
Thomas Eichinger
18647bb5ac
cpu/stm32f1: use correct timer device in timer interrupt
2014-12-03 13:28:55 +01:00
Martin
bfaacbbd38
cpu/arm_common: c++: initial support for c++ added _kill (weak) and weak attribute for _kill_r
...
boards/msba2: provided c++ feature (cpp)
2014-12-03 07:30:29 +01:00
Oleg Hahm
17929a5ce4
cpu: lpc2387: integrated lpc_common into lpc2387
...
Rationale 1: The common part made only sense for (some) NXP ARM7 MCUs,
but was misleading for MCUs like the LPC1768.
Rationale 2: The common part was only used by one specific MCU
implementation - no need to outsource it.
2014-12-02 17:47:10 +01:00
Oleg Hahm
0c967c4d3f
cpu: msp430: renamed msp430x16x to msp430fxyz
2014-12-02 17:46:57 +01:00
Fabian Nack
dc658f8be0
boards - msbiot: prepare msbiot for new cc110x driver
2014-12-01 17:14:09 +01:00
Oleg Hahm
d92e9af91c
doc: fixed broken param descriptions
2014-11-30 22:34:50 +01:00
Oleg Hahm
953a21b7a5
doc: remove doxygen duplication
2014-11-30 21:46:31 +01:00
Oleg Hahm
f8ecbf2a0a
doc: add to group instead of redefining
2014-11-30 21:45:24 +01:00
Oleg Hahm
fc7606a94b
doc: use doxygen li tags
2014-11-30 21:39:53 +01:00
Oleg Hahm
c5395342dc
doc: use @false instead of 0
2014-11-30 21:36:04 +01:00
Oleg Hahm
df9c09d946
doc: fixed typos and other misspellings
2014-11-30 21:32:12 +01:00
Oleg Hahm
cc73296d43
doc: added missing titles
2014-11-30 21:22:52 +01:00
Oleg Hahm
d3d68c876f
doc: use @brief for single defines
2014-11-30 21:18:24 +01:00
Oleg Hahm
ae8dd90884
doc: added missing closing doxygen brackets
2014-11-30 21:16:41 +01:00
Ludwig Ortmann
d11238a5ab
native: fix some debug messages
...
`name` isn't part of `tcb_t` anymore, also some function identified itself
wrongly.
2014-11-28 15:37:28 +01:00
DangNhat Pham-Huu
3e86b86472
Merge pull request #2083 from dangnhat/added_externc_for_missed_header
...
cpu/cc2538: added extern C for rfcore.h
2014-11-27 20:38:31 +07:00
Peter Kietzmann
ea77608297
Merge pull request #2097 from haukepetersen/fix_stm32f0_spinbarrier
...
cpu/stm32f0: set hwtimer spin barrier value
2014-11-27 08:32:41 +01:00
Hauke Petersen
3026e55c14
Merge pull request #1868 from haukepetersen/fix_stm32f4_gpiootp
...
cpu/stm32f4: optimized GPIO driver implementation
2014-11-26 23:40:50 +01:00
Hauke Petersen
36b3b9b457
cpu/stm32f0: set hwtimer spin barrier value
2014-11-26 18:40:17 +01:00
Hauke Petersen
f1fda21ab7
Merge pull request #2018 from brummer-simon/devel-dac_driver
...
Basic DAC Driver, implementation on stm32f4discovery
2014-11-26 17:52:39 +01:00
Hauke Petersen
426060875c
cpu/stm32f3: added low-level PWM driver
2014-11-26 16:56:59 +01:00
Ludwig Ortmann
50ec8d10c9
Merge pull request #2029 from LudwigOrtmann/native-more-syscalls
...
native: more syscalls
2014-11-26 10:47:27 +01:00
Christian Mehlis
3cd370ff6b
Merge pull request #2005 from haukepetersen/fix_nrf_enablehfclk
...
cpu/nrf51822: added HFCLK initialization
2014-11-25 23:41:34 +01:00
Ludwig Ortmann
00092e8308
native: add time syscalls
2014-11-25 22:47:27 +01:00
Ludwig Ortmann
4de10a2ecb
native: coding conventions
2014-11-25 22:47:27 +01:00
Ludwig Ortmann
7901d24053
native: add missing syscall declarations
2014-11-25 22:47:26 +01:00
Simon Brummer
5a4b966d9c
Basic DAC Driver, implementation on stm32f4discovery
2014-11-25 22:37:32 +01:00
Thomas Eichinger
b5071385db
Merge pull request #2036 from haukepetersen/fix_openmote_cpp
...
boards: enable C++ for CC2538 based boards
2014-11-25 18:57:40 +01:00
Pham Huu Dang Nhat
964d96e362
cpu/cc2538: added extern C for rfcore.h
2014-11-25 22:10:36 +07:00
DangNhat Pham-Huu
785fc1f5a8
Merge pull request #1803 from BytesGalore/extern_C_in_headers_cpus
...
cpu: added `extern "C"` to headers
2014-11-25 08:49:57 +07:00
BytesGalore
a4d2ee307c
cpu: added extern "C"
to headers
2014-11-24 19:10:15 +01:00
René Kijewski
f258c3e7ac
nrf51822: Suppress unused argument warnings
2014-11-24 18:43:14 +01:00
René Kijewski
7d7002305d
nrf51822: error was not checked b/c of wrong signedness
2014-11-24 16:23:58 +01:00
René Kijewski
96fe9f012c
nrf51822: Fix indentation in lpm_arch.c
2014-11-24 16:23:58 +01:00
René Kijewski
6f8377cf26
nrf51822: test arguments for read/write even in stubs
2014-11-24 16:23:58 +01:00
Thomas Eichinger
57470eb77e
Merge pull request #2065 from LudwigOrtmann/issue-392
...
license header + pattern cleanup
2014-11-24 10:36:16 +01:00
Oleg Hahm
5e2b43452c
cpu: arm7_common: added extern C guards
2014-11-21 21:00:52 +01:00
Oleg Hahm
20ce2aee8b
cpu: rename arm_common to arm7_common
...
To be more accurate with the naming and avoid confusions.
2014-11-21 20:27:19 +01:00
Ludwig Ortmann
01800f15f5
cpu/board: update stale redbee license headers
2014-11-21 15:18:11 +01:00
Oleg Hahm
10a4540f2d
license: added missing license for msp430 time.h
2014-11-21 15:10:19 +01:00
Hauke Petersen
2220a9fab0
core/cpu/boards: removed fw_puts from RIOT
2014-11-21 13:09:02 +01:00
Hauke Petersen
7ca2f9ccc8
Merge pull request #2047 from haukepetersen/fix_cortex_reboot
...
cpu: fixed and moved reboot_arch for cortex cpus
2014-11-21 12:56:41 +01:00
Hauke Petersen
f5480234c3
cpu/cc2538: made _kill(_r) syscalls weak
2014-11-21 11:43:21 +01:00
Hauke Petersen
9214990aee
cpu/lpc1768: heavy clean-up of existing code
...
- moved to new port structure
- rewrote startup code
- added implementation dummies for UART and timer
- switched to atmel linkerscript
- cleaned up Makefiles
2014-11-20 17:40:57 +01:00
Hauke Petersen
1e863a322d
cpu/cortex-mX_common: added delay to reboot_arch
2014-11-20 17:22:39 +01:00
Hauke Petersen
5600d86253
cpu/cortex-mX_common: fixed reboot_arch return val
2014-11-20 17:22:39 +01:00
Hauke Petersen
62b6522e01
cpu: moved reboot_arch for cortex cpus
2014-11-20 17:22:39 +01:00
PeterKietzmann
6d091245a4
Initial import of i2c lowlevel driver for stm32f4
2014-11-20 14:46:13 +01:00
Hauke Petersen
58fffcb50f
Merge pull request #2030 from haukepetersen/fix_nrf_cpp
...
boards: added C++ support for NRF51822 based boards
2014-11-19 15:59:42 +01:00
Hauke Petersen
ebf572d2d3
cpu/nrf51822: added made _kill(_r) syscall weak
2014-11-19 15:40:28 +01:00
Ludwig Ortmann
6eaaac6372
Merge pull request #2041 from LudwigOrtmann/native-random
...
native: peripheral random interface
2014-11-19 06:25:39 -08:00
Ludwig Ortmann
adb24b06b8
native: add random peripheral implementation
2014-11-19 14:26:58 +01:00
Ludwig Ortmann
d8641ff525
native: add random syscalls
2014-11-19 14:26:58 +01:00
9ce0b676b4
core: sys: move ringbuffer to core
2014-11-19 14:18:39 +01:00
Oleg Hahm
73dddfb601
Merge pull request #1635 from thomaseichinger/import_agilefox
...
boards: initial import for HiKoB Agilefox
2014-11-18 19:44:24 +01:00
Hauke Petersen
cff1dfc32d
Merge pull request #2034 from haukepetersen/fix_mbed_cpp
...
board/mbed_lpc1768: enabled C++ support
2014-11-18 19:43:42 +01:00
Hauke Petersen
92f5b150b6
cpu/lpc1768: made _kill(_r) syscalls weak
2014-11-18 18:34:30 +01:00
Hauke Petersen
e7f2e04a6a
cpu/sam3x8e: made _kill(_r) syscalls weak
2014-11-18 18:10:15 +01:00
Thomas Eichinger
256ce73d2c
boards: initial import for HiKoB fox
2014-11-18 17:24:47 +01:00
Hauke Petersen
594d9251c9
Merge pull request #1987 from BytesGalore/EasyCPPMixing_stm32f0discovery_support_fix
...
cpu/stm32f0 C++ stmf0discovery support fix
2014-11-17 18:21:19 +01:00
Hauke Petersen
d1e57faf34
Merge pull request #1994 from BytesGalore/EasyCPPMixing_samr21_xpro_support_fix
...
cpu/samd21 C++ samr21-xpro support fix
2014-11-17 18:20:50 +01:00
Martine Lenders
d4e651ad8b
Merge pull request #2015 from LudwigOrtmann/native_real-accept
...
native: add missing syscall declarations
2014-11-17 17:40:32 +01:00
Ludwig Ortmann
8d2a5b22b4
native: add daemonize argv filter
...
When daemonizing, only the first instance should do so.
2014-11-17 12:51:42 +01:00
Hauke Petersen
bb347e0a30
Merge pull request #1989 from BytesGalore/EasyCPPMixing_stm32f3discovery_support_fix
...
cpu/stm32f3 C++ stm32f3discovery support fix
2014-11-17 11:21:04 +01:00
Ludwig Ortmann
42e43d5e12
FIXUP: remove erroneous comment
2014-11-17 09:56:03 +01:00
Christian Mehlis
d56ebcbff2
Merge pull request #1932 from haukepetersen/fix_nrf_isrstacksize
...
cpu/nrf51822: changed ISR stack size to 512 byte
2014-11-16 17:44:20 +01:00
Ludwig Ortmann
acaa6481cb
native: add more syscall declarations
2014-11-14 20:52:17 +01:00
Ludwig Ortmann
a1b530a98d
native: shutdown -> native_shutdown
2014-11-14 20:51:34 +01:00
Ludwig Ortmann
641cb4c488
native: add accept syscall declaration
2014-11-14 17:49:56 +01:00
BytesGalore
8060825c81
cpu/stm32f3: c++: initial support for c++, added _kill (weak) and weak attribute for _kill_r
...
boards/stm32f3discovery: provided c++ feature (cpp)
2014-11-14 13:26:15 +01:00
BytesGalore
3154bc8bc5
cpu/stm32f0: c++: initial support for c++, added _kill (weak) and weak attribute for _kill_r
...
boards/stm32f0discovery: provided c++ feature (cpp)
2014-11-14 13:25:02 +01:00
BytesGalore
ae3492b017
cpu/samd12: c++: initial support for c++, added _kill (weak) and weak attribute for _kill_r
...
boards/samr21-xpro: provided c++ feature (cpp)
2014-11-14 13:20:54 +01:00
Hauke Petersen
6b33ff1a31
Merge pull request #2004 from dangnhat/cpp_for_iot_lab_m3
...
iot-lab_m3: C++ support
2014-11-14 13:00:49 +01:00
BytesGalore
0de260f5a2
Merge pull request #1985 from BytesGalore/EasyCPPMixing_stm32f4discovery_support_fix
...
squashed, changed comment and go.
2014-11-14 12:53:22 +01:00
BytesGalore
8c5418e9e5
initial support for c++ for this cpu/board
2014-11-14 11:19:34 +01:00
Pham Huu Dang Nhat
df192b0f25
cpu/stm32f1: c++: added _kill (weak) and weak attribute for _kill_r
2014-11-14 16:55:30 +07:00
Thomas Eichinger
2b0d49c8b1
Merge pull request #1954 from haukepetersen/fix_cortex_irqstacksize
...
cpu: adjusted IRQ stack sizes for Cortex CPUs
2014-11-14 10:50:51 +01:00
Thomas Eichinger
2382a4d320
native: fix Makefiles for OSX
2014-11-13 16:00:52 +01:00
Hauke Petersen
a3061bccc2
Merge pull request #1827 from haukepetersen/fix_nrf_timer
...
cpu/nrf51822: fixed timers
2014-11-12 13:21:44 +01:00
Hauke Petersen
2278e72952
cpu/nrf51822: added HFCLK initialization
2014-11-12 13:17:13 +01:00
Hauke Petersen
dc79675888
cpu/sam3x8e: made UART0 work by editing syscalls
2014-11-11 13:05:43 +01:00
Hauke Petersen
3c9c95f7b1
cpu/sam3x8e: added interrupt mode to uart driver
2014-11-11 13:05:02 +01:00
René Kijewski
fdb1190cfa
avr: define ssize_t
2014-11-11 10:45:56 +01:00
Ian Martin
7bbdbcc7cb
Allow the application's makefile to specify a custom linker script, for example:
...
LINKERSCRIPT = custom-linkerscript.ld
2014-11-10 14:28:35 -05:00
Oleg Hahm
037571445c
Merge pull request #1974 from OlegHahm/cleanup_licenses
...
licenses: fix miss-spelled & missing boiler plates
2014-11-10 19:53:40 +01:00
Oleg Hahm
39abba1bc2
licenses: fix miss-spelled & missing boiler plates
2014-11-10 18:59:55 +01:00
Hauke Petersen
6cc4a7a6eb
Merge pull request #1956 from haukepetersen/fix_stm32f0_timer
...
cpu/stm32f0: fixed low-level timer driver
2014-11-10 13:58:41 +01:00
Martine Lenders
bbeb4941fa
nativenet: add missing include
2014-11-10 05:19:28 +01:00
Hauke Petersen
65520865b1
cpu/stm32f1: adjusted to RTT interface changes
2014-11-07 12:29:31 +01:00
Hauke Petersen
636287a1aa
cpu/nrf51822: adjusted to RTT interface changes
2014-11-07 12:29:31 +01:00
Hauke Petersen
19a95bbfbe
cpu/stm32f0: fixed low-level timer driver
2014-11-06 17:23:26 +01:00
Hauke Petersen
72b68bc9f0
cpu: adjusted IRQ stack sizes for Cortex CPUs
2014-11-06 15:16:33 +01:00
Thomas Eichinger
d43367e0a2
cpu/stm32f1: fix wrong bit operation in SPI init
2014-11-06 15:09:35 +01:00
benpicco
cedc588d77
Merge pull request #1782 from benpicco/fix_malloc
...
check if the requested memory is really available in _sbrk_r
2014-11-05 13:21:40 +01:00
Benjamin Valentin
879768397e
malloc: check if the requested memory is really available
2014-11-05 12:11:24 +01:00
Hauke Petersen
ac2ff23020
cpu/stm32f1: fixes to i2c driver
...
- fixes BUSY on initialization
2014-11-04 21:09:40 +01:00
Hauke Petersen
1b1f44c899
cpu/nrf51822: fixed timers
...
- changed TIMER_0 to be a 24-bit timer -> see Nordic PAN #32
- cleaned up timer initialization code
- added check if an interrupt channel was active
2014-11-04 18:18:23 +01:00
Hauke Petersen
505e184ee5
cpu/nrf51822: changed ISR stack size to 512 byte
2014-11-04 14:50:44 +01:00
Thomas Eichinger
76d0d6c4a2
cpu/stm32f1: fixes for the cpuid driver
2014-11-04 13:11:30 +01:00
Ian Martin
b37698a064
cpu/cc2538: Enable the CC2538's more compact alternate interrupt mapping.
2014-11-03 14:17:00 -05:00
Benjamin Valentin
73f6ac6bce
Revert "cpu/cc2538: sbrk() checks if the requested memory is really available."
...
This reverts commit 81dea364a5
.
2014-11-03 18:46:49 +01:00
Christian Mehlis
f3b1753ac7
added spark core board
2014-11-02 14:36:42 +01:00
Hauke Petersen
13a417d02a
cpu/stm32f0: optimized GPIO driver implementation
2014-10-31 14:00:46 +01:00
Hinnerk van Bruinehsen
0e065cff2c
lint: fix va_end_missing in cpu/native/syscalls.c
2014-10-31 01:24:32 +01:00
Hinnerk van Bruinehsen
9ba980dfd9
cpu: stm32f1 spi: fix typos
2014-10-31 01:24:32 +01:00
Hinnerk van Bruinehsen
145d345edf
lint: fix syntaxError warning
2014-10-31 01:24:32 +01:00
Hinnerk van Bruinehsen
e3aa222d6c
lint: fix nullPointer errors
2014-10-31 01:24:30 +01:00
Hinnerk van Bruinehsen
aca4724447
lint: fix warnings of possible nullPointer dereferences
2014-10-31 01:24:30 +01:00
Hinnerk van Bruinehsen
a5aeaab87b
lint: fix unreadVariable warnings
2014-10-31 01:24:30 +01:00
Hinnerk van Bruinehsen
4b68b9e547
lint: fix redundantAssignment warnings
...
SQUASH ME: redundantAssignment (remove FAT stuff)
SQUASH ME: into redundantAssignment unnecessary supp
2014-10-31 01:24:29 +01:00
Hinnerk van Bruinehsen
ec98c85a05
lint: fix unusedVariable warnings
...
SQUASH ME: into unusedVariable (annotated)
SQUASH ME: into unusedVariable (II)
SQUASH ME: into unreadVariable (II)
2014-10-31 01:24:29 +01:00
Hinnerk van Bruinehsen
2103249815
lint: fix unassignedVariable warnings in stm32f1
2014-10-31 01:24:28 +01:00
Hauke Petersen
56062b0f23
Merge pull request #1872 from thomaseichinger/stm32f1-i2c-multibyte-fix
...
cpu/stm32f1: fix i2c master read for N=2 and N>2 bytes
2014-10-30 23:24:00 +01:00
Hauke Petersen
64c5ee3322
cpu/nrf51822: made syscalls aware of uart0
2014-10-30 21:51:31 +01:00
Hauke Petersen
2bab8aed2e
cpu/nrf51822: added interrupt mode to UART driver
2014-10-30 21:51:31 +01:00
Hauke Petersen
e7fbaf3815
cpu: removed NAKED attribute from ISRs
...
- removed the __attribute__((naked)) from ISRs
- removed ISR_ENTER() and ISR_EXIT() macros
Rationale: Cortex-Mx MCUs save registers R0-R4 automatically
on calling ISRs. The naked attribute tells the compiler not
to save any other registers. This is fine, as long as the
code in the ISR is not nested. If nested, it will use also
R4 and R5, which will then lead to currupted registers on
exit of the ISR. Removing the naked will fix this.
2014-10-30 19:33:32 +01:00
Thomas Eichinger
a11e4fe534
Merge pull request #1712 from haukepetersen/fix_stm32f0_hardfault
...
cpu/stm32f0: fixed hardfault indication
2014-10-30 19:05:04 +01:00
Oleg Hahm
eb40993d8b
native: remove obsolete line
2014-10-30 16:37:10 +01:00
Oleg Hahm
9a61d8cf1c
core: move optional tcb members to DEVELHELP
2014-10-30 16:37:10 +01:00
Hauke Petersen
a51bfeb5d7
SQUASH: cpu/f4: changed order of irq enabling seq
2014-10-30 13:59:19 +01:00
Hauke Petersen
a057f3aa74
SQUASH: cpu: fixed some typos
2014-10-30 13:59:19 +01:00
Hauke Petersen
4546a87ded
cpu/stm32f4: optimized GPIO driver implementation
2014-10-30 13:59:19 +01:00
Hauke Petersen
4d97f1752b
cpu/sam3x8e: fixed style in startup.c
2014-10-30 13:53:44 +01:00
Hauke Petersen
e71d37ba05
cpu/sam3x8e: added output to isr_hard_fault
2014-10-30 13:52:56 +01:00
Hauke Petersen
8b992d03c2
cpu/sam3x8e: put PendSV IRQ to lowest prio
2014-10-30 13:50:12 +01:00
Hauke Petersen
a4d7ee8d4d
cpu/sam3x8e: fixes to timer driver
...
- renamed config variable
- placed thread_yield() correctly
2014-10-30 13:50:12 +01:00
Ludwig Ortmann
4545c15f70
native: inrease default transceiver buffer
2014-10-30 13:20:51 +01:00
Ludwig Ortmann
5d606b676d
native: set net buffer defaults conditionally
2014-10-30 13:20:45 +01:00
Ludwig Ortmann
7bcf896ec6
native: add and use callback type
2014-10-30 12:11:22 +01:00
Ludwig Ortmann
245df3f028
cpu/lpc2387, drivers/cc110x: purge FEUERWARE_CPU_LPC2387
...
* includes were superfluous
* unused otherwise
2014-10-28 18:04:26 +01:00
Ludwig Ortmann
ebc122bff1
cpu/arm_common: purge FEUERWARE_CONF_ENABLE_HAL
2014-10-28 18:04:26 +01:00
Ludwig Ortmann
f30ce433fc
board/avsextrem, cpu/lpc2387: purge FEUERWARE_CONF_CPU_NAME
2014-10-28 18:04:26 +01:00
Ludwig Ortmann
c006c69218
cpu/lpc2387: purge FEUERWARE_CONF_CORE_SUPPORTS_TIME
2014-10-28 18:04:26 +01:00
Thomas Eichinger
b756534a58
Merge pull request #1874 from locicontrols/cc2538-oe
...
cpu/cc2538 bug fix: OE (output enable) bit was set by gpio_init_in().
2014-10-28 16:43:50 +01:00
Ian Martin
81dea364a5
cpu/cc2538: sbrk() checks if the requested memory is really available.
2014-10-27 20:00:52 -04:00
Ludwig Ortmann
c540c8a3a9
cpu/mc1322x: fix mc1322x-adc.h cpp compatability
2014-10-27 16:36:43 +01:00
Ludwig Ortmann
5dbab29df0
cpu/mc1322x: fix mc1322x-adc.h license
2014-10-27 16:34:24 +01:00
Ludwig Ortmann
324a57a914
cpu/mc1322x: rename adc header to mc1322x-adc
2014-10-25 17:11:18 +02:00
Ludwig Ortmann
d42d226d66
cpu: use adc_legacy.h where appropriate
2014-10-25 17:09:22 +02:00
Ian Martin
34086fc6c6
cpu/cc2538 bug fix: OE (output enable) bit was set by gpio_init_in().
2014-10-24 14:36:06 -04:00
Hauke Petersen
e6e37e0371
Merge pull request #1864 from haukepetersen/add_board_openmote
...
boards: added support for OpenMote
2014-10-24 16:50:29 +02:00
Oleg Hahm
c33e1b5dad
Merge pull request #1844 from OlegHahm/doxygen_cleanup
...
Doxygen cleanup
2014-10-24 16:04:01 +02:00
Hauke Petersen
616ff64929
Merge pull request #1771 from PeterKietzmann/correct_stm32f4_spi_return_values
...
cpu/stm32f4: Changed SPI return values to API definitions
2014-10-24 15:37:22 +02:00
Hauke Petersen
ffea9fc4e8
cpu/cc2538: added linkerscript for cc2538sf53
2014-10-24 15:25:44 +02:00
Thomas Eichinger
ede33a6364
cpu/stm32f1: fix i2c read for N=2 bytes
2014-10-24 14:48:31 +02:00
Hauke Petersen
6889fd1f89
cpu/cc2538: adjusted GPIO register definitions
2014-10-24 14:43:52 +02:00
Hauke Petersen
9051c7be4b
Merge pull request #1861 from haukepetersen/fix_cc2538_irqvector
...
cpu/cc2538: cleaned up IRQ vector definition
2014-10-24 14:40:10 +02:00
Thomas Eichinger
2e9d4cbba4
Merge pull request #1862 from haukepetersen/fix_cc2538_includecleanup
...
cpu/cc2538: centralized all cpu specific includes
2014-10-24 14:23:43 +02:00
Thomas Eichinger
414be5257d
cpu/stm32f1: fix i2c master read for N>2 bytes
...
This fixes reading more than 2 bytes from the slave device.
In the current implementation the last byte was not read from
data register and the termination sequence buggy.
2014-10-24 14:08:27 +02:00
Hauke Petersen
ca20603d54
cpu/cc2538: made ISR names configurable by a board
2014-10-24 14:00:53 +02:00
Hauke Petersen
24ac5a7e94
cpu/cc2538: cleaned up IRQ vector definition
2014-10-24 14:00:47 +02:00
Ludwig Ortmann
6a5026803c
Merge pull request #1842 from fnack/cc110x_ng_rename
...
drivers/cc110x_ng: rename driver to cc110x_legacy
2014-10-24 03:07:37 -07:00
Oleg Hahm
9b819c4dd6
Merge pull request #1836 from Kijewski/yield-less
...
core: introduce sched_yield(), yield less
2014-10-24 10:05:37 +02:00
Fabian Nack
07fff37efe
drivers - cc110x_ng: rename ng driver to legacy
2014-10-24 09:55:31 +02:00
René Kijewski
677d690e2b
core: introduce thread_yield_higher(), yield less
...
Fixes #1708 .
Currently involuntary preemption causes the current thread not only to
yield for a higher prioritized thread, but all other threads of its own
priority class, too.
This PR adds the function `thread_yield_higher()`, which will yield the
current thread in favor of higher prioritized functions, but not for
threads of its own priority class.
Boards now need to implement `thread_yield_higher()` instead of
`thread_yield()`, but `COREIF_NG` boards are not affected in any way.
`thread_yield()` retains its old meaning: yield for every thread that
has the same or a higher priority.
This PR does not touch the occurrences of `thread_yield()` in the periph
drivers, because the author of this PR did not look into the logic of
the various driver implementations.
2014-10-24 00:09:56 +02:00
Oleg Hahm
cb48f7cd47
doc: fix warning from avr libc
2014-10-23 20:53:01 +02:00
Oleg Hahm
c53bd9ca5d
doc: remove more CPU specific documentation
2014-10-23 20:53:01 +02:00
Oleg Hahm
bbf82ab254
doc: put atmega cpu file into the right group
2014-10-23 20:53:00 +02:00
Oleg Hahm
ca866b248e
doc: fix naming for Cortex M3 common group
2014-10-23 20:53:00 +02:00
Oleg Hahm
481d4f2ee3
doc: fix ambiguous file name warnings
...
doxygen does a good job itself, identifying the unique part of the path
to identify a file.
2014-10-23 20:53:00 +02:00
Oleg Hahm
49208ffb59
doc: exclude more CPU specific stuff from doxygen
2014-10-23 20:53:00 +02:00
René Kijewski
aa086158ee
Add copyright information to lpc1768/include/cpu.h
2014-10-23 20:50:31 +02:00
Oleg Hahm
db8f3d2650
cpu: use typed function pointer for thread_arch_init
2014-10-23 18:26:21 +02:00
Oleg Hahm
6d8c0d74c3
doc: some doxygen cleanups
...
* removed RIOT unrelated cpu documentation
* introduced cpu_specific prefix to mark such documentation
* put oneway_malloc and crypto into sys group
2014-10-23 17:29:25 +02:00
Hauke Petersen
ccd601b429
cpu/cc2538: centralized all cpu specific includes
...
- added all CPU specific includes to cpu-conf.h
- removed now not needed includes from cpu .c files
2014-10-23 14:04:57 +02:00
Oleg Hahm
fd2ec50035
Merge pull request #1848 from locicontrols/cc2538-nvic-prio-bits
...
cc2538: Set __NVIC_PRIO_BITS to the correct value of 3.
2014-10-21 16:10:16 +02:00
Ludwig Ortmann
a2bb383a86
Merge pull request #1838 from LudwigOrtmann/native_subsstructure
...
native: add substructure
2014-10-21 00:56:24 -07:00
Ian Martin
647391f71c
cc2538: Set __NVIC_PRIO_BITS to the correct value of 3.
2014-10-20 14:21:17 -04:00
Ludwig Ortmann
45cf2e4967
native: relocate drivers/rtc implementation
2014-10-18 11:00:09 +02:00
Ludwig Ortmann
0136f208c6
native: add drivers substructure
2014-10-18 10:58:51 +02:00
Ludwig Ortmann
833c36f09d
native: relocate periph/cpuid implementation
2014-10-18 10:48:03 +02:00
Ludwig Ortmann
96d2907666
native: add periph substructure
2014-10-18 10:47:26 +02:00
Ludwig Ortmann
a29a9ced27
boards + cpu: atmega2560: fix non-existent GPIO
2014-10-18 07:40:27 +02:00
Hauke Petersen
8c3a207a3f
Merge pull request #1770 from fnack/spi_extension
...
driver - periph: Extend SPI low-level driver interface
2014-10-17 13:54:38 +02:00
Hauke Petersen
010091f265
cpu/stm32f0: fixed typo uart driver defines
2014-10-16 22:17:30 +02:00
Fabian Nack
45b3da9be7
cpu - multiple: adapt spi drivers to interface extension
2014-10-16 17:47:10 +02:00
Martine Lenders
a569f2b92c
net: Initial import of a global packet buffer
2014-10-16 11:52:30 +02:00
Hauke Petersen
0fed9a438c
cpu/stm32f1: added low-level I2C driver
2014-10-15 14:50:14 +02:00
Thomas Eichinger
ecae75a1ab
Merge pull request #1697 from locicontrols/cc2538
...
Add support for the Texas Instruments CC2538 ARM Cortex-M3 MCU and developer kit.
2014-10-13 16:58:41 +02:00
Ian Martin
0605a7eb95
Add support for the Texas Instruments CC2538 ARM Cortex-M3 MCU and developer kit.
2014-10-13 09:29:49 -04:00
Hauke Petersen
d75a85a2aa
cpu/nrf51822: fixed issue with disabled RAM
...
- on certain devices the second RAM bank might be disabled after
reset, this fix makes sure its enabled
2014-10-13 13:04:39 +02:00
Thomas Eichinger
86c85d86e8
Merge pull request #1756 from thomaseichinger/welq-fix
...
cpu/stm32f: boards/iot-lab_M3: cleanup and fixes
2014-10-13 11:58:46 +02:00
Christian Mehlis
fff0a2f846
Merge pull request #1720 from haukepetersen/fix_nrf_gpio
...
cpu/nrf51822: fixed gpio driver
2014-10-11 16:12:22 +02:00
Thomas Eichinger
420f20f4bc
cpu/stm32f1: overwrite HWTIMER_WAIT_OVERHEAD
2014-10-10 11:43:02 +02:00
Thomas Eichinger
19db6ded85
cpu/stm32f1:board/iot-lab_M3: fix and cleanup for GPIO low level driver
2014-10-10 11:42:08 +02:00
Thomas Eichinger
a16d326bf0
stm32f1: implement RTT driver
2014-10-09 11:13:06 +02:00
Thomas Eichinger
3b56b6bf07
Merge pull request #1780 from LudwigOrtmann/native-freebsd-fixup
...
sys/posix: FreeBSD fixup
2014-10-09 10:48:59 +02:00
Martine Lenders
264785852e
nativenet: Supply net_dev_t support for nativenet
2014-10-09 09:40:58 +02:00
Martine Lenders
333c49a344
nativenet: Apply coding conventions
2014-10-09 09:40:57 +02:00
Ludwig Ortmann
6fba6a7f5a
native/freebsd: fix tapsetup permission
2014-10-08 16:11:04 +02:00
PeterKietzmann
502ceaf508
cpu: Implement SPI driver for sam3x8e
2014-10-08 12:20:23 +02:00
PeterKietzmann
4da6329684
cpu/stm32f4 changed SPI-return values to API defs
2014-10-07 12:16:37 +02:00
Hauke Petersen
ae48fccdf7
Copy some files from cpu/sam3x8e to cpu/cc2538.
2014-10-06 15:30:24 -04:00
Hauke Petersen
15b9df8975
cpu/stm32f0: fixed hardfault indication
2014-10-06 15:45:14 +02:00
Hauke Petersen
a29b9a08e4
cpu/stm32f0: removed leftovers from slave mode
2014-10-02 17:44:26 +02:00
Martine Lenders
0d33a00d36
Merge pull request #1492 from authmillenon/net-dev-base
...
drivers: Introduce a general interface for network device drivers
2014-10-02 12:29:59 +02:00
Thomas Eichinger
464ed0ee24
Merge pull request #1752 from haukepetersen/fix_stm32f1_gpio
...
cpu/stm32f1: fixed gpio driver
2014-10-02 00:49:06 +02:00
Martine Lenders
ec24fbd6dc
Merge pull request #1751 from LudwigOrtmann/native_syscalls_p2
...
native: add two more syscall declarations
2014-10-01 22:14:15 +02:00
Hauke Petersen
f3d8f05d6e
cpu/stm32f1: fixed gpio driver
...
- changed #ifdef to #if for device filter
- guarded file in case no GPIO device is defined
- added guards around interrupts
2014-10-01 22:01:46 +02:00
Ludwig Ortmann
b849b848a0
native: add two more syscall declarations
2014-10-01 21:56:43 +02:00
Thomas Eichinger
fccfce2d59
stm32f1: implement 32bit hwtimer by cascading two timers
2014-10-01 20:54:14 +02:00
Martine Lenders
97bf8b09ad
atmega_common: add ENOTSUP and ECANCELED to errno.h
2014-10-01 19:24:12 +02:00
Hauke Petersen
26dfa7c89c
Merge pull request #1464 from PeterKietzmann/stm32f4_spi_driver
...
Initial Stm32f4 spi driver
2014-09-30 13:40:01 +02:00
PeterKietzmann
d481af752f
initial import of stm32f4discovery spi low-level driver
2014-09-30 13:18:27 +02:00
Hauke Petersen
25c891ecdd
Merge pull request #1736 from haukepetersen/fix_stm32f1_somecleanup
...
board/iot-lab_M3: cleanup of SPI and radio driver
2014-09-30 12:02:42 +02:00
Hauke Petersen
c7807517da
cpu/stm32f1: added clock config to cpu.c
2014-09-30 11:25:56 +02:00
Hauke Petersen
6ee15ea6df
cpu/stm32f1: cleanup in SPI driver
...
- made config more versatile
- added pin configuration to spi_init()
2014-09-30 11:19:16 +02:00
Ludwig Ortmann
f539f30691
Merge pull request #1698 from Kijewski/ssize_t-for-all
...
core: Provide ssize_t in a common place
2014-09-27 00:26:34 -07:00
Hauke Petersen
964c145eef
cpu/nrf51822: fixed gpio driver
2014-09-26 17:25:21 +02:00
Thomas Eichinger
d0b0af6d81
stm32f*: rename STDIO buffer and enable getchar with UART0
2014-09-26 14:16:59 +02:00
Thomas Eichinger
c83e4cb361
stm32f1: unify UART0 use
2014-09-26 14:16:59 +02:00
Thomas Eichinger
fc3864756f
stm32f3: be UART0 aware
2014-09-26 14:16:31 +02:00
Thomas Eichinger
aefa818338
stm32f4: be UART0 aware
2014-09-26 14:16:31 +02:00
Thomas Eichinger
8fc2e61e20
stm32f0: be UART0 aware
2014-09-26 14:16:31 +02:00
René Kijewski
4e50d74272
core: Provide ssize_t in a common place
...
Now you can include `kernel_types.h` if you need the `ssize_t`, without
facing problems due to the terrible MSP toolchain.
2014-09-26 14:04:30 +02:00
Thomas Eichinger
bf256f63a3
samr21-xpro: initial import for the samr21-xpro board
2014-09-25 14:37:47 +02:00
Hauke Petersen
d7741efa03
cpu/stm32f1: added missing spi function
2014-09-25 14:25:04 +02:00
Hauke Petersen
934eb44c13
Merge pull request #1488 from haukepetersen/add_stm32f0_spi
...
board/cpu: added SPI driver for the stm32f0discovery
2014-09-25 11:59:11 +02:00
Ludwig Ortmann
bd0ff3712e
Merge pull request #1706 from locicontrols/sam3x8e-break
...
cpu/sam3x8e bug: missing break statements in gpio_set() and gpio_clear()
2014-09-25 01:42:46 -07:00
René Kijewski
d4f144eb47
Add license statement to {msp430_types,net_help}.h
2014-09-25 10:14:58 +02:00
Ian Martin
ab3b731ca8
cpu/sam3x8e bug: missing break statements in gpio_set() and gpio_clear()
2014-09-24 14:26:36 -04:00
Hauke Petersen
3d797d8f4b
cpu/stm32f4: fixed doxygen
2014-09-24 17:51:37 +02:00
Hauke Petersen
127095ada0
[SQUASH ME] cpu: removed slave mode
2014-09-24 15:41:48 +02:00
Hauke Petersen
cdb335e21d
[SQUASH ME] stm32f0: substantial fixes to SPI driver
2014-09-24 15:41:48 +02:00
Hauke Petersen
7904076668
cpu: mini cleanup to spi driver
2014-09-24 15:41:48 +02:00
Hauke Petersen
7d5b3263d5
SPI: more fixes including DEBUG info
2014-09-24 15:41:48 +02:00
Hauke Petersen
ff4854341a
[SQUASH ME] finished 0.1 of spi driver
2014-09-24 15:41:47 +02:00
Hauke Petersen
c494e3ab09
board/cpu: added SPI driver for stm32f0discovery
2014-09-24 15:41:47 +02:00
Hauke Petersen
34aaa61eb0
Merge pull request #1486 from haukepetersen/fix_sam3x_finish_gpio
...
cpu/boards: completed GPIO driver for sam3x8e
2014-09-19 13:21:09 +02:00
Hauke Petersen
4411b6b53f
cpu/nrf51822: adjusted default stack sizes
2014-09-19 13:02:23 +02:00
Ludwig Ortmann
d7cdc85758
Merge pull request #1677 from LudwigOrtmann/headers
...
doc: add license headers to some .h files
2014-09-18 10:47:30 -07:00
Hauke Petersen
50ba74b7dc
cpu/boards: completed GPIO driver for sam3x8e
...
- adjusted peripheral conf for udoo and arduino-due
- added gpio_init_int()
- added interrupt service routines
- fixed gpio_read()
- added clock enable for gpio_init_in()
2014-09-18 18:29:02 +02:00
Ludwig Ortmann
289c4c0ee4
doc: add license headers to some .h files
2014-09-18 17:45:11 +02:00
Hauke Petersen
c9c7bfad38
cpu/nrf51822: some fixes and clean up
...
- enabled power for uart and timer
- outsourced timer config values to periph_conf.h
- made linkerscript better readable
- adjusted default stack-sizes
- let RED_LED blink on hard_fault
2014-09-17 14:44:13 +02:00
Hinnerk van Bruinehsen
d5fe9de5e5
cpu: change __ASM to asm (cppcheck uninitvar error)
2014-09-17 00:20:20 +02:00
Ludwig Ortmann
651cb6ca9f
doc: tailor CMSIS doxygen for license checker
...
Remove '@par' within the license header to allow the existing regular
expression to match it.
2014-09-15 08:27:59 +02:00
René Kijewski
ba07d6a5a2
Merge pull request #1664 from N8Fear/unsignedLessThanZero
...
lint: _sbrk_r: change parameter type from size_t to ptrdiff_t
2014-09-14 23:33:17 +02:00
Hinnerk van Bruinehsen
129e9b0bfa
cpu: multiple: change size_t to ptrdiff_t for_sbrk_r
2014-09-14 22:07:05 +02:00
Hinnerk van Bruinehsen
9933dd0b78
cpu: arm/cortex-mX/atmega: use uintptr_t for sp cast
2014-09-14 02:34:04 +02:00
Hinnerk van Bruinehsen
4d2ca13fcf
lint: lpc1768/msp430: remove arith ops on void ptrs
2014-09-14 02:33:44 +02:00
Hinnerk van Bruinehsen
68e3e68ce1
Merge pull request #1657 from N8Fear/scope
...
lint: reduce scope (2)
2014-09-13 20:06:45 +02:00
Hinnerk van Bruinehsen
57b998e4a1
cpu/examples/sys/drivers: reduce scope of variables
2014-09-13 19:03:40 +02:00
Oleg Hahm
fa8c70bbb8
Merge pull request #1618 from rousselk/msp430-fix-thread-yield
...
Fix thread_yield() on MSP430 platforms
2014-09-12 20:14:18 +02:00
Hinnerk van Bruinehsen
5aa9b8449b
cpu: lpc_common: reduce indentation level in iap.c
2014-09-12 11:50:12 +02:00
René Kijewski
0cc699c0ce
lint: reduce scope
...
Fix some lint warnings of kind
```
style (variableScope): The scope of the variable '…' can be reduced
```
2014-09-12 11:50:12 +02:00
Kévin Roussel
a691d0798a
Fixed comments
2014-09-09 13:18:39 +02:00
Hinnerk van Bruinehsen
3d686c7cf1
cpu: atmega: doxygen: blacklist upstream headers
2014-09-06 12:38:04 +02:00
Ludwig Ortmann
3d29a9e3d3
native: add support for Linux on ARM
2014-09-04 16:39:33 +02:00
Joakim Gebart
21fc1bd7a6
cpu/stm32f1: Reduce scope of ret variable in spi_transfer_bytes.
...
Reduced scope to inside the while loop as per comments in RIOT-OS/RIOT#1630
Signed-off-by: Joakim Gebart <joakim@gebart.se>
2014-09-03 10:28:33 +02:00
Joakim Gebart
a12b879027
cpu/stm32f1: spi_transfer_bytes proper counting.
...
The transferred bytes were being counted more than once because of a +=
when calling spi_transfer_byte().
This patch should also handle errors from spi_transfer_byte() better
since it is now possible to detect errors _after_ the first byte has
been successfully sent.
Signed-off-by: Joakim Gebart <joakim@gebart.se>
2014-09-02 17:17:21 +02:00
Fabian Nack
edb6a4ddf4
cpu - stm32f4: added support for more channels/devices in periph impls
2014-09-01 21:29:56 +02:00
Fabian Nack
47657ac7d9
cpu - stm32f4: add support for stm32f415rg
2014-09-01 21:29:56 +02:00
Kévin Roussel
4421de003b
Fix the race condition when an interruption occured at the beginning
...
of thread_yield(), i.e.: just after SR(R2) was pushed but before
the rest of the suspended thread's context was pushed!
2014-08-29 15:09:23 +02:00
Kévin Roussel
3df5a2745f
Prevent the compiler to add an unwanted prologue in thread_yield()
2014-08-29 15:09:22 +02:00
Kévin Roussel
cf683d9866
Fix thread_yield by avoiding the (too) early re-enablement of IRQ,
...
that is: before the newly selected thread's context is totally restored
2014-08-29 15:09:22 +02:00
Martine Lenders
752fe547ca
Merge pull request #1624 from LudwigOrtmann/headacheheaders
...
doc: fix more license headers
2014-08-28 12:34:55 +02:00
Ludwig Ortmann
2439bd839c
doc: fix more license headers
...
Remove some cruft, set correct lgpl versions, update to lgpl where
this had been overlooked in the past, fix odd comment style...
2014-08-27 19:20:49 +02:00
Hauke Petersen
ae23d813b1
Merge pull request #1621 from haukepetersen/add_nrf_cpuid
...
cpu/nrf51822: added cpuid driver
2014-08-27 19:11:04 +02:00
Hinnerk van Bruinehsen
223e22ac1e
board: arduino-mega2560: Initial import
2014-08-27 16:39:40 +02:00
Hinnerk van Bruinehsen
7b70f64d84
cpu: atmega2560: Initial import
2014-08-27 16:39:23 +02:00
Hinnerk van Bruinehsen
a6b77b4745
cpu: atmega_common: Initial import
2014-08-27 16:22:48 +02:00
Hauke Petersen
1de3deff81
cpu/nrf51822: added driver to get CPUID
2014-08-27 15:12:59 +02:00
Ludwig Ortmann
fc0b0bcc29
Merge pull request #1608 from LudwigOrtmann/fixmorelicenseheaders
...
Fix more license headers
2014-08-26 13:48:59 +02:00
Thomas Eichinger
6f83609107
Merge pull request #1607 from haukepetersen/add_nrf_random
...
cpu/nrf51822: added random number generator driver
2014-08-25 14:51:18 +02:00
Hauke Petersen
373e69e5c9
cpu/stm32f4: added random number generator driver
2014-08-25 13:54:15 +02:00
Ludwig Ortmann
b7992922ce
fix license headers in non-.c files
2014-08-23 16:16:26 +02:00
Hauke Petersen
82eebeb2cc
cpu/nrf51822: added RNG driver
2014-08-23 13:29:14 +02:00
Hauke Petersen
addfaefe8a
Merge pull request #1598 from haukepetersen/add_nrf_rtt
...
cpu/board: added RTT driver for NRF51822
2014-08-22 02:13:43 +02:00
003dd1969c
Merge pull request #1566 from Kijewski/undef_is_null
...
core: let PIDs begin with 1
2014-08-22 00:43:04 +02:00
Hauke Petersen
744ce78e12
cpu/nrf51822: added RTT driver implementation
2014-08-22 00:40:50 +02:00
Hauke Petersen
bd86eb28c9
cpu/sam3x8e: added random number generator driver
2014-08-21 20:18:02 +02:00
René Kijewski
639dae4a1d
Merge pull request #1575 from Kijewski/use-sched_active_pid
...
all over the place: use sched_active_pid
2014-08-21 19:09:40 +02:00
Thomas Eichinger
0e79a01cd2
stm32f1: SPI: implement speed setting properly
2014-08-21 17:53:38 +02:00
Thomas Eichinger
6b43b3f587
stm32f1: implement new cpuid_get
2014-08-21 17:53:38 +02:00
Thomas Eichinger
c28aebf105
at86rf231: handle rx tx state changes correctly
2014-08-21 17:53:38 +02:00
Thomas Eichinger
b6abdc9519
stm32f1: implement SPI register access functions
2014-08-21 17:53:38 +02:00
Thomas Eichinger
e59bc2eb9d
iot-lab_M3: refactor at86rf231 driver
2014-08-21 17:53:37 +02:00
Thomas Eichinger
b86b78bcb2
stm32f1: implement missing UART0 parts
2014-08-21 17:53:37 +02:00
Thomas Eichinger
aaa2c2e8ba
boards: initial import of iot-lab_M3
2014-08-21 17:53:37 +02:00
Thomas Eichinger
37611db41c
cpu: initial import of stm32f1
2014-08-21 17:53:37 +02:00
René Kijewski
2cb4166c3e
all over the place: use sched_active_pid
...
In many places we needlessly use `sched_active_thread->pid` whilst we
already have `sched_active_pid` with the same value, and one less
indirection.
`thread_getpid()` is made `static inline` so that there is no penalty in
using this function over accessing `sched_active_pid` directly.
2014-08-17 21:04:25 +02:00
René Kijewski
427a5fbaef
core: let valid PIDs start with 1
2014-08-17 19:51:03 +02:00
Hauke Petersen
13894fa70c
cpus: adjusted uart implementations for changed IF
...
- adjusted stm32f0
- adjusted stm32f3
- adjusted stm32f4
- adjusted sam3x8e
- adjusted nrf51822
2014-08-15 12:23:39 +02:00
Hauke Petersen
ea96af4d53
cpu/stm32f3: let LD3 blink on hardFault
2014-08-15 10:38:34 +02:00
René Kijewski
a79d9c8562
native: remove redeclarations of sched_active_thread
2014-08-14 13:21:17 +02:00
Hauke Petersen
037820d6a6
board/cpu: adjusted uart driver implementations
...
for
- sam3x8e
- stm32f0
- stm32f4
- sam3x8e
- nrf51822
2014-08-11 15:08:20 +02:00
Oleg Hahm
1de5c2b4a0
fixed remaining variables to kernel_pid_t
2014-08-07 17:29:53 +02:00
Oleg Hahm
aa2ecf6216
initialize kernel_pid_t correctly
2014-08-07 16:31:27 +02:00
Oleg Hahm
c2b0423918
core: renamed KERNEL_PID_NULL to KERNEL_PID_UNDEF
...
As @authmillenon pointed out the "null" in the old name is somewhat
misleading, since the actual value is -1.
2014-08-07 16:31:27 +02:00
Hauke Petersen
cc6ee1dc05
board/cpu: added pwm driver for stm32f4discovery
2014-08-07 16:15:39 +02:00
Hauke Petersen
9a90eae1ba
cpu: adjusted pwm driver impl for lpc2387
2014-08-07 16:14:09 +02:00
Ludwig Ortmann
14e8abed05
Merge pull request #1525 from LudwigOrtmann/morning-cleanup
...
doc, boards/cpu: cleanup
2014-08-05 19:28:24 +02:00
Hauke Petersen
d9b0927b57
Merge pull request #1547 from haukepetersen/fix_cortex_threadarch
...
cpu/cortex-mX_common: bugfix to arch_stack_init
2014-08-05 18:59:17 +02:00
Ludwig Ortmann
1df6505db9
boards/cpu: fix some warnings
2014-08-05 18:52:26 +02:00
Ludwig Ortmann
c883c33d83
doc: fix flashrom doxygen
2014-08-05 18:52:26 +02:00
Hauke Petersen
be46f2047a
cpu/cortex-mX_common: bugfix to arch_stack_init
...
- fixed cortex-[m0|m3|m4]
2014-08-05 18:38:06 +02:00
Ludwig Ortmann
1c3f481702
tests, native: fixup for cpuid
...
- adopt test name to new scheme
- make cppcheck happy / dont overwrite the target memory location twice
- fix license header
- don't redefine define if it already exists
- don't write more cpuid than is defined as size
2014-08-05 16:55:42 +02:00
epiktet
1154bd5a50
cpu/nrf51822: squash added support for nrf51822 cpu
2014-08-04 13:42:06 +02:00
Cenk Gündoğan
5429035b1c
cpu: removing tabs from asm files ( #1439 )
...
```find . -name "*.[sS]" -exec grep -l $'\t' {} \;``` and ```ack --asm -l "\t"```
revealed three more files with tabs.
2014-08-02 12:47:02 +02:00
Oleg Hahm
983d056c75
core: harmonizes the data type for the process ID
...
Instead of using differing integer types use kernel_pid_t for process
identifier. This type is introduced in a new header file to avoid
circular dependencies.
2014-08-01 12:02:54 +02:00
Hauke Petersen
938c61a5a2
Merge pull request #1456 from haukepetersen/board_stm32f3discovery
...
board/cpu: Added support for the stm32f3discovery board and stm32f3 cpu
2014-07-31 23:55:05 +02:00
Martine Lenders
b1bc11c7fc
native: cpu: Add documentatiton for CPUID_ID_LEN
2014-07-31 23:27:38 +02:00
Martine Lenders
7516c94dd8
Merge pull request #854 from authmillenon/cpu-id
...
drivers/cpu: add function to get CPU id/serial number
2014-07-31 23:23:21 +02:00
Ludwig Ortmann
d55da67fb6
Merge pull request #1329 from LudwigOrtmann/riot_license
...
RIOT default license header change
2014-07-31 23:12:47 +02:00
Martin Lenders
239f2e0f24
Implement CPU id getter for native
2014-07-31 23:05:15 +02:00
Hauke Petersen
19ab93cadc
Merge pull request #1509 from haukepetersen/fix_cortexmcommon_cppcheck
...
cpu/cortex-mX_common: fixed type issues in thread_arch
2014-07-31 23:04:42 +02:00
Hauke Petersen
c54594632f
Merge pull request #1505 from haukepetersen/add_stm32f0_adc
...
cpu/board: added ADC driver for stm32f0discovery
2014-07-31 23:01:21 +02:00
Oleg Hahm
8890470783
Merge pull request #1514 from cgundogan/remove_tabs_cpu
...
converting tabs to spaces in cpu (#1439 )
2014-07-31 22:58:17 +02:00
Ludwig Ortmann
5fdce06b3b
doc: use lgplv2.1-short license header instead of lgplv2-short-v1
2014-07-31 22:57:20 +02:00
Ludwig Ortmann
73aa3739d2
doc: use lgplv2.1-short license header instead of lgplv2-short-v2
2014-07-31 22:57:20 +02:00
Ludwig Ortmann
c40b281873
doc: use lgplv2.1-short license header instead of lgplv2-short-v3
2014-07-31 22:57:20 +02:00
Ludwig Ortmann
3ca4f18479
doc: use lgplv2.1-short license header instead of lgpl-short-riot
2014-07-31 22:57:20 +02:00
Ludwig Ortmann
1200c3bc46
doc: fix comment indentation
2014-07-31 22:57:19 +02:00
Martine Lenders
107ef28705
Merge pull request #1470 from haukepetersen/add_stm32f4_adc
...
cpu/board: added ADC driver for stm32f4discovery
2014-07-31 22:56:41 +02:00
Cenk Gündoğan
3989945679
converting tabs to spaces in cpu ( #1439 )
...
This PR converts tabs to white spaces.
The statement I used for the conversion:
```find . -name "*.[ch]" -exec zsh -c 'expand -t 4 "$0" > /tmp/e && mv /tmp/e "$0"' {} \;```
Afterwards, I had a quick overview of the converted files to prevent odd indentation.
2014-07-31 20:46:28 +02:00
Hauke Petersen
275e8f0278
cpu - cortex-m4_common: fixes to thread_arch.c
2014-07-31 19:42:05 +02:00
Hauke Petersen
c5c860f435
cpu: Initial import of stm32f3
2014-07-31 19:38:26 +02:00
Hauke Petersen
14e65fc48d
cpu/cortex-mX_common: fixed type issues
...
- added explicit cast for stack pointer
- fixed printf type inconsistency
2014-07-31 19:17:23 +02:00
Ludwig Ortmann
249b3085cd
lpc2387: change comment style for license checker
2014-07-31 18:58:06 +02:00
Hauke Petersen
b451de05e4
cpu/board: added ADC driver for stm32f4discovery
2014-07-31 17:51:01 +02:00
Hauke Petersen
3a45a062d1
cpu/board: added ADC driver for stm32f0discovery
...
- added ADC implementation for the stm32f0 cpu
- added ADC pin/device configuration for stm32f0discovery board
2014-07-31 17:04:48 +02:00
Ludwig Ortmann
3d6124c905
native: reenable compilation on osx
2014-07-30 10:23:28 +02:00
Ludwig Ortmann
b3b6cff587
doc: some more author fixes
...
fix all occurences of INRIA as an author
correct Oliver Hahms authorship and indentation
2014-07-29 18:17:48 +02:00
Ludwig Ortmann
b6846e31fc
doc: fix most occurences of FU as an author
...
.. but only if there are other authors as well
2014-07-29 17:23:11 +02:00
Ludwig Ortmann
13bd2a2b3b
native: increase rtc realism
...
Prevent rtc enabling when not initialized.
2014-07-28 09:36:53 +02:00
Ludwig Ortmann
3cda0369cb
native: cleanup
...
fix style
fix some syscall declarations
reorder syscall declarations
init syscalls in dedicated function
substitute 1 with EXIT_FAILURE
2014-07-27 15:16:38 +02:00
Ludwig Ortmann
c6bcc344ca
native: uart reconnect buffer replay
...
When using socket stdio, add option to replay what has been written to
stdout while not connected (`-r`).
The implementation is to simply use the existing log file (which is
implicitly created when the option is used), and read from it until
EOF upon reconnect.
closes #476
2014-07-27 15:16:38 +02:00
Ludwig Ortmann
bea563d1da
Fix a few cppcheck findings
2014-07-25 08:17:06 +02:00
Ludwig Ortmann
2aa9f6b045
native: clean up and clarify help
...
- reorder option details to mirror the order given in usage
- list option arguments in option details
- clarify option arguments
2014-07-22 16:25:00 +02:00
Hauke Petersen
29e70c14d6
cpu: Initial import of cortex-m4_common
2014-07-16 17:20:50 +02:00
Hauke Petersen
2fa9b4de82
cpu: Initial import of stm32f4
2014-07-16 17:20:46 +02:00
Hauke Petersen
7904af1ac5
cpu: Initial import of stm32f0
2014-07-16 15:21:28 +02:00
Hauke Petersen
8169e9276b
cpu: Initial import of cortex-m0_common
2014-07-16 15:21:23 +02:00
Simon Gene Gottlieb
519ed7163c
board/flash: changing flashrom_write signature
...
→ changing all flashrom_write() function to the same signature
→ adding const keyword to signature
2014-07-14 02:11:38 +02:00
René Kijewski
a0c435458e
Merge pull request #1410 from LudwigOrtmann/issue-787
...
native: enable reboot with tap
2014-07-14 00:33:03 +02:00
Ludwig Ortmann
aaaccf9d87
native: enable reboot with tap
...
partially fixes #787
2014-07-13 16:40:32 +02:00
Ludwig Ortmann
df36f6304a
native: remove stale TODOs and blank line
...
The values are quite OK.
2014-07-13 07:24:01 +02:00
Ludwig Ortmann
c8612a055e
cpu/lpc2387: fix unused parameter warning
...
mark 'mode' as unused in pwm_init
2014-07-12 07:56:22 +02:00
Hauke Petersen
9001e0c2fb
core: removed duplicated hwtimer_arch.h
2014-07-09 21:08:13 +02:00
René Kijewski
ba1a15535b
core: remove extra thread_create_arg() function
2014-07-09 10:28:23 +02:00
René Kijewski
867246a09f
Add argument to thread_create
2014-07-09 10:07:54 +02:00
René Kijewski
54047c72d3
native: override INCLUDES w/ NATIVEINCLUDES
...
Currrently native overrides the object file targets, because it needs
the different include paths to interact with libc and the OS.
This PR simplifies their makefiles to only override the variable
INCLUDES, instead of overriding the targets.
2014-07-07 23:09:14 +02:00
Ludwig Ortmann
34c2283d5e
Merge pull request #1351 from LudwigOrtmann/native_hwtimer
...
native: implement hwtimer removal
2014-07-07 11:01:48 +02:00
Oleg Hahm
451cc61965
Merge pull request #1187 from Kijewski/mbed_lpc1768-makefile-cleanup
...
lpc1768: cleanup Makefile
2014-07-03 16:27:59 +02:00
Hauke Petersen
10d2879dc5
Merge pull request #1358 from haukepetersen/fix_sam3x_vtimer
...
cpu - sam3x8e: fixed vtimer, added timer_set_absolute
2014-07-03 16:21:36 +02:00
Thomas Eichinger
d56e90a3f0
Merge pull request #1357 from haukepetersen/fix_cortexm3_threading
...
cpu: cortex-m3_common: cleanup thread_arch.c
2014-07-02 16:54:33 +02:00
Hauke Petersen
306d97d488
cpu - sam3x8e: fixed vtimer, added timer_set_absolute
2014-07-02 12:41:54 +02:00
René Kijewski
63dd8546af
Merge pull request #1335 from Kijewski/fix-all-warnings-for-native-and-qemu-i386
...
Fix all warnings for native and qemu-i386
2014-07-02 10:58:48 +02:00
Hauke Petersen
264634e90d
cpu cortex-m3_common: cleanup thread_arch.c
2014-07-01 23:08:30 +02:00
Oleg Hahm
44e5d8cfd0
nativenet: change max packet size to 127
...
Real IEEE 802.15.4 transceivers have a payload of 127. Hence, for
testing - particular 6lowpan - it would make sense to have the same
limitation in nativenet. Especially to test fragmentation this is
helpful.
2014-07-01 18:31:40 +02:00
Ludwig Ortmann
6567de634f
native: implement hwtimer removal
2014-06-30 11:25:05 +02:00
Oleg Hahm
1ab4ab39be
Merge pull request #1348 from SGSSGene/bugfix_writetorom
...
msp430: fix writing more than one byte to flash
2014-06-26 10:39:50 +02:00
Simon Gene Gottlieb
b8ef2b90b6
bugfix: msp430 can write now more then one byte to flash
2014-06-25 20:53:32 +02:00
René Kijewski
3063e3c2b1
Fix all warnings for native and qemu-i386
...
Missing returns, unused variables (only used for debugging), empty
translation units, missing function prototypes, and GNU extensions.
2014-06-24 16:50:32 +02:00
René Kijewski
2ae0c1b149
make: use abspath for better error messages
2014-06-23 15:50:10 +02:00
René Kijewski
a9a76cb2c2
make: create dependencies as side effect
2014-06-23 15:50:10 +02:00
Oleg Hahm
fde1c106ab
Merge pull request #1259 from Kijewski/x86-heap-check
...
x86: add read-before-write check at runtime
2014-06-23 00:12:03 +02:00
Hauke Petersen
749d6a7446
Merge pull request #1318 from haukepetersen/msba2_pwm
...
cpu: added low-level PWM driver for the lpc2387
2014-06-22 13:07:48 +02:00
René Kijewski
17d89cee7e
lpc1768: cleanup Makefile
...
`cpu/lpc1768/Makefile` contains many lines that don't belong into this
file, but the maybe `Makefile.include`. Either way, this Makefile is
never called with these goals.
2014-06-21 01:17:09 +02:00
Ludwig Ortmann
741d9beeb0
Merge pull request #1332 from Kijewski/native-fix-warnings-in-default
...
native: remove some warnings about undef functions
2014-06-19 17:28:16 +02:00
Martine Lenders
6d1365c5d8
Merge pull request #1324 from Kijewski/make-automatic-module-name
...
make: much less clutter for "standard layout" modules
2014-06-18 23:52:49 +02:00
René Kijewski
2f871ca885
native: remove some warnings about undef functions
...
This PR implements `real_X` for `X in (fork, dup2, unlink, execve)`.
These function caused warnings while making the default example.
2014-06-18 20:34:12 +02:00
Hauke Petersen
407e36ec5f
cpu - cortex-m3: moved crash.c to cortex-m3_common
2014-06-18 11:49:45 +02:00
René Kijewski
467b41ad49
make: easifier usage of module subdirectories
...
Many modules have subdirectories. Often these subdirectories should only
be included under certain circumstances. Modules that use submodules
currently need to use this pattern:
```make
DIRS = …
all: $(BINDIR)$(MODULE).a
@for i in $(DIRS) ; do $(MAKE) -C $$i ; done ;
include $(RIOTBASE)/Makefile.base
clean::
@for i in $(DIRS) ; do $(MAKE) -C $$i clean ; done ;
```
This PR moves the `all:` and `clean::` boilerplate into `Makefile.base`.
2014-06-17 15:49:32 +02:00
René Kijewski
840c0f0a57
make: detect their module name automatically
...
For many modules the `Makefile` contains a line like
```
MODULE:=$(shell basename $(CURDIR))
```
This conclusively shows that we do not have to set the module name
manually.
This PR removes the need to set the module name manually, if it is the
same as the basename. E.g. for `…/sys/vtimer/Makefile` the variable
make `MODULE` will still be `vtimer`, because it is the basename of the
Makefile.
2014-06-17 15:49:32 +02:00
René Kijewski
2e9a1773e9
native: use real_pipe()
and read_close()
2014-06-14 00:39:02 +02:00
Hauke Petersen
09e3ac20f1
cpu: added low-level pwm driver impl for lpc2387
2014-06-11 19:54:11 +02:00
Thomas Eichinger
b4fceaca89
Merge pull request #1313 from thomaseichinger/cortexm_crash
...
cpu:cortex_common: add core_panic function
2014-06-11 15:02:46 +02:00
Thomas Eichinger
3639ae9b25
cpu:cortex_common: add core_panic function
2014-06-11 14:43:02 +02:00
Hauke Petersen
ebb496cc26
cpu: renamed cortexm_common->cortex-m3_common and cleanup
2014-06-11 00:24:10 +02:00
René Kijewski
ce428a8937
Merge pull request #1292 from Kijewski/issue-1288
...
core/cortex-m: add missing NORETURNs to thread_arch
2014-06-09 22:11:29 +02:00
Ludwig Ortmann
dbc36fc2c5
native: add id option
2014-06-06 16:30:54 +02:00
René Kijewski
b6dc5c9b76
core/cortex-m: add missing NORETURNs to thread_arch
2014-06-05 21:01:35 +02:00
Ludwig Ortmann
1e5e19bc23
native: set optional path with unix socket option
...
fixes #1045
2014-06-03 16:46:40 +02:00
Ludwig Ortmann
e36590cda7
native: fix coding style
2014-06-03 16:46:40 +02:00
René Kijewski
abdb3ef2a4
x86: add read-before-write check at runtime
...
Finding read-before-writes statically is quite difficult. In native we
can use valgrind, but on boards without an MMU we are out of luck.
x86 has an MMU, let's use it.
If `-DDEBUG_READ_BEFORE_WRITE` was set, then pages on the heap get
initialized upon first use. If the page was read before written, then a
debug message with the virtual and physical address of the memory
location is printed, as well as the address of the offending instruction.
2014-05-31 19:45:19 +02:00
Thomas Eichinger
c70ae14ff0
cleanup licenses to fix #392
2014-05-27 11:54:55 +02:00
Martin Lenders
2362623490
Fix trailing whitespaces
...
Fixes #1138
2014-05-26 14:54:23 +02:00
Thomas Eichinger
1e983c9670
s/PROJECT/APPLICATION/g
...
fixes #548
2014-05-26 13:21:09 +02:00
René Kijewski
4e4f908379
Initial import of the x86 port
...
Currently this works only in qemu.
2014-05-25 13:40:29 +02:00
Oleg Hahm
ad28f4f1c0
cosmetics: converted tabs into spaces for lpc1768 header
2014-05-24 15:57:29 +02:00
Oleg Hahm
ef4fe6616c
documentation: unified descriptive text for cpu
2014-05-24 15:56:57 +02:00
Oleg Hahm
a2db556139
cosmetics: cleaned up arm_common.h
...
* converted tabs to white spaces, fixed indentation, and removed SVN clutter
2014-05-24 15:16:26 +02:00
Oleg Hahm
de6e70c594
copyriot: fixed copyriot header for arm_common
2014-05-24 15:12:36 +02:00
René Kijewski
1b89f334e3
msp430: provide oneway-malloc implicitly
...
For MSP430 boards oneway-malloc is already used *if* `malloc.h` was
included. The problem is that `malloc.h` is not a standard header, even
though it is common. `stdlib.h` in the right place to look for
`malloc()` and friends.
This change removes this discrepancy. `malloc()` is just named like
that, without the leading underscore. The symbols now are weak, which
means that they won't override library functions if MSP's standard
library will provide these functions at some point. (Unlikely, since
using `malloc()` on tiny systems is less then optimal ...)
Closes #1061 and #863 .
2014-05-22 15:40:25 +02:00
Oleg Hahm
bf00b019e4
documentation: CMSIS cleanup
...
Put all CMSIS documentation into a dedicated subgroup of cpu.
2014-05-22 13:01:36 +02:00
René Kijewski
06eb95d687
Merge pull request #1216 from LudwigOrtmann/issue-1215
...
native: set _native_pid correctly in daemon mode
2014-05-20 14:09:44 +02:00
Ludwig Ortmann
c9f68e79b9
native: set _native_pid correctly in daemon mode
...
This fixes a bug that leads to all unix sockets being created as
`/tmp/riot.tty.0`.
2014-05-20 08:53:26 +02:00
Oleg Hahm
31351a0dc0
msp430: workaround: define errno values if not provided by MSP430 lib
2014-05-19 18:54:20 +02:00
Oleg Hahm
9bef59cc55
documentation: fix CMSIS doxygen for SAM3x8e
2014-05-19 10:45:05 +02:00
Oleg Hahm
ef5ec344fd
core: prefix API functions correctly
...
Also changed names for bitarithm functions and rename thread_pid to sched_active_pid.
2014-05-18 08:53:20 +02:00
Ludwig Ortmann
aa4e61fab2
documentation: clean up doxygen mess after cortex
...
fixes #1190
2014-05-16 19:47:54 +02:00
Ludwig Ortmann
cbf39bf012
native: add missing include
...
crash.c was missing native_internal.h
2014-05-16 17:24:45 +02:00
Oleg Hahm
5d7f7dd686
Merge pull request #1079 from BytesGalore/add_NORETURNs
...
core: and cpu: Added NORETURN to functions that should not return
2014-05-16 00:33:20 +02:00
Ludwig Ortmann
9b47af0b54
Merge pull request #1184 from LudwigOrtmann/native_license_unification
...
Native license unification
2014-05-15 18:36:15 +02:00
Ludwig Ortmann
98bbb80571
documentation: append my email to my name everywhere
2014-05-15 18:07:17 +02:00
Ludwig Ortmann
3a3c04e66e
native/tramp.S: add missing license header
2014-05-15 18:07:17 +02:00
Jan S
ba907471f3
fixed printf specifiers
2014-05-15 17:42:57 +02:00
René Kijewski
0b9c0fb475
Merge pull request #1154 from Kijewski/issue-1150
...
msp430: fix missing members in `struct tm`
2014-05-15 14:59:24 +02:00
Ludwig Ortmann
b43fa2327e
native/tramp.S: use ret instead of manual return
2014-05-15 11:38:24 +02:00
Ludwig Ortmann
e0a1217f20
native: refactor one debug/errx use in irq_cpu.c
2014-05-15 11:37:18 +02:00
René Kijewski
55b12034a9
msp430: fix missing members in struct tm
...
Closes #1150 .
2014-05-14 19:57:41 +02:00
Thomas Eichinger
7a031e5669
net: handle macro redefinitions for OS X
...
undefine macros and reorder header includes to get rid of system
defined macros on OS X
fixes #1165
2014-05-14 19:43:58 +02:00
René Kijewski
d98ebf62cd
native: fixup #1145 : function declaration
2014-05-14 16:54:34 +02:00
René Kijewski
8038e96d09
Merge pull request #1119 from Kijewski/error_old-style-definition
...
Exterminate old-style function definitions
2014-05-14 13:31:30 +02:00
Ludwig Ortmann
ba00bdb853
Merge pull request #1159 from thomaseichinger/fix_license_sam3x8e
...
sam3x8e: fix license to LGPL
2014-05-14 11:53:52 +02:00
Ludwig Ortmann
a109968112
Merge pull request #1156 from LudwigOrtmann/license_header_fix
...
license: fix license header grammar
2014-05-14 10:22:19 +02:00
Thomas Eichinger
1ab77eea4d
fix license to LGPL
...
fixes #1155 needs @haukepetersen to review
2014-05-14 10:20:32 +02:00
Thomas Eichinger
60b03ab7c1
Merge pull request #1157 from thomaseichinger/fix_licenses
...
mc1322x: redbee-econotag: fix licenses to LGPL
2014-05-14 10:05:17 +02:00
Thomas Eichinger
38f3ea6d78
fix licenses to LGPL fixes #1148
2014-05-14 10:04:34 +02:00
Ludwig Ortmann
2314915ff2
license: fix license header grammar
...
insert missing "is"
2014-05-14 09:49:09 +02:00
Ludwig Ortmann
166b88f1ae
native: internal getpid syscall
2014-05-14 09:13:57 +02:00
Ludwig Ortmann
4c961bfb6e
native: refactor getpid calls
2014-05-14 09:13:57 +02:00
Hauke Petersen
3cc435c074
board: Initial import of arduino-due
...
- switched to flashing using the programming port
- fixed Makefile.include
- fixes some documentation
- removed newlib nano.specs
- added OSX flashing support
- fixed flasher and port for OSX
- fixed port on OSX
- fixed bossac linux tool
- added license header
2014-05-13 21:20:09 +02:00
Hauke Petersen
31915bfe61
cpu: Initial import of SAM3X8E
...
- fixed spelling in uart driver
- marked cortexm-common a phony target
- fixed Makefiles
- added reboot interface implementation
- fixed documentation
- added UART0_BUFSIZE define
- added license header
- fixed documentation issues
2014-05-13 21:19:38 +02:00
Hauke Petersen
27133d25fe
cpu: Initial import of cortexm_common files
...
- fixes to cortexm-common
- Added ARM CMSIS headers to cortexm_common
- thread_exit fixes to cortexm-common
- cortexm-common adjusted documentation
- cortexm_common added eINT dINT defines for now
2014-05-13 21:19:18 +02:00
Ludwig Ortmann
27eb2aedc1
native: update README
...
Move README to to README.md
Fix spelling and markup
2014-05-13 11:25:34 +02:00
René Kijewski
628419eb11
Exterminate old-style function declaration/prototypes
2014-05-12 21:57:09 +02:00
René Kijewski
9a9caf2c68
Exterminate old-style function definitions
2014-05-12 21:57:09 +02:00
Jan S
e7cf6bf745
removed unreachable code
2014-05-09 23:45:07 +02:00
Jan S
350e34f924
typo fix
2014-05-09 23:38:38 +02:00
Martin
4e73169b38
added NORETURNs to functions that should not return
...
and added `UNREACHABLE();` to hint the compiler unreachable lines
added right signature for first parameter of `thread_stack_init()`
added `UNREACHABLE();` macro to `cpu/lpc1768/atom.c` and `cpu/msp430-common/cpu.c`
2014-05-08 06:25:25 +02:00
René Kijewski
6f3d0871aa
core/cpu: put __builtin_unreachable() into one place
2014-05-07 19:24:55 +02:00
Hauke Petersen
7545eff784
core/cpu/board: moved F_CPU define to board
2014-05-06 10:36:09 +02:00
René Kijewski
d19e885fb9
arm_common: no needless _gettimeofday()
warning
...
The `arm_common` syscalls implement `_gettimeofday()` for the benefit of
newlib. The syscall call only work if the `rtc` module or the `vtimer`
modules is transcluded. If neither module is used, a warning is printed
by means of `#warning`.
This warning is useless if the user does not invoke `gettimeofday()`.
Further this warning prevents the use of `-Werror`.
This PR puts the function in its own file, that will only be linked if
it was used. And if the function was used, then a link time error occur
if neither `rtc` nor `vtimer` was transcluded.
2014-05-05 14:45:11 +02:00
Christian Mehlis
8c63eccb1a
ARM: fix several warnings
2014-04-30 20:39:35 +02:00
Oleg Hahm
162d9b0008
Merge pull request #1006 from Kijewski/issue-967
...
msp430: Fix variable usage in cc430-rtc.c
2014-04-30 18:27:27 +02:00
Martin
619039e0e2
add pthread condition variable implementation
2014-04-29 18:39:03 +02:00
René Kijewski
2793426c89
msp430: Fix variable usage in cc430-rtc.c
...
Closes #967 .
2014-04-29 00:04:38 +02:00
René Kijewski
4c66f72ba3
Merge pull request #1022 from LudwigOrtmann/issue_505
...
native: update support for FreeBSD
2014-04-26 15:51:54 +02:00
Thomas Eichinger
d89faccc78
Merge pull request #1031 from LudwigOrtmann/issue_676
...
redbee-econotag: fix maca
2014-04-24 10:19:22 +02:00
Ludwig Ortmann
c2b9d94a0c
native: add tapsetup-freebsd.sh
2014-04-20 07:31:40 +02:00
Ludwig Ortmann
42aa3d9f5b
native: update support for FreeBSD
...
works with FreeBSD 10.0 amd64/i386
fixes : #505
2014-04-20 07:31:40 +02:00
Ludwig Ortmann
6044dc28dc
native: add help option
...
Closes : #840
2014-04-19 12:44:11 +02:00
René Kijewski
542a2e5d9d
Merge pull request #995 from Kijewski/issue-993
...
Make: exterminate 'clean' buildtarget clutter
2014-04-18 16:11:15 +02:00
Ludwig Ortmann
3a1980af36
redbee-econotag: fix maca
...
I suspect that the transceiver will still not work as there are many
many warnings, but at least it builds now.
closes : #676
2014-04-18 16:05:23 +02:00
900db3436a
native: optionally exit() after last thread has ended
...
Used when compiled with NATIVE_AUTO_EXIT defined.
2014-04-12 15:47:01 +02:00
René Kijewski
300d6b3e35
Make: exterminate 'clean' buildtarget
...
Closes #993 .
We do not need to descend into the modules to know what to do on
`make clean BOARD=blub`. We can just invoke `rm -rf bin/blub`.
This PR only keeps the descending into the USEPKGs, since they might
want to delete cached/downloaded/extracted data.
2014-04-09 23:07:52 +02:00
Ludwig Ortmann
9f24ae2e62
Merge pull request #946 from Kijewski/native-write
...
native: don't use RIOT read/write in UART
2014-04-09 18:17:09 +02:00
Ludwig Ortmann
b9ffc1a99e
fixup for #710 : use subfolder in bin dirs (native)
...
Update native Makefiles to provide changed object target paths
Fixes #989
2014-04-09 15:25:05 +02:00
Oleg Hahm
aeb54158f6
cpu: satisfy compiler in crash.c
2014-04-09 12:27:53 +02:00
Ludwig Ortmann
ab08fbb5a6
Merge pull request #957 from rousselk/hwtimer-msp430-handle-overflow
...
Handle race conditions preventing MSP430 timers to be set correctly
2014-04-09 11:21:37 +02:00
Kévin Roussel
b6fbe33539
Handle race conditions preventing timers to be set correctly on MSP430 MCUs
...
when the counter is incrementing and/or overflowing
2014-04-09 10:28:39 +02:00
René Kijewski
3f59eefbaf
Use subfolders in bin dir
...
Creating all object files in one directory is bound to produce name
clashes. RIOT developers may take care to use unique file names, but
external packages surely don't.
With this change all the objects of a module (e.g. `shell`) will be
created in `bin/$(BOARD)/$(MODULE)`.
I compared the final linker command before and after the change. The
`.o` files (e.g. `startup.o`, `syscall.o` ...) are included in the same
order. Neglecting the changed path name where the `.o` files reside, the
linker command stays exactly the same.
A major problem could be third party boards, because the location of the
`startup.o` needs to the specified now in
`boards/$(BOARD)/Makefile.include`, e.g.
```Makefile
export UNDEF += $(BINDIR)msp430_common/startup.o
```
2014-04-09 00:28:14 +02:00
Oleg Hahm
1e9a43d0f8
Merge pull request #778 from LudwigOrtmann/dependency_files
...
Make: Prepend path to dependency info files with sed
2014-04-08 23:22:21 +02:00
René Kijewski
2749531324
Merge pull request #789 from LudwigOrtmann/native_gprof
...
native profiling tools support
2014-04-05 02:26:15 +02:00
Ludwig Ortmann
91814e52ae
make: replace MAKEBASE with RIOTBASE
...
closes https://github.com/RIOT-OS/RIOT/issues/959
2014-04-01 16:40:28 +02:00
Ludwig Ortmann
b2930113ef
remove some newlines
2014-04-01 10:47:12 +02:00
Ludwig Ortmann
a1aa0df9ae
change new/overlooked Makefiles
2014-04-01 10:44:10 +02:00
Ludwig Ortmann
1bd3f7bb86
pipe through sed instead
...
addresses: https://github.com/RIOT-OS/RIOT/pull/778#discussion_r10041955
2014-04-01 10:44:10 +02:00
René Kijewski
0b75a11291
native: don't use RIOT read/write in UART
2014-03-30 22:33:50 +02:00
Oleg Hahm
c25b785984
msp430: don't enable Timer 0 by default
2014-03-26 15:00:56 +01:00
Oleg Hahm
c8bf4efbb4
msp430: cc430: handle hwtimer interrupts correctly
...
TAIFG should count the overflows, instead of using the first CCR for this purpose.
Without this commit ARCH_MAXTIMERS returns the wrong number as
effectively one timer less can be used.
Additional fixed comment style and added timer debug.
2014-03-26 15:00:51 +01:00
Oleg Hahm
ef8bfb38a1
msp430: show overflow counter in hwtimer debug
2014-03-26 14:09:16 +01:00
Oleg Hahm
e93b44e8b5
msp430: remove expensive modulo call
2014-03-26 14:09:16 +01:00
Hauke Petersen
28f267f8f6
Merge pull request #923 from haukepetersen/mbed_enableIRQ
...
cpu: added enableIRQ implementation to cpu/lpc1768
2014-03-26 13:55:43 +01:00
Hauke Petersen
8a937e1a1c
hwtimer: clean up of interfaces to board/cpu
2014-03-26 13:19:18 +01:00
Hauke Petersen
d3678ca9dd
cpu: added enableIRG implementation to cpu/lpc1768
2014-03-25 19:54:06 +01:00
Ludwig Ortmann
f490a7065d
Merge pull request #700 from LudwigOrtmann/sniper_700
...
kernel_init: config_load, native: config_load: set id/address to PID
2014-03-19 15:04:19 +01:00
Ludwig Ortmann
0501fe8980
native: config_load: set PID as id, net address
2014-03-18 08:07:30 +01:00
Oleg Hahm
a427cce09b
Merge pull request #881 from rousselk/msp430-stackptr-align
...
Ensure that stack pointer is correctly aligned during thread creation on MSP430
2014-03-17 17:37:49 +01:00
Oleg Hahm
3c54edf4d6
Merge pull request #822 from LudwigOrtmann/reboot_signature
...
core: change reboot signature.
2014-03-16 18:42:23 +01:00
Ludwig Ortmann
8ef02d3b9d
native profiling support
...
only works with Linux for now
2014-03-14 12:50:50 +01:00
Kévin Roussel
054367c23a
Ensure that stack pointer is correctly aligned during thread creation on MSP430
2014-03-13 12:40:57 +01:00
Ludwig Ortmann
9b61d95545
make: don't ignore failures in for loops
...
Add `|| exit 1` to all constructs like `@for i in $(DIRS) ; do "$(MAKE)" -C $$i ; done ;`, so that compilation stops on the first error.
2014-03-12 11:09:04 +01:00
Ludwig Ortmann
063a15ce9b
Change reboot signature.
...
Change from `void reboot(void)` to `int reboot(int mode)`.
Move reboot definition to core, rename architecture implementations
from reboot to reboot_arch.
Declare reboot mode(s) in kernel.h, reboot_arch in kernel_internal.h
Currently only one reboot mode is handled, its use is enforced.
Rationale:
A reboot function is already defined in <unistd.h> on BSD systems.
(See: http://www.openbsd.org/cgi-bin/man.cgi?query=reboot&sektion=2 )
This patch not only allows native to build sensibly on these systems
but also streamlines RIOTs compatability with existing software.
2014-03-10 11:14:27 +01:00
Martin Lenders
49b1f44b2e
Merge pull request #804 from LudwigOrtmann/native_include_separation
...
native/make: Don't use INCLUDES for building any native at all.
2014-03-03 15:12:56 +01:00
Ludwig Ortmann
05dc8ec1cb
Merge pull request #790 from LudwigOrtmann/fixup_685
...
core: fixup for 685
2014-02-28 10:43:14 +01:00
Ludwig Ortmann
2cd3f04fc6
Don't use INCLUDES for building any native at all.
...
native modules will never need the dynamic INCLUDES, so we define our
own NATIVEINCLUDES. Due to the current make structure, the only way to
not use INCLUDES is to redefine the build rules.
2014-02-27 10:30:30 +01:00
Oleg Hahm
72966fec39
adding sys/time.h for msp-430
2014-02-27 00:17:14 +01:00
Ludwig Ortmann
470bd7f17f
Fixup for #685
...
- use DEVELHELP for native as well
- fix function name in documentation
- improve documentation language/spelling
2014-02-26 21:49:54 +01:00
Oleg Hahm
0c14597ec2
Merge pull request #685 from rousselk/panic
...
Panic
2014-02-26 16:26:27 +01:00
Oleg Hahm
b4a8788210
fixed typo
2014-02-26 08:18:17 +01:00
Oleg Hahm
07b0cd8863
added gettimeofday syscall
...
RIOT's gettimeofday needs to be called from syscalls.c to assure that gcc actually links it.
If an RTC if available and enabled it will be used instead.
2014-02-25 17:41:45 +01:00
Kévin Roussel
f4f2519a58
LPC1768 implementation of 'core_panic()'
...
copied from 'arm_common', for make-related reasons...
2014-02-25 10:50:51 +01:00
Kévin Roussel
4f8a29d892
Implemented the crash-handling/reboot mechanism for ARM-based MCUs
2014-02-25 10:50:51 +01:00
Kévin Roussel
03fe9de135
Implemented crash-handling mechanism for 'native' platform
2014-02-25 10:50:51 +01:00
Kévin Roussel
1183555cc3
Implement the crash-handling/reboot mechanism for MSP430 MCUs
2014-02-25 10:50:51 +01:00
Christian Mehlis
261d414649
native: removed unreachable code
2014-02-25 09:02:39 +01:00
Ludwig Ortmann
86812c2abb
make calloc "usable" early on
...
closes #741
Old versions of the gnu libc uses calloc to allocate dymanic memory
when some error occurs in dlsym.
This results in a segfault as natives calloc wrapper has not been
initialized yet.
As this is a circular dependency and the libc can cope with this, we
just return NULL from the calloc wrapper and hope for the best.
Recent libc versions use a static buffer instead.
2014-02-22 13:08:45 +01:00
Christian Mehlis
0309fecc19
fix warning: invalid suffix on literal
...
C++11 requires a space between
literal and identifier [-Wliteral-suffix]
2014-02-18 17:05:01 +01:00
Oleg Hahm
b42496475a
Merge pull request #724 from rousselk/reboot
...
Reboot
2014-02-18 13:33:49 +01:00
Christian Mehlis
6578669e46
Merge pull request #718 from Kijewski/issue-693
...
"Exterminate `} else {`"
2014-02-18 12:42:54 +01:00
Christian Mehlis
cb9c5d00de
repace project by application in documentation
2014-02-18 12:28:32 +01:00
Kévin Roussel
dc6f920f33
Merge remote-tracking branch 'origin/reboot' into reboot
2014-02-17 12:00:19 +01:00
René Kijewski
2349d0806e
"Exterminate } else {
"
2014-02-16 23:29:47 +01:00
Oleg Hahm
6c0482b976
Merge pull request #701 from Kijewski/issue-672
...
Use `filter` instead of `findstring`
2014-02-16 12:33:29 +01:00
Oleg Hahm
0467181093
replaced tabs with spaces
2014-02-15 17:29:49 +01:00
Oleg Hahm
85a05dd794
added reboot and reset handler for lpc1768
2014-02-15 17:29:49 +01:00
Christian Mehlis
38529e3296
replace all endless for loops by while
2014-02-14 17:47:33 +01:00
Kévin Roussel
4eee19f32c
Merge pull request #1 from LudwigOrtmann/native_reboot
...
implement rudimentary native reboot
2014-02-14 16:35:58 +01:00
Kévin Roussel
f6d7910352
Added while(1) to ensure GCC valids NORETURN; fixed indentation
2014-02-14 16:33:47 +01:00
Ludwig Ortmann
561eefab07
implement rudimentary native reboot
2014-02-14 16:20:36 +01:00
René Kijewski
102dc45382
Eliminate findstring in more places
2014-02-14 14:30:16 +01:00
Kévin Roussel
7ad37edb82
Added while(1) to ensure GCC valids NORETURN; fixed indentation
2014-02-14 12:13:10 +01:00
Kévin Roussel
c33087bdcd
Implemented reboot() function for ARM-based MCUs
2014-02-14 11:56:18 +01:00
Kévin Roussel
7073489dac
Implemented reboot() function for MSP430 MCUs
2014-02-12 15:26:02 +01:00
Christian Mehlis
d794900386
Merge pull request #666 from LudwigOrtmann/native_valgrind_config
...
Native valgrind config
2014-02-12 11:01:34 +01:00
Ludwig Ortmann
114aaa65e5
Merge pull request #626 from LudwigOrtmann/issue_621
...
add EUI-64 support for nativenet
2014-02-11 19:30:23 +01:00
Ludwig Ortmann
336c5159b2
use pkg-config to add valgrind include path
...
makes knowledge of VALGRIND_VALGRIND_H vs. VALGRIND_H optional
2014-02-11 19:22:39 +01:00
Ludwig Ortmann
2525920426
remove trailing whitespace and newlines
2014-02-11 18:45:06 +01:00
Ludwig Ortmann
d5d3bbcd44
add EUI-64 support for nativenet
2014-02-10 08:33:57 +01:00
Martin
6a29d18324
changed assignment to const char*
2014-02-10 08:29:22 +01:00
Martin
174a75102b
changed clonedev assignment according to const string
2014-02-10 08:21:32 +01:00
Ludwig Ortmann
85c6b6587e
replace uint16_t with radio_address_t in maca
...
adpots includes and makes them adhere to the coding conventions
2014-02-07 18:56:04 +01:00
Oleg Hahm
355f6610d5
Merge pull request #482 from OlegHahm/driver_includes
...
Driver includes
2014-02-07 17:21:45 +01:00
Oleg Hahm
62046d6ea0
Merge pull request #649 from BytesGalore/fix_missing_typecasts
...
Fix added missing typecasts to stack (arm/msba2) and send/receive buffer (native)
2014-02-07 12:25:08 +01:00
Martin
22b777300d
added typecasts for the used send/receive buffer pointer buff
2014-02-07 09:26:56 +01:00
Martin
b4f36f4af9
added typecast for starck_start in arm_cpu to ensure correct calculation
2014-02-07 09:17:21 +01:00
Martin
f19ec9649f
added typecast for starck_start in native
2014-02-07 09:14:58 +01:00
Oleg Hahm
70747d8bb4
streamlined driver include pathes
2014-02-05 18:56:47 +01:00
Ludwig Ortmann
5681fcc481
native readme update
2014-02-04 18:41:38 +01:00
Oleg Hahm
fb423e2c48
Merge pull request #606 from OlegHahm/license_issues
...
added license headers and doxygen file information
2014-02-04 03:01:23 -08:00
Oleg Hahm
d9c31a01e5
addressed comments from @mehlis
2014-02-03 00:47:38 +01:00
Oleg Hahm
4bc6dfbf69
added license headers and doxygen file information
...
plus replaced tabs with spaces
2014-02-02 22:22:03 +01:00
Ludwig Ortmann
f04eaa3d20
update native readme
2014-02-01 12:10:08 +01:00
Ludwig Ortmann
fd083c95a6
check for active_thread != NULL in syscalls.c before using it
...
fixes #498
2014-01-31 09:31:22 +01:00
Ludwig Ortmann
f0340b90a2
guard pre-err() warn() calls
2014-01-29 19:13:49 +01:00
Ludwig Ortmann
176f379c7a
dont err() but warn() if no thread exists in native_isr_entry
2014-01-29 18:44:42 +01:00
Ludwig Ortmann
796b656e31
force-debug (eINT && in_isr) in DEVELHELP
2014-01-29 18:44:42 +01:00
Ludwig Ortmann
6f5d4dcdb4
block all signals per default
2014-01-29 18:44:42 +01:00
Ludwig Ortmann
bdd4252961
guard setitimer
2014-01-29 18:44:42 +01:00
Ludwig Ortmann
0766b92f7b
Don't unblock signals again.
...
A late signal could kill the process otherwise.
2014-01-29 18:44:42 +01:00
Ludwig Ortmann
2c80f68d62
handle more errors and remove race condition in native_isr_entry
2014-01-29 18:44:42 +01:00
Ludwig Ortmann
a55e85f8d0
guard swapcontext in _native_syscall_leave
2014-01-29 18:44:42 +01:00
Ludwig Ortmann
7f1db86ae2
handle some should-be impossible paths
2014-01-29 18:44:41 +01:00
Ludwig Ortmann
573b154f44
handle select errors EAGAIN | EWOULDBLOCK in lpm
2014-01-29 18:44:18 +01:00
Ludwig Ortmann
3c087107f2
fix call to err()
2014-01-29 16:54:36 +01:00
56ee585c81
update Kaspar's email address
...
kaspar.schleiser@fu-berlin.de is obsolete.
(2nd try, first try was overwritten by some overzealous documenter)
2014-01-28 11:53:19 +01:00
Ludwig Ortmann
f04c3dc433
Merge pull request #559 from LudwigOrtmann/native_syscall_guards
...
Native syscall guards
2014-01-24 09:36:26 -08:00
Ludwig Ortmann
d8745e2861
add local debug macro
...
addresses https://github.com/RIOT-OS/RIOT/pull/559#issuecomment-33241773
2014-01-24 18:26:44 +01:00
Ludwig Ortmann
b22380990f
fix DEBUG in syscalls
2014-01-24 17:30:47 +01:00
Ludwig Ortmann
4939473afb
guard malloc/free family
2014-01-24 17:30:47 +01:00
Ludwig Ortmann
7685357990
Merge pull request #547 from LudwigOrtmann/native_hwtimer_fix
...
Native hwtimer fix
2014-01-24 08:10:42 -08:00
Ludwig Ortmann
7148f1db23
change wording
...
addresses https://github.com/RIOT-OS/RIOT/pull/555#discussion_r9118361
2014-01-23 17:25:41 +01:00
Ludwig Ortmann
f58b312129
improve error messages when tap ioctls fail
2014-01-23 17:16:00 +01:00
Ludwig Ortmann
e32bfa53d0
fix overdue mitigation
2014-01-23 00:03:23 +01:00
Ludwig Ortmann
91ebc1d0b5
improve debug messages
2014-01-22 22:19:53 +01:00
Ludwig Ortmann
332cf8807f
fix callback offset
2014-01-22 22:19:53 +01:00
Oleg Hahm
8de53e2b78
Merge pull request #530 from thomaseichinger/msp430-intrinsics.h-fix
...
safeguard intrinsics.h include in lpm_cpu.c
2014-01-22 10:59:11 -08:00
Ludwig Ortmann
855eea6a53
add missing newlines
2014-01-22 18:26:53 +01:00
Ludwig Ortmann
ca53203f1f
Merge pull request #539 from LudwigOrtmann/native_signal_patches
...
Native signal patches
2014-01-21 08:40:30 -08:00
Ludwig Ortmann
2b4a323a18
unclutter native_isr_entry a bit
...
remove heap_address - hopefully superflous, does not work in valgrind
remove stale TODO
2014-01-21 17:39:43 +01:00
Ludwig Ortmann
7789bbca16
fix signal trampoline
...
save and use the program counter on stack
removes race condition in trampoline
also push/pop full memory words explicitly
2014-01-21 17:39:15 +01:00
Oleg Hahm
0409d4b3a1
Merge pull request #521 from OlegHahm/fix_includes_for_msp430
...
Fix includes for msp430
2014-01-21 04:49:06 -08:00
Ludwig Ortmann
98a2d554b5
osx fixes
2014-01-21 12:30:53 +01:00
Thomas Eichinger
eff2c9aea3
safeguard intrinsics.h include since it is only provided by msp430-gcc >= 4.6
2014-01-21 11:27:21 +01:00
Oleg Hahm
a57b853401
removed own implementation of errno headers
2014-01-20 14:05:47 +01:00
Oleg Hahm
9eebc532ef
Merge pull request #459 from rousselk/msp430-lpm-freq
...
Msp430 lpm freq
2014-01-16 04:57:27 -08:00
Ludwig Ortmann
fc6cd24ece
reduce HWTIMERMINOFFSET
2014-01-15 12:40:55 +01:00
Ludwig Ortmann
dbcc898bcc
update internal timer on hwtimer_arch_set
2014-01-15 12:40:03 +01:00
Ludwig Ortmann
d3a1c1bda7
add comment
...
addresses https://github.com/RIOT-OS/RIOT/pull/501#discussion_r8881054
2014-01-15 11:24:59 +01:00
Ludwig Ortmann
921b70d5e8
fix pre-init
...
set the internal relative time - don't rely on hwtimer_now() being
called externally
2014-01-14 17:23:15 +01:00
Ludwig Ortmann
396f6c2819
fix debug msg
2014-01-14 17:23:03 +01:00
Ludwig Ortmann
6fe1ecd1b4
Merge pull request #479 from LudwigOrtmann/nativenet_lenchck
...
Nativenet length check and cleanup
2014-01-10 01:47:35 -08:00
Oleg Hahm
fe575d52df
Merge pull request #364 from OlegHahm/float_stack_sizes
...
added a dedicated stacksize for float printfs
2014-01-09 10:48:38 -08:00
Thomas Eichinger
dadd64e2f9
Merge pull request #473 from LudwigOrtmann/nativenet_osx_xmas
...
add io signal generating child for nativenet in osx
2014-01-09 07:14:34 -08:00
Ludwig Ortmann
83db6f6364
remove superflous include
2014-01-09 12:33:02 +01:00
Ludwig Ortmann
76b017aefd
check payload length validity
...
make sure the payload does not exceed the amount of data received
2014-01-08 14:58:57 +01:00
Ludwig Ortmann
ac0ec1f6b3
nativenet clean up
...
Make nativenet tap payload type consistent with radio_packet_t
Also remove a trailing space
2014-01-08 14:57:11 +01:00
Kévin Roussel
32a6e168ff
function 'lpm_get()' now returns LPM_UNKNOWN by default
2014-01-08 09:59:05 +01:00
Ludwig Ortmann
98d1136761
update native README
2014-01-07 10:20:58 +01:00
Oleg Hahm
775c0dee5c
added missing mute prefixes in nativenet and shell
2014-01-05 16:11:08 +01:00
Oleg Hahm
9df07f9238
muting compiler and binutils optionally
...
Instead of muting all compiler and other binutils output by default,
introduce a variable to make this behaviour configurable.
2014-01-05 16:11:08 +01:00
Oleg Hahm
02612ff0ca
further Makefile cleanup
2014-01-05 16:11:08 +01:00
Oleg Hahm
c7d985d371
removed redundant include pathes from Makefiles
2014-01-05 16:11:08 +01:00
Oleg Hahm
26c50522d5
simplified and unified cpu build structure
2014-01-05 16:11:07 +01:00
Kévin Roussel
5d393d270b
Sets MCU frequency in 'board.h', instead of the common 'cpu.h' file
2013-12-24 15:41:32 +01:00
Kévin Roussel
2b4febf8df
Basic implementation of LPM-related functions for MSP430 MCUs
2013-12-24 15:38:26 +01:00
Ludwig Ortmann
ea8b735232
fix nativenet_send documentation
2013-12-24 11:57:54 +01:00
Ludwig Ortmann
648bdaeed6
add io signal generating child for nativenet in osx
2013-12-24 11:54:00 +01:00
Ludwig Ortmann
1ac1646837
further clean up / filtering for cpu
2013-12-23 00:18:21 +01:00
Ludwig Ortmann
cf87e647c0
make native includes RIOT posix compatible
2013-12-22 23:26:54 +01:00
Ludwig Ortmann
ef315ed662
improve nativenet send functions return type
2013-12-21 16:56:42 +01:00
Ludwig Ortmann
751cfe6475
fix native hwtimer
...
The hardware timer used relative offsets that were never updated
before. This leads to two problems:
a) later timers will get pushed into the future by the amount of
previous timers
b) if a short timer is set continuously, a longer timer will never be
called
Example:
a)
Timer a with 500 ms is set, timer b with 600 ms is set.
timer a expires after 500 ms, timer b will be set to expire in 600 ms
which totals to 1100 ms.
b)
Timer a is set to 500 ms, timer b is set to 600 ms.
Timer a expires and is set again. Now timer a will expire in 500 ms
and timer b will be pushed further into the future. Repeating this
will lead to b never expiring.
2013-12-20 18:55:47 +01:00
Martin Lenders
69809928d3
Make UART0_BUFSIZE configurable by CPU
2013-12-20 11:10:42 +01:00
Oleg Hahm
1cc2767bb4
Merge pull request #318 from OlegHahm/lpc1768
...
initial support for the mbed NXP LPC168
2013-12-19 09:03:22 -08:00
Oleg Hahm
cdb77c2392
Merge pull request #437 from OlegHahm/include_directives
...
making include directives consistent
2013-12-19 08:38:14 -08:00
Thomas Eichinger
aa84138531
Merge pull request #451 from OlegHahm/mc1322x_check
...
Fixes check for Mc1322x CPU in arm_common
2013-12-19 06:34:58 -08:00
Oleg Hahm
903ec54a43
making include directives consistent
2013-12-19 15:31:37 +01:00
Oleg Hahm
aabef88d20
fix check for used cpu in arm_common
2013-12-19 15:25:12 +01:00
Ludwig Ortmann
50d488e6bc
remove suprerfluous thread_yield declaration
2013-12-19 13:05:53 +01:00
Ludwig Ortmann
437c0ee5c9
msp430 lpm stub
2013-12-19 13:04:08 +01:00
Ludwig Ortmann
76cfdc33b1
stack alignment workaround
...
Should be fixed in thread.c instead, this is just a temporary
workaround to enable msp-430 threads in the mean time.
2013-12-19 13:04:08 +01:00
Ludwig Ortmann
2a8411b6a3
fix main return for msp430
...
mspgcc handles main specially, this introduces code to make main
behave normally
2013-12-19 13:04:08 +01:00
Ludwig Ortmann
69f6748a7c
clean up msp430 cpu-conf.h
2013-12-19 13:04:08 +01:00
Oleg Hahm
37a7393a6b
Merge pull request #408 from rousselk/simplify-msp430-headers
...
Simplify msp430 headers
2013-12-19 02:23:21 -08:00
Kévin Roussel
c1f8106138
Quoted (instead of brackets) the custom header files #includes
2013-12-19 10:22:44 +01:00
Oleg Hahm
ead2e117a1
Merge pull request #439 from OlegHahm/thread_yield_prototype
...
put prototype for thread_yield() in core/include
2013-12-18 13:36:55 -08:00
Christian Mehlis
2a9aac7f0b
Merge pull request #423 from OlegHahm/fix_warnings
...
Fix warnings
2013-12-18 12:02:37 -08:00
Thomas Eichinger
cfa8879760
Merge pull request #435 from OlegHahm/fix_assembler_ifdef
...
macros are not handled by the preprocessor in ASM
2013-12-18 11:53:27 -08:00
Oleg Hahm
2cdfc5b585
Merge pull request #382 from OlegHahm/transceiver_return
...
transceiver return signed values for sending
2013-12-18 09:33:32 -08:00
Oleg Hahm
d87d827d88
transceiver return signed values for sending
...
negative values indicate an error value
2013-12-18 18:22:59 +01:00
Oleg Hahm
227c847135
put prototype for thread_yield() in core/include
2013-12-18 17:47:49 +01:00
Oleg Hahm
856548c63d
macros are not handled by the preprocessor in ASM
2013-12-18 16:56:13 +01:00
Thomas Eichinger
0afb992fc7
changed copyright statement
2013-12-18 11:16:41 +01:00
Thomas Eichinger
1d2f1479b6
hwtimer_wait issue fixed
2013-12-18 11:11:15 +01:00
Thomas Eichinger
1fcb47f9ed
fixed interrupt handling for hwtimer
2013-12-18 11:11:15 +01:00
Thomas Eichinger
1e39e7e486
change to the mc1322x IRQ handling
...
since mc1322x lacks a VIC this is a kind of SW VIC with low latency and
compatibility to the VIC API in mind.
2013-12-18 11:11:14 +01:00
Thomas Eichinger
a1cd29d68e
added basic install_irq function
2013-12-18 11:10:21 +01:00
Thomas Eichinger
a26b7ac4ba
remove isr.c to change interrupt handling to VIC model
2013-12-18 11:10:20 +01:00
Thomas Eichinger
8aeaea6fdc
changed CFLAGS to CFLAGS_BASIC (no -mthumb flag)
2013-12-18 11:10:20 +01:00
Thomas Eichinger
39c69166c5
fixes startup code and adds proper irq handler for mc1322x
2013-12-18 11:10:20 +01:00
Kévin Roussel
c6e43adb62
Removed 'flashrom.c' from the 'msp430-common' directory
...
since flash management differs with the MSP430 family
2013-12-18 10:51:46 +01:00
Kévin Roussel
63d78a231c
Made the headers of files in 'cpu/msp430x16x' and 'cpu/cc430' generic
2013-12-18 10:49:23 +01:00
Kévin Roussel
6428daf9c7
Removed all references to a specific MCU in "generic" files
...
Inclusion of generic <msp430.h> file is done in cpu.h
2013-12-18 10:49:23 +01:00
Hauke Petersen
edcabf7cb6
Fixed a lot of comments by removing tabs and correcting format.
2013-12-16 14:00:33 +01:00
Hauke Petersen
3785fe956b
Fixed doxygen comments, focused on file headers and group definitions
2013-12-16 14:00:24 +01:00
Ludwig Ortmann
0817675f5e
fix native hwtimer unsetting
...
reverts bug introduced by 2bfb062
2013-12-14 00:12:47 +01:00
Ludwig Ortmann
d03d7b1773
clean up native hwtimer
2013-12-14 00:07:49 +01:00
Oleg Hahm
72586f7a6d
limit maximum payload size to 255 for nativenet if 6lowpan is used
2013-12-13 18:53:48 +01:00
Christian Mehlis
2bfb06230a
fix: native hwtimer backend emulation
...
searching for the next pending timer was broken
this commit rewrites this functionality
2013-12-11 16:22:14 +01:00
Christian Mehlis
b17ffabce5
reduce minimal timer from 100ms to 10ms
2013-12-10 22:08:49 +01:00
Ludwig Ortmann
916757cf4c
implement err.h
...
valgrind reported invalid reads/writes with glibc err[x]|warn[x] (in
glibc printf) when stdio had been redirected in between.
define _progname (pointing to argv[0])
2013-12-10 17:00:01 +01:00
Ludwig Ortmann
864267f238
daemonization, io socket and file redirection
2013-12-10 17:00:01 +01:00
Oleg Hahm
3319fa484c
remove profiler from lpc_common
...
The profiling functions (gcc -finstrument_function) should be better
defined within the application.
2013-12-06 10:31:20 +01:00
f85adf608f
change my email address
...
kaspar.schleiser@fu-berlin.de will be obsoleted soon. Replace it with
kaspar@schleiser.de , which will (hopefully) stay.
2013-12-04 15:09:56 +01:00
Christian Mehlis
ff12887eae
Merge pull request #380 from OlegHahm/fix_watchdog
...
initializes watchdog properly for MSB-A2
2013-12-03 03:17:43 -08:00
Christian Mehlis
faa7b0c702
Merge pull request #394 from LudwigOrtmann/native_fix_include
...
fix native stdlib.h include
2013-12-03 02:26:30 -08:00
Ludwig Ortmann
2d7c328870
fix native stdlib.h include
...
Fixes segfault in OSX introduced by 45ffdea
2013-12-02 11:39:22 +01:00
Ludwig Ortmann
1c128f5ed6
improve valgrind section
2013-12-02 11:17:25 +01:00
Oleg Hahm
9817043ada
Merge pull request #375 from LudwigOrtmann/license_header_fix
...
fix grammar in license header
2013-11-26 10:55:41 -08:00
Oleg Hahm
24314a2167
Merge pull request #358 from OlegHahm/fix_warnings
...
Fix warnings
2013-11-25 17:10:55 -08:00
Oleg Hahm
749a24c515
initializes watchdog properly for MSB-A2
...
It the watchdog does not reset the WDMOD, BSL pin remains ignored.
2013-11-25 16:53:32 +01:00
Ludwig Ortmann
926c1d3da0
GNU Lesser General Public License -> LGPLv2
2013-11-23 13:43:47 +01:00
Ludwig Ortmann
d6c213fb47
fix grammar in license header
2013-11-23 13:11:56 +01:00
Ludwig Ortmann
2f53c0d32f
rework sigmasks
...
only mask signals actively being used
always enable shutdown
2013-11-23 11:21:40 +01:00
Ludwig Ortmann
0c6050a814
mask all signals in signal handler
2013-11-23 11:21:40 +01:00
Ludwig Ortmann
0a6dba11e5
mitigate against signals when signals are off
2013-11-23 11:21:40 +01:00
Ludwig Ortmann
5e1eadc353
add in_isr sighndl safeguard
2013-11-23 11:21:40 +01:00
Ludwig Ortmann
3a04671912
replace 1 with EXIT_FAILURE in all err calls
2013-11-23 11:21:40 +01:00
Ludwig Ortmann
3ca8181c73
reset context before makecontext call, check
...
check return value of swapcontext
2013-11-23 11:21:40 +01:00
Oleg Hahm
1f50d91332
making the pedantic gcc happy
2013-11-23 03:45:26 +01:00
Ludwig Ortmann
709cc9c158
add toa to packets in nativenet
...
also change order of fields to reflect radio types header
2013-11-22 10:55:49 +01:00
Oleg Hahm
6a1fcaf288
added a dedicated stacksize for float printfs
2013-11-21 20:41:28 +01:00
Christian Mehlis
45ffdeaf52
add missing stdlib.h include
2013-11-21 00:26:13 +01:00
Ludwig Ortmann
c1ea408274
move struct timeval to msp430_types.h
2013-11-19 17:56:05 +01:00
Ludwig Ortmann
3b2b02e99a
enable building chronos board
2013-11-19 17:56:05 +01:00
Ludwig Ortmann
f7a1edeb2c
fix and clean up some board Makefiles
...
enables building wsn430-v1_3b and wsn430-v1_4
fixes some but not all chronos building issues
2013-11-19 17:56:05 +01:00
Ludwig Ortmann
03957ab57d
dont overwrite CFLAGS in Makefile
2013-11-15 11:41:15 +01:00
Ludwig Ortmann
7caf7881a2
fix msb-430 Makefiles and includes
2013-11-14 15:08:32 +01:00
Oleg Hahm
cc45909ffc
Merge pull request #236 from OlegHahm/telosb
...
Telosb
2013-11-14 01:55:47 -08:00
Oleg Hahm
19f4f45445
added some debug output for the network stack
2013-11-14 10:46:21 +01:00
Ludwig Ortmann
01e30016d6
add lpm syscall barrier for native w/out UART
2013-11-13 23:43:26 +01:00
Ludwig Ortmann
c764728398
pre-init native hwtimer
...
make it behaver more like a regular timer
2013-11-13 01:31:31 +01:00
Ludwig Ortmann
1df56ed47b
cope with SIGIO behaviour
...
SIGIO appears to be edge triggered, therefore we need to read
continuously until no more data is available
2013-11-13 00:01:42 +01:00
Ludwig Ortmann
2c7070bf0c
disable interrupts for sighnd ctx switch
2013-11-13 00:01:42 +01:00
Ludwig Ortmann
9f080c54c6
fix race in thread_yield, cpu_switch_context_exit
...
call *context only with interrupts disabled, use isr trampoline for
this if necessary
2013-11-13 00:01:42 +01:00
Ludwig Ortmann
7b9d199ec8
make system calls safer/clean up headers
...
wrap some libc functions that do system calls (terminal output)
wrap read/write with syscall guard
define real_read/write (next dynamic linker find for read/write)
guard system calls in remaining code
introduce native_internhal.h
throw out some debug statements that break things
clean up includes a bit
declare board_init in native_internhal.h
add -ldl to LINKFLAGS for cpu/syscalls
2013-11-13 00:01:42 +01:00
Oleg Hahm
b6a7dc953f
initial support for the mbed NXP LPC168
...
* http://mbed.org/platforms/mbed-LPC1768/
2013-11-09 18:40:25 -08:00
Ludwig Ortmann
bad523831b
allow for custom tap names
2013-11-08 13:59:26 +01:00
Oleg Hahm
1117867eaf
Merge pull request #231 from thomaseichinger/maca_move
...
move mc1322x MACA implementation from the boards to RIOT repo
2013-11-06 14:21:58 -08:00
Christian Mehlis
4f4c4bfedd
use radio_packet_length_t for native frames
2013-10-29 20:36:13 +01:00
Christian Mehlis
2e59096390
fix wrong error handling introduced in 945aef
2013-10-26 15:40:01 +02:00
LudwigOrtmann
37158553b9
Merge pull request #264 from LudwigOrtmann/native_hwtimer_delta
...
add time delta to hwtimer
2013-10-25 04:07:32 -07:00
Christian Mehlis
22a2cdaea4
Merge pull request #249 from mehlis/time-rtc
...
add rtc_time function
2013-10-25 03:55:06 -07:00
Ludwig Ortmann
7e02c7dd2b
add time delta to hwtimer
2013-10-25 12:11:54 +02:00
Christian Mehlis
945aefad4f
add rtc_time implementation for native
2013-10-25 11:53:45 +02:00
Ludwig Ortmann
7f7290a26a
normalize stack defines
2013-10-25 11:40:33 +02:00
Ludwig Ortmann
944d10c07d
improve native README
2013-10-24 12:58:28 +02:00
Ludwig Ortmann
45c9f92b5e
implement graceful shutdown in native
2013-10-23 23:16:45 +02:00
Oleg Hahm
9f0aed27f3
Merge pull request #245 from LudwigOrtmann/fix_tramp
...
fix signal handler context switch
2013-10-23 10:05:40 -07:00
Christian Mehlis
7fb1ac4402
msp430: add time_t and struct timespec
2013-10-22 11:07:18 +02:00
Ludwig Ortmann
4c5273211b
fix signal handler context switch
2013-10-18 14:23:58 +02:00
Ludwig Ortmann
badcf390d1
initialize processing field in nativenet tap
2013-10-13 21:23:12 +02:00
Ludwig Ortmann
81f3ddde44
free reference pointer, fix indentation
2013-10-13 20:45:35 +02:00
Christian Mehlis
ff7cf37ccd
Merge pull request #230 from LudwigOrtmann/issue_154
...
valgrind support for native
2013-10-11 03:42:41 -07:00
Oleg Hahm
031e335e24
Merge pull request #97 from OlegHahm/makefile_windows_fixes
...
merged zkasmi/makefile_fixes to makefile_windows_fixes
2013-10-10 09:25:03 -07:00
Oleg Hahm
46deefe0f8
make Makefiles proof for spaces in $PATH
2013-10-09 15:28:53 +02:00
Ludwig Ortmann
21a0f39867
valgrind support
2013-10-09 15:20:59 +02:00
Kévin Roussel
c7501ce5e0
Added mising reference to cpu/msp430-common/include/cpu.h
...
so as to get the needed definition of F_RC_OSCILLATOR
2013-10-09 15:10:22 +02:00
Kévin Roussel
49c8c419bf
Updated the MSP430 hwtimer implementation, to cope with the lack of consistency
...
of of TI with the TimerX register names.
2013-10-09 15:10:22 +02:00
Ludwig Ortmann
2a031a4eca
improve headline in native README
2013-10-09 15:00:51 +02:00
Thomas Eichinger
7abda31b0f
move mc1322x MACA implementation from the boards repo to RIOT repo
2013-10-04 14:20:51 +02:00
Ludwig Ortmann
47b6e62982
fix native ctxt switches
...
fix disableIRQ (remove context switch)
fix enableIRQ (make context switch delay-safe)
change interrupts-off signal-catch behaviour from error to warning
add context switch memory location warning
2013-10-04 10:44:39 +02:00
Ludwig Ortmann
43adafe55a
native fix cpu_switch_context_exit
2013-10-04 10:44:39 +02:00
Ludwig Ortmann
d46a03f030
guard rtc syscall
2013-10-04 10:44:39 +02:00
Ludwig Ortmann
24b2cfd95a
general clean up
...
make some variables volatile
remove rx_buffer_next from header
more DEBUG output
fix warnings
coding conventions
change puts to DEBUG
rename end-context/stack
2013-09-30 18:03:53 +02:00
Christian Mehlis
8264a4aee1
minimize stacksize of the idle thread
2013-09-27 14:11:25 +02:00
Zakaria Kasmi
4fb64f8e91
revise error messages and fixed encoding
2013-09-26 23:54:45 +02:00
Zakaria Kasmi
4f4501f09d
small changes + coding conventions + updated files descriptions.
2013-09-26 23:47:46 +02:00
Oleg Hahm
1acfee5991
Merge pull request #99 from zkasmi/i2c
...
full abstracted i2c driver for LPC2387
2013-09-26 14:41:59 -07:00
Thomas Eichinger
b749e59276
added a basic implementation of the ASM module featuring
...
* CTR encryption
* CBC-MAC mode
* CTR-CBC-MAC mode
* structure for ASM registers
2013-09-26 23:39:58 +02:00
Oleg Hahm
7e66308192
Merge pull request #215 from OlegHahm/msp430-stack_sizes
...
adjusted default stack sizes for msp430
2013-09-24 05:47:58 -07:00
Oleg Hahm
bfbd765f39
Merge pull request #174 from thomaseichinger/ADC
...
ADC module of the mc1322x MCU
2013-09-23 04:43:21 -07:00
Thomas Eichinger
040fb1539c
moved GPIO implementation from boards to RIOT since ADC implementation depends on it
2013-09-20 14:55:34 +02:00
Oleg Hahm
0a02b060a8
adjusted default stack sizes for msp430
...
* stack size for idle thread was too small
* main stack gets initialized with KERNEL_CONF_STACKSIZE_DEFAULT +
KERNEL_CONF_STACKSIZE_PRINTF, leading to a huge main thread stack
2013-09-19 13:51:09 +02:00
Ludwig Ortmann
9544f617c2
fix frame padding, refactor native tap
2013-09-18 10:13:39 +02:00
Zakaria Kasmi
86818f599b
I2C Driver, Coding conventions
2013-09-17 14:35:23 +02:00
Oleg Hahm
d284db620d
Merge pull request #178 from OlegHahm/telosb
...
Telosb support
2013-09-16 15:34:57 -07:00
Oleg Hahm
5f537c38ac
changed to _types.h definition for ssize_t
2013-09-12 23:17:27 +02:00
Oleg Hahm
43eea48d25
added define for calloc in msp430-common
2013-09-12 16:08:40 +02:00
Oleg Hahm
a50db45909
added header for msp430 to define missing ssize_t
2013-09-12 14:33:37 +02:00
Ludwig Ortmann
b3a8fdc026
Fix uninitialized packet members
...
also cast packet data explicitly
2013-09-04 21:02:57 +02:00
Ludwig Ortmann
f8c3e02ae6
fix nativenet payload pointer
2013-09-04 20:39:56 +02:00
Ludwig Ortmann
c2fcbb787e
Fix some clang warnings in native
...
also cleans up a bit
2013-08-30 17:03:34 +02:00
Ludwig Ortmann
b298ab33c5
initialize rx_buffer_next explicitly
2013-08-29 17:03:22 +02:00
Ludwig Ortmann
c6180a6e4f
fix NATIVE_MAX_DATA_LENGTH
2013-08-29 16:16:47 +02:00
Ludwig Ortmann
2633967708
make tapsetup.sh more verbose
2013-08-29 16:16:47 +02:00
Ludwig Ortmann
74b1a74525
documentation for nativenet interface
2013-08-29 16:16:47 +02:00
Ludwig Ortmann
37c3059e1c
clean up nativenet, add src addr
2013-08-29 16:16:46 +02:00
Milan Babel
09b0baad66
fixed hwtimer on msp430
2013-08-23 22:03:04 +02:00
Thomas Eichinger
659e1c2041
added support for the ADC module of the mc1322x MCU
2013-08-23 12:05:11 +02:00
Ludwig Ortmann
846bcc01a8
Change interface cb parameter to function pointer
2013-08-21 15:13:23 +02:00
Ludwig Ortmann
395a033de6
fix unused parameter warning in posix-rtc.c
2013-08-21 15:13:09 +02:00
Ludwig Ortmann
6fba4d7ced
fix unused startup parameter warnings
2013-08-21 15:13:09 +02:00
Ludwig Ortmann
747d33e666
fix warning for sa.sa_sigaction assignments
2013-08-21 15:13:09 +02:00
Oleg Hahm
ebc0b9b552
renamed and moved some defines
2013-08-19 19:00:48 +02:00
Ludwig Ortmann
c1a5a3b5af
fix hwtimer_arch_set_absolute return value
2013-08-18 11:25:43 +02:00
Ludwig Ortmann
52b4370e7d
fix register_interrupt callback parameter
2013-08-18 11:25:43 +02:00
Christian Mehlis
f784d24fd5
add debug statement
2013-08-17 20:17:15 +02:00
Oleg Hahm
6d130a45ac
updated license headers
...
(No code changes!)
2013-08-16 10:20:23 +02:00
Oleg Hahm
c3dcaa05a7
Merge pull request #146 from LudwigOrtmann/nativenet_osx_hack
...
Preliminary OSX support hack
2013-08-15 10:46:13 -07:00
Oleg Hahm
2d4de90a9c
added missing header guards
2013-08-15 19:39:29 +02:00
Ludwig Ortmann
1bed4e459a
Preliminary OSX support hack
2013-08-15 17:04:03 +02:00
Ludwig Ortmann
708ece68cc
cc1100 -> nativenet
2013-08-15 14:05:26 +02:00
Ludwig Ortmann
a634709c00
native cc1100x_ng network
...
not properly passing received data to transceiver atm
2013-08-15 14:05:26 +02:00
Oleg Hahm
38ae187b61
added prototype for msp430_cpu_init()
2013-08-15 10:31:54 +02:00
authmillenon
e2c201f2e0
Merge branch 'remove_carriage_returns' of github.com:authmillenon/RIOT into authmillenon-remove_carriage_returns
...
Conflicts:
sys/net/destiny/in.h
sys/net/destiny/socket.h
sys/net/destiny/tcp.h
sys/net/destiny/tcp_hc.c
sys/net/destiny/tcp_hc.h
sys/net/destiny/tcp_timer.c
sys/net/destiny/udp.c
sys/net/destiny/udp.h
2013-08-15 10:30:02 +02:00
authmillenon
a3b754b662
Remove carriage returns
...
Git for windows handles those by itself
2013-08-15 10:17:15 +02:00
Oleg Hahm
ec1d7b9bdf
Merge pull request #139 from OlegHahm/default_stacksize
...
Default stacksize
2013-08-14 15:21:48 -07:00
Oleg Hahm
3ad55cce8b
changed default stacksize
...
* the default stacksize no longer set for a thread using printf
* the stacksize for the main thread therefore adds the necessary space
2013-08-14 18:04:25 +02:00
Ludwig Ortmann
f3bbede59b
fix printfs in hwtimer_cpu.c
2013-08-14 17:16:50 +02:00
Oleg Hahm
366d25ae38
Merge pull request #112 from OlegHahm/msb430_uart0
...
Changes according to the pull requests from dc5e7d7e1f
introducnig uart for MSB430 and changing the name of the terminal variable.
2013-08-13 08:57:59 -07:00
Oleg Hahm
88b8ccf3e8
Merge pull request #108 from OlegHahm/unmaintained_libs
...
removed unmaintained code
2013-08-13 00:44:25 -07:00
Oleg Hahm
540515bd98
removed unmaintained tracelog library
2013-08-12 22:38:18 +02:00
Oleg Hahm
5bf958ce20
removed unmaintained syslog library
2013-08-12 22:38:18 +02:00
Oleg Hahm
31646237b1
removed unmaintained code for LPC214x MCU
2013-08-12 22:37:59 +02:00
Oleg Hahm
6239ea2a0b
minor changes according to 7a2cc4ae09
2013-08-09 15:57:34 +02:00
Martin
63146190b3
fix changed prototype parameter 1 of thread_stack_init from void* to void(*)(void)
2013-08-09 12:19:03 +02:00
Zakaria Kasmi
c7351493b5
full abstracted i2c driver for LPC2387
2013-08-07 16:54:10 +02:00
Oleg Hahm
39a4dc684e
fixes for #62 : eliminate unused parameter warnings
...
NOTE: this commit introduces a kernel API change for mutex_unlock
2013-08-04 04:10:33 +02:00
Oleg Hahm
22c668529d
Merge branch 'oleg-master' into mymaster
...
Conflicts:
cpu/Makefile.include
cpu/arm_common/arm_cpu.c
2013-07-29 01:36:24 +02:00
Oleg Hahm
a2dff456f7
rebased from origin/master
2013-07-29 01:22:03 +02:00
Oleg Hahm
6d48859269
Merge branch 'master' of github.com:OlegHahm/RIOT
2013-07-29 01:11:42 +02:00
Oleg Hahm
3adb6fa217
removed senseless include of debug.h in a header
2013-07-25 21:56:09 +02:00
Oleg Hahm
6297516371
restructured and fixed arm architecutre files
2013-07-24 23:53:38 +02:00
Oleg Hahm
19e4034ace
Merge branch 'thomas-mc1322x'
...
Conflicts:
Makefile.modules
core/kernel_init.c
core/thread.c
cpu/arm_common/arm_cpu.c
cpu/arm_common/syscalls.c
cpu/lpc_common/hwtimer_cpu.c
cpu/lpc_common/iap.c
sys/include/transceiver.h
sys/net/sixlowpan/sixlowip.c
sys/net/sixlowpan/sixlowmac.c
sys/net/sixlowpan/sixlowmac.h
sys/net/sixlowpan/sixlowpan.c
sys/transceiver/Makefile
sys/transceiver/transceiver.c
2013-07-24 23:22:11 +02:00
Oleg Hahm
e9cee715a1
Use basic CFLAGS for ARM bootloader code
2013-07-24 22:22:34 +02:00
Oleg Hahm
42001d8ddb
dummy lpm_set implementation
2013-07-24 22:22:08 +02:00
Thomas Eichinger
4bc89bd458
added fixes for compilation for mc1322x
2013-07-24 15:50:16 +02:00
Oleg Hahm
ca75d3c36c
fixed some includes
2013-07-24 00:44:28 +02:00
Oleg Hahm
599e266b55
Revert "removed redefined ENABLE_DEBUG"
...
This reverts commit 69c526f44d
.
Instead of removing ENABLE_DEBUG, define it as zero and replacing the
ifdef preprocessor commands by a simple #if
2013-07-24 00:38:43 +02:00
Oleg Hahm
222d34d8a5
added missing include to cc110x_ng
2013-07-24 00:00:03 +02:00
Oleg Hahm
33423cdadb
redefining default stack sizes dependent on the use of printf
2013-07-23 13:42:58 +02:00
Thomas Eichinger
92adb3e401
* added proper "struct TMR_struct*" in hwtimer_cpu.c
...
* removed dublicate definition of the UART structure in mc1322x.h
2013-07-23 10:36:16 +02:00
Christian Mehlis
837bad38eb
rename kernel_intern.h
...
german "intern" to english "internal"
2013-07-16 16:36:37 +02:00
Christian Mehlis
b8176f4488
fixed printf patterns
2013-07-16 15:27:19 +02:00
Christian Mehlis
69c526f44d
removed redefined ENABLE_DEBUG
2013-07-16 15:27:19 +02:00
Ludwig Ortmann
33dde8aba8
use proper native board include
2013-07-15 20:52:53 +02:00
Oliver Hahm
57cc002c67
Merge branch 'wsn430'
...
Conflicts:
core/include/queue.h
core/queue.c
cpu/msp430-common/hwtimer_cpu.c
cpu/msp430x16x/hwtimer_msp430.c
sys/lib/hashtable.c
sys/net/ieee802154/ieee802154_frame.c
sys/shell/commands/sc_cc110x_ng.c
sys/transceiver/transceiver.c
sys/vtimer/vtimer.c
2013-06-25 15:33:40 +02:00
Oliver Hahm
c8bee9e554
fixed coding style (space after most keywords)
2013-06-24 22:37:35 +02:00
Oliver Hahm
5d70656343
fixed coding conventions (mostly by astyle)
2013-06-21 03:52:57 +02:00
Oliver Hahm
b571286574
* fixed typo
2013-06-18 17:26:53 +02:00
Oliver Hahm
ac10da4509
Merge branch 'fixes-06-14' of git://github.com/mehlis/RIOT into mehlis-fixes-06-14
2013-06-18 17:25:44 +02:00
Oliver Hahm
0d6d8390c0
* updated copyright and license headers in various files
2013-06-18 17:21:38 +02:00
Martin
d32b785816
fix inserted explicit typecasting to ucontext_t* at assignment
2013-06-14 20:21:22 +02:00
Martin
0dd314afbb
fix multiple definition of TRANSCEIVER_STACK_SIZE for using with native cpu
2013-06-14 20:21:22 +02:00
Oliver Hahm
fdd1d21e8d
Merge branch 'master' into wsn430
2013-06-14 19:41:23 +02:00
Christian Mehlis
57e70a659c
Remove undefined variables from Makefiles
...
The following variables are included in various Makefiles but never
defined.
$(BOARDINCLUDE)
$(PROJECTINCLUDE)
$(CPUINCLUDE)
2013-06-13 21:41:24 +02:00
Ludwig Ortmann
cad585e9dd
remove context switch in native lpm_sleep
...
quick fix for now
2013-06-13 18:14:21 +02:00
Oliver Hahm
b8f674f5b6
fix context switch in lpm_sleep
2013-06-12 16:18:32 +02:00
Oleg Hahm
545c786375
Merge branch 'master' of git://github.com/overflowed/RIOT into overflowed-master
2013-06-07 17:28:46 +02:00
Oleg Hahm
5a4211598c
Merge branch 'master' of github.com:RIOT-OS/RIOT
2013-06-07 17:24:04 +02:00
Oleg Hahm
59de680e26
* function to check for enabled interrupts on ARM
2013-06-07 17:21:11 +02:00
Milan Babel
df13d9e0fc
Merge branch 'master' of github.com:overflowed/RIOT
...
Conflicts:
drivers/cc110x_ng/Makefile
2013-06-06 08:41:30 +02:00
Milan Babel
edb34b73c0
fixes for the wsn430
...
fixed vtimer for the msp430
added spi module for the wsn430 v1.3b
changed some variables to uintXX_t, fixes overflow on msp430
2013-06-06 08:35:17 +02:00
Ludwig Ortmann
49228c8353
fix signal handler, ringbuffer for native FreeBSD
2013-06-03 13:23:57 +02:00
Ludwig Ortmann
4f0e4dec90
fix ucontext.h include for OSX, FreeBSD
2013-06-03 13:10:42 +02:00
Martin
d0ea87524c
fixed missing include
2013-06-01 08:28:47 -07:00
Ludwig Ortmann
42f897fc4a
use NSIG macro from signal.h for number of signals
2013-05-21 10:53:59 +02:00
Ludwig Ortmann
8f377cd9f5
Merge remote-tracking branch 'upstream/master'
2013-05-17 11:10:48 +02:00
Oleg Hahm
f1044c5ccd
Merge branch 'master' of github.com:RIOT-OS/RIOT
2013-05-16 17:12:01 +02:00
Oleg Hahm
cdad71d6e3
* fixed a bug in sbrk() by changing the counter variable from local to global
2013-05-16 17:10:14 +02:00
Ludwig Ortmann
35f9062e37
inital OSX support for native port
2013-05-15 17:45:43 +02:00
Oliver Hahm
2c6b406d2d
* renamed msp430_common module name
2013-05-15 15:54:21 +02:00
Ludwig Ortmann
7bf9fa0314
increase MINIMUM_STACK_SIZE to allow for DEBUG
2013-05-15 10:46:09 +02:00
Ludwig Ortmann
b36ddd7fd7
Merge remote-tracking branch 'upstream/master'
2013-05-15 10:18:08 +02:00
Ludwig Ortmann
c6553f6492
interrupt handling rewrite
...
(including uart0 integration, rt-extension removal)
2013-05-14 18:31:47 +02:00
Thomas Eichinger
ee6d1e1604
implemented hwtimer_arch_(enable|disable)_interrupt() and added ITC definitions
2013-04-25 14:56:32 +02:00
Thomas Eichinger
cc49d42f99
added implementations for hwtimer_arch_unset() and hwtimer_arch_now()
2013-04-25 13:38:55 +02:00
Thomas Eichinger
abc80ba5e4
added implementation of htimer_arch_set_absolute()
2013-04-25 13:32:50 +02:00
Thomas Eichinger
64cbb25d3e
* changed httimer_arch_init() to init all 4 timers and added implementation for hwtimer_arch_set
2013-04-25 13:30:09 +02:00
Thomas Eichinger
3dba62afa6
Merge branch 'mc1322x' of github.com:RIOT-OS/RIOT into mc1322x
2013-04-22 09:56:07 +02:00
Oliver Hahm
33ff3c3e60
* added accidentally deleted author line
2013-04-17 12:12:45 +02:00
Ludwig Ortmann
2d29a26b64
fix stack and interrupt bugs
2013-04-15 20:08:46 +02:00
Oliver Hahm
3e5f91e728
* add missing sections for arm-none-eabi-gcc to linkerscript for lpc2387
2013-04-15 14:45:39 +02:00
Oliver Hahm
c39fd9d8dc
* minor changes
2013-04-09 23:30:52 +02:00
Oliver Hahm
b0a3ae5382
Merge branch 'master' into mc1322x
2013-04-09 23:29:25 +02:00
Ludwig Ortmann
f669f9a05b
Merge remote-tracking branch 'upstream/master'
...
Conflicts:
Makefile.dep
2013-04-08 17:43:39 +02:00
Ludwig Ortmann
2f74d35709
removed posix real-time extension timers from cpu
2013-04-03 18:53:19 +02:00
Oliver Hahm
0add4cad21
* mc1322x specifics syscalls
2013-04-02 02:07:41 +02:00
Oliver Hahm
24300304f3
* added startup code for mc1322x
2013-04-02 02:07:13 +02:00
Oliver Hahm
ce294b4249
* changed to struct based register access for mc1322x
2013-04-02 02:06:24 +02:00
Oliver Hahm
9556ca3e7c
* split up syscalls in arm and lpc specific code
2013-04-02 02:04:19 +02:00
Oliver Hahm
2177b130d7
* added header and preliminary hwtimer code for mc1322x
...
* renamed start to startup
2013-04-01 02:11:43 +02:00
Oliver Hahm
5ae8c46c88
* moved profiling code to lpc specific part and added includes to cpu Makefile
2013-04-01 02:10:26 +02:00
Oliver Hahm
cc68d7caa6
* assuming size_t to be always unsigned
2013-04-01 00:46:17 +02:00
Oliver Hahm
efd73d735b
* initial not yet compiling(!) support for mc1322x
2013-04-01 00:18:52 +02:00
Oliver Hahm
f13ef5f500
* restructured cpu folder to distinguish between arm and lpc common files
2013-04-01 00:18:07 +02:00
Oliver Hahm
a918a9ddde
* removed include of signal.h
2013-04-01 00:13:19 +02:00
Oleg
1ee0196ef4
Merge pull request #33 from mikoff/master
...
updated Chronos support
2013-03-31 13:08:14 -07:00
Oliver Hahm
ad0b7a852d
* convert to coding conventions
2013-03-31 20:48:49 +02:00
mikoff
4f638eb887
All files, which used by chronos board were edited according to new texas instruments headers, all warnings fixed
2013-03-30 21:44:16 +01:00
Oliver Hahm
e6177e811a
* moved cpu and board specific parts to corresponding Makefiles
...
* introduced variable for cpu folder
2013-03-23 18:38:12 +01:00
Ludwig Ortmann
671cb6560f
native cc110x_ng placebo
2013-03-21 17:08:41 +01:00
Ludwig Ortmann
1197314093
native cpu fixes
...
init hwtimer with interrupts enabled
more error checking for hwtimer
fix signal handler init in hwtimer
error checking for irq (not necessary yet afaik)
2013-03-21 16:55:57 +01:00
Benjamin Valentin
15d6070ad6
fix bug introduced by 7cef6c4655
...
stack_start used to be stack_start + stack_size, so re-setting stk to stack_start would set the pointer to the *end* of the stack instead of the beginning.
2013-03-19 16:57:32 +01:00
Oleg
ec11e9b1f3
Merge pull request #26 from LudwigOrtmann/master
...
added and improved doxygen documentation
2013-03-13 21:07:51 -07:00
Ludwig Ortmann
1a628ee810
remove unused define
2013-03-13 22:01:04 +01:00
Ludwig Ortmann
f8f9557b0b
fix error message
2013-03-13 22:00:41 +01:00
Ludwig Ortmann
175300e58c
add native cpu doxygen documentation,
...
also fix and improve some of the existing
2013-03-13 21:56:56 +01:00
Oliver Hahm
7cef6c4655
* adapted thread_stack_init() for ARM and msp430 to the new prototype introduced by bd5b46628f
2013-03-13 16:49:23 +01:00
Ludwig Ortmann
8019551694
renamed makefiles within Makefiles
2013-03-12 16:03:37 +01:00
Ludwig Ortmann
3ec4800ae8
renamed makefiles
2013-03-12 15:44:12 +01:00
Ludwig Ortmann
f8973bb007
Merge remote-tracking branch 'upstream/master'
2013-03-12 15:23:24 +01:00
Oliver Hahm
0d06e1bc18
Merge branch 'master' of github.com:RIOT-OS/RIOT
2013-03-10 16:46:46 +01:00
Oliver Hahm
7a4dec1830
* replaced new Makefile name in Makefiles
2013-03-09 23:47:21 +01:00
Oliver Hahm
5ffe5a9c27
* renamed makefiles to Makefile
2013-03-09 23:45:56 +01:00
Oleg Hahm
2ed63bd5c6
* removed outdated (and probably confusing) FeuerWhere project as an author
2013-03-08 11:30:23 +01:00
Oleg Hahm
2277b366b2
* removed outdated occurrences of (u|µ)kleos and FeuerWare
2013-03-07 20:51:26 +01:00
Oleg Hahm
02897cbd1d
* removed unnecessary includes from msp430-common files
2013-03-07 19:23:51 +01:00
Ludwig Ortmann
144ebba9ca
fix some compiler warnings
2013-03-07 13:53:14 +01:00
Ludwig Ortmann
795ab695c0
copyright preambel
2013-03-06 10:29:49 +01:00
Ludwig Ortmann
d65536f77b
native cpu initial import
2013-03-06 01:08:15 +01:00
Oleg Hahm
d31ee82518
* removed legacy projects folder and Jamfiles
2013-02-27 19:08:16 +01:00
Oliver Hahm
82f2e3d4e0
* added missing makefiles for msb430h
...
* updated some makefiles and fixed includes for msb430h
2013-02-11 22:10:03 +01:00
Oleg Hahm
5df0bd0cc4
* updated and integrated makefiles
...
* added some auto dependencies
2013-02-08 17:37:02 +01:00
Oleg Hahm
3791039974
* integrated makefiles
...
* fixed some prototypes
* restructured sys
2013-02-06 13:20:21 +01:00
Oliver Hahm
55bb484b22
[cpu arm_common]
...
* added usb ram as heap3
* some feuerware merge adaptation
[projects test_suite]
* fixed some test scripts
2012-11-08 11:37:29 -05:00
Oliver Hahm
e49a17f4f7
Merge branch 'feuerware-integration'
2012-11-07 15:25:25 -05:00
Oliver Hahm
92281753ad
Merge branch 'stable'
...
Conflicts:
core/sched.c
sys/auto_init.c
2012-11-05 19:15:57 -05:00
Oliver Hahm
4433b5cf5b
[cpu cc430 gpioint]
...
* some improvements to the debouncing
2012-11-05 18:43:03 -05:00
Oliver Hahm
a20088f6e8
[core sched]
...
* fixed thread_getlastpid()
* enable interrupts again in thread_sleep() to avoid getting stuck w/
disabled interrupts
[cpu lpc2387]
* added hwtimer as dependency for MCI driver
[project test_*]
* fixed some expect scripts
2012-11-01 13:18:17 +01:00
Oliver Hahm
918a31cf8c
[core hwtimer] [cpu arm]
...
* adapted core and arm cpu
2012-03-08 18:58:39 +01:00
Oliver Hahm
b051659d71
[drivers adc]
...
* added lpc2387 adc driver and generic interface
2012-02-16 22:14:47 +01:00
Oliver Hahm
09721a2230
[cpu arm_common hwtimer]
...
* declared inline function as static as linker cannot find it otherwise
2012-01-07 18:47:00 +01:00
Oliver Hahm
2af5835d21
[cpu arm_common + tools toolchains]
...
* updated newlib and gcc
* removed unnecessary compiler flags for soft-float and VFP
[cpu lpc2387]
* fixed broken Jamfile
2012-01-04 17:46:28 +01:00
Oliver Hahm
c3d24e2057
core/
2011-12-28 11:37:05 +01:00
Oliver Hahm
a6257e5236
[cpu arm_common profiling]
...
* some fixes and more documentation
2011-12-28 11:18:11 +01:00
Oliver Hahm
7b1b145b4f
[cpu lpc2387]
...
* added mci driver
[sys shell]
* added commands for memory card access
2011-12-12 17:50:22 +01:00
Oliver Hahm
1213b0a4fe
* changed file endings from dos to unix
...
* assigned ctors and dtors sections to ram region
2011-08-31 10:49:26 +02:00
Oliver Hahm
f75b18fb29
* merged from stable
2011-08-30 17:42:05 +02:00
Oliver Hahm
ecec50e905
[cpu lpc3487]
...
* removed unnecessary from linkerscript
2011-06-27 09:41:56 +02:00
Oliver Hahm
15d27d8244
* Wiselib update for the linekrscript
...
* some minor changes in vtimer
2011-06-24 18:54:20 +02:00
Oliver Hahm
96206b10a1
Merge branch 'master' of ssh://ukleos.des-mesh.net/home/git/ukleos
2011-03-25 11:42:33 +01:00
Oliver Hahm
bc23a41a30
* some changes to chronos (not yet finished)
2011-03-18 15:59:50 +01:00
Stephan Zeisberg
5abef6daf2
changed types irq_callback, hashtable, posix_io, s_display_flags, seq_buffer_entry, tcb, toprint to type_t"
2011-03-08 11:43:21 +01:00
Stephan Zeisberg
6a96de0d2f
changed msg to msg_t
2011-03-08 10:54:40 +01:00
Oliver Hahm
d96783a66e
[cpu/arm_common/profiling]
...
* fixed get_index function
2011-01-31 18:36:06 +01:00
Oliver Hahm
4533726214
* introduced energy profiling (yet in a very early state)
2011-01-31 18:25:20 +01:00
Oliver Hahm
be71c14f04
[cpu/cc430]
...
* added adc driver for cc430
2010-12-17 13:20:29 +01:00
9e58c8bcb7
*watch: chronos watch application initial checkin
2010-12-16 18:21:24 +01:00
Oliver Hahm
b416fef56b
[cpu/cc430]
...
* fixed debouncing for gpioint
2010-12-16 18:09:40 +01:00
Oliver Hahm
08295b04ca
[cpu/cc430]
...
* fixed some bugs in gpioint
2010-12-16 17:11:23 +01:00
Oliver Hahm
d499b5d2c8
[cpu/cc430/ drivers/gpioint]
...
* refactored port interrupt handling
2010-12-15 15:48:50 +01:00
Oliver Hahm
33b68f3744
* moved flashrom from msp430-common to msb430x16x
2010-12-14 16:44:32 +01:00
Oliver Hahm
13767043e7
[cpu/cc430/gpioint]
...
* introduced gpioint to make buttons usable
2010-12-14 00:24:42 +01:00
Oliver Hahm
ddcbd10a03
[RTC]
...
* added a general RTC header
* added RTC support to chronos
2010-12-13 01:29:46 +01:00
Oliver Hahm
ec6a794143
[cc110x_ng]
...
* fuxed transceiver driver for chronos
* some more stuff
2010-12-10 18:00:31 +01:00
Oliver Hahm
830f17246c
[Chronos]
...
* changed display driver interface from uint8_t* to char*
* fixed hardware timer interrupt
* ported cc1100 driver
* added simple test application for radio
[msb430]
* fixex config and flashrom
[cc110x_ng]
* removed dependency from sysconfig
2010-12-09 13:24:24 +01:00
Oliver Hahm
c750108ca5
[cpu/cc430 cpu/msp430-common]
...
* fixed timera1 irq
2010-12-08 18:18:06 +01:00
Oliver Hahm
8304a8ae7b
[board/msb-430-common board/eZ430-Chronos cpu/msp430*]
...
* reorganized msp430 based cpu folders
2010-12-08 12:16:49 +01:00
b9a52bd231
* msba2 bootloader code fix
2010-12-06 16:12:58 +01:00
Oliver Hahm
e7372b21a9
[board config]
...
* made config optional
2010-12-06 13:19:31 +01:00
Oliver Hahm
1eec8e170e
* introduced flashrom driver for msb430
...
* restructured some files concerning flashrom access
* added some ifdefs to shell commands
2010-12-03 22:22:58 +01:00
Oliver Hahm
fb1cb91c75
[board/msp-430-common board/msba2 core/]
...
* introduced dummy function for msp-430 config-save
* moved sysconfig from board to core
[sys/transceiver cpu/]
* moved some buffer size defines to cpu dependent parts
* some cleanups
2010-12-03 18:42:03 +01:00
Oliver Hahm
4a2c58bbba
[drivers/cc110x_ng sys/transceiver]
...
* updated interface to switch transceiver off and back to rx mode
* removed some debugging stuff
2010-12-02 15:38:28 +01:00
Oliver Hahm
a46cdf189a
* introduced identifiers (include shell commands to get and set)
...
* introduced a system wide configuration
2010-12-01 16:26:48 +01:00
Oliver Hahm
5ebbd2c92e
[cpu/arm_common cpu/lpc2387]
...
* added a iap driver
2010-11-29 19:19:59 +01:00
Oliver Hahm
14e2a4718f
* changed rtc interface
2010-11-17 17:20:40 +01:00
Oliver Hahm
3b9e9befa9
* some cosmetics and lpm flags for UART
2010-11-08 21:39:30 +01:00
Oleg
88c0ec84ee
* added set offset shell command for sht11
...
* introduced command separator for pyterm
* some cosmetics
2010-11-07 23:18:41 +01:00
Oliver Hahm
3b218ec24a
* changed API for rtc
...
* added drivers directory to doxygen file
* added missing include to sht11 header
* added rtc and sht11 support to default project
* added rtc to auto_init
* added rtc and sht11 support to shell
2010-11-04 18:16:39 +01:00
Oliver Hahm
88d3421ee7
* missing part of last commit
2010-11-01 17:38:23 +01:00
Oliver Hahm
fb4069078b
* removed old reference to clock module from rtc
...
* added documentation for sht11 and swtimer
2010-10-28 15:28:34 +02:00
1e238e4131
* massive name changes
2010-10-28 11:29:03 +02:00
57dc520af9
* change default lpc2387 stacksize to 4500 bytes
2010-10-25 15:31:02 +02:00
57c9d3423f
* fix kernel name
2010-10-11 17:32:58 +02:00
a076a765b3
* oneway_malloc: added realloc
2010-09-30 16:07:00 +02:00
9e930037f8
* export hwtimer function to set counter register value
2010-09-24 16:27:10 +02:00
91ae1eb6fd
* import from old firekernel repository
2010-09-22 15:10:42 +02:00