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

340 Commits

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