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