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

310 Commits

Author SHA1 Message Date
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