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

1060 Commits

Author SHA1 Message Date
Ludwig Ortmann
37c9b8ebfd fix spelling in msg.h 2013-10-28 12:57:05 +01:00
Ludwig Ortmann
f1b89df8d8 explain the "brainfuck condition" 2013-10-28 12:57:02 +01:00
Ludwig Ortmann
5e6cc92291 harmonize msg.c DEBUG statements
Use same order (function: [thread_name:] message) throughout msg.c.
Begin message with a capital letter.
2013-10-27 08:37:18 +01:00
Ludwig Ortmann
2d1303763e fix spelling in msg.c 2013-10-27 08:13:27 +01:00
Ludwig Ortmann
089a15c110 merge thread_measure_stack_usage declarations 2013-10-24 16:22:55 +02:00
Christian Mehlis
495246d2d4 add thread_getname function 2013-10-17 15:25:43 +02:00
Christian Mehlis
9c70e4501c only include debug functions if needed 2013-10-11 14:21:47 +02:00
Kévin Roussel
d2535f3841 Added missing definition of 'PRIu32' in some RIOT include files
to avoid a bug in mspgcc's standard library
2013-10-09 15:10:22 +02:00
Christian Mehlis
9ace6b4807 add missing inttypes include for PRI macros 2013-09-26 21:10:57 +02:00
Christian Mehlis
21ffebc197 add check for a not existing thread 2013-09-11 19:58:54 +02:00
Christian Mehlis
6da0375197 fix macros in the hwtimer 2013-08-26 21:36:34 +02: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
Oleg Hahm
4d2de87724 Merge pull request #135 from OlegHahm/sched_fixes
Improving sched.h documentation
2013-08-14 06:43:09 -07:00
Oleg Hahm
2981fe0844 Improving sched.h documentation 2013-08-14 14:39:09 +02:00
Oleg Hahm
9fac7c3f5f Merge pull request #134 from OlegHahm/sched_fixes
Scheduler callback
2013-08-14 04:55:27 -07:00
Oleg Hahm
1709fa600c re-added the scheduler callback (the actual call was missing) 2013-08-14 13:53:49 +02:00
Oleg Hahm
7dbb97e376 added documentation for sched.h 2013-08-14 13:53:43 +02:00
Oleg Hahm
932c626c6b moved prototype for sched_register_cb() from C file to header 2013-08-14 13:09:43 +02:00
Oleg Hahm
570c0e717d removed unused (and ambiguous) definitions of active_thread and sched_threads in kernel_init.c 2013-08-14 13:09:43 +02:00
Oleg Hahm
b6fe284331 fix priority comparison in sched_switch 2013-08-12 19:27:04 +02:00
Christian Mehlis
735c41786d remove unused static function 2013-08-12 11:25:07 +02:00
Christian Mehlis
6428bd5546 use std include style 2013-08-12 11:24:57 +02:00
Christian Mehlis
00d618634c add missing include for mutex 2013-08-12 11:24:48 +02:00
Christian Mehlis
a1ce242ffe Merge pull request #113 from mehlis/oneway-calloc
add oneway calloc
2013-08-12 00:55:53 -07:00
Martin Lenders
78db093d09 Merge pull request #105 from OlegHahm/hwtimer_wait
fix for #25 by using mutexes for hwtimer_wait
2013-08-11 11:55:08 -07:00
Christian Mehlis
764e0027f1 add oneway calloc 2013-08-10 11:21:25 +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
Oleg Hahm
3f95d72828 fix for #25 by using mutexes for hwtimer_wait 2013-08-08 20:11:57 +02:00
Oleg Hahm
88d2357295 fix warnings from #62 2013-08-08 18:34:51 +02:00
LudwigOrtmann
07c7e8ccd3 Merge pull request #90 from OlegHahm/milestone_1_0_fixes
Milestone 1 0 fixes
2013-08-08 06:29:22 -07: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
836ae0d291 fix #11: initialize queue_node_t n.next in msg_send() 2013-08-02 01:31:00 +02:00
Christian Mehlis
62994314aa in msg_send_receive: return result from msg_send 2013-08-01 22:03:55 +02:00
Oleg Hahm
f7ecc704a4 fixed includes and include pathes 2013-07-29 01:24:02 +02:00
Oleg Hahm
0bd81f14a4 remove header guard from debug.h and repaired debugging on a per file base 2013-07-25 21:56:37 +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
37467de0d2 fixed printf formatter 2013-07-23 13:39:50 +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
c5e62e238b add missing include 2013-07-16 15:27:19 +02:00
Christian Mehlis
69c526f44d removed redefined ENABLE_DEBUG 2013-07-16 15:27:19 +02:00
Christian Mehlis
190e24116d use int explicitly 2013-07-09 13:41:08 +02:00
Christian Mehlis
96cbf4019e make internal function static 2013-07-09 13:40:52 +02:00
Ludwig Ortmann
7dd9ac6be0 Add msg_try_receive 2013-07-05 23:32:07 +02:00
Christian Mehlis
9549c29ccb fix missing includes 2013-06-30 01:53: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
5bae4f841d added one-time-initialization guard to transceiver 2013-06-24 22:12:57 +02:00
Oliver Hahm
f359453083 fixed doxygen value 2013-06-21 22:37:14 +02:00
Oliver Hahm
ffeb6f8523 fixed coding conventions (correctly this time) 2013-06-20 18:18:29 +02:00
Oliver Hahm
0d6d8390c0 * updated copyright and license headers in various files 2013-06-18 17:21:38 +02:00
Oliver Hahm
d640cf4298 fixed missing include 2013-06-14 19:41:48 +02:00
Oliver Hahm
fdd1d21e8d Merge branch 'master' into wsn430 2013-06-14 19:41:23 +02:00
Christian Mehlis
a57c25499b remove recursive include 2013-06-13 21:23:14 +02:00
Oliver Hahm
40edc25022 * cast main function in kernel_init to match prototype 2013-06-10 16:23:42 +02:00
Christian Mehlis
8f74612762 main should always return int
this fixes some compiler warnings
2013-06-09 18:02:58 +02:00
Christian Mehlis
b41fd19216 prevent double include of debug.h 2013-06-09 18:02:30 +02:00
Christian Mehlis
42063530c0 clarify: while loop without body is correct here 2013-06-09 17:52:02 +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
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
Oliver Hahm
e69da952de * forbid the usage of '0' as an parameter for number_of_the_lowest_bit() 2013-04-16 14:00:49 +02:00
Martin Lenders
07e8ac9c19 Remove swtimer
see #4
2013-04-11 15:24:15 +02:00
Oleg Hahm
349bec1f0f * added documentation to kernel_intern.h 2013-03-27 16:58:07 +01:00
Oleg Hahm
e8af0c42c3 * created prototype for cpu_switch_context_exit() 2013-03-27 14:53:38 +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
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
68c9a60348 * fixed a copy&paste error in hwtimer_arch.h 2013-03-07 16:33:33 +01:00
Ludwig Ortmann
d65536f77b native cpu initial import 2013-03-06 01:08:15 +01:00
Oleg Hahm
48e5df9bef * some clean up
* assert active_thread pointer before saving it
2013-02-28 18:11:20 +01:00
Oleg Hahm
5aa00a4f8b * fixed typo in readme
* fixed documentation in irq.h
* moved tools folder to dist
* added check for disk space in build_gnuarm script
* fixed gcc check in this script, too
2013-02-27 20:22:19 +01:00
Oleg Hahm
d31ee82518 * removed legacy projects folder and Jamfiles 2013-02-27 19:08:16 +01:00
Oliver Hahm
9df46b3507 * fixed makefiles for msb-430h support 2013-02-15 22:17:42 +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
4162a2aff8 [core thread]
* added thread_getlastpid() to header
2012-11-13 17:26:43 +01:00
Oliver Hahm
bf96b81f53 [core include]
* added header for low-level io operations
2012-11-08 18:56:03 -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
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
2109f7dc86 [core thread]
* added thread_getlastpid
2012-10-18 18:08:40 +02:00
Oliver Hahm
a30a18b3a8 [core msg]
* updated documentation of msg_send_receive()
2012-06-28 16:48:17 +02:00
Oliver Hahm
ffc7976aea [core config]
* added prototype for config_load to header
2012-06-06 10:51:38 +02:00
Oliver Hahm
918a31cf8c [core hwtimer] [cpu arm]
* adapted core and arm cpu
2012-03-08 18:58:39 +01:00
Oliver Hahm
551d684155 Merge branch 'master' of ssh://ukleos.org:2222/home/git/ukleos 2012-02-24 14:49:58 +01:00
Oliver Hahm
0d6d3e2c43 [board msba2-common] [sys chardev_thread] [sys shell] [driver cc110x_ng] [core msg]
* some cosmetics and cleanups
2012-02-16 21:33:41 +01:00
Oliver Hahm
961b4df179 [core cib] [projects default] [sys shell]
* fixed some minor issues found by splint
2012-02-14 14:49:45 +01:00
Oliver Hahm
59a46e0e88 Merge branch 'sixlowpan'
Conflicts:
	cpu/arm_common/hwtimer_cpu.c
	sys/include/vtimer.h
	sys/vtimer.c
2012-01-11 17:02:43 +01:00
Oliver Hahm
75b4c946ac [core hwtimer]
* removed double function prototype
2012-01-04 17:44:14 +01:00
Oliver Hahm
e89dc07a05 core/ 2011-12-28 11:41:33 +01:00
Oliver Hahm
0fd8127fab [core msg]
* updated IPC documentation
2011-12-01 16:27:23 +01:00
Oliver Hahm
1e0516fe73 [core msg]
* updated documentation
2011-12-01 14:11:09 +01:00
Oliver Hahm
a5d1d6d26b [core scheduler]
* added optional callback for scheduler timing statistics
2011-10-05 15:13:34 +02:00
mlenders
9521142842 merged 2011-07-10 22:49:41 +02:00
Oliver Hahm
706d982705 [core kernel]
* fixed include search directive for internal header file
2011-06-27 11:34:21 +02:00
Oliver Hahm
5a0e412249 [core sched]
* removed declaration from header file
2011-06-24 17:53:09 +02:00
Oliver Hahm
fa94cecf1f [core mutex]
* fixed bug from r5b3209ea
2011-04-14 13:47:24 +02:00
Oliver Hahm
23cd123bdb [core thread]
* fixed wrong struct name in macro
2011-04-04 13:15:21 +02: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
Stephan Zeisberg
4bce433513 branch merge 2010-12-13 11:21:22 +01:00
5838ce604b * hwtimer: switched to lifo 2010-12-10 16:50:16 +01:00
d5ff633d07 * initial checkin of last in first out array queue (lifo) 2010-12-10 16:49:29 +01:00
88ccc555dc * moved config to sys, split away board specifics 2010-12-06 17:32:27 +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
a46cdf189a * introduced identifiers (include shell commands to get and set)
* introduced a system wide configuration
2010-12-01 16:26:48 +01:00
Stephan Zeisberg
9efaa3bbb6 branch merge fixes 2010-11-30 11:37:44 +01:00
Stephan Zeisberg
8264cde342 branch merge 2010-11-30 11:04:57 +01:00
3e70da172e * removed unneccessary double definition of struct 2010-11-26 15:12:47 +01:00
3a83ef0824 * msg queue optimization 2010-11-26 15:02:15 +01:00
5467d08536 * hwtimer: export hwtimer_now 2010-11-26 14:34:10 +01:00
cb79a7a237 * first implementation of msg queues 2010-11-26 14:21:48 +01:00
cb1d5c7ab3 * added circular index buffer implementation 2010-11-26 13:15:01 +01:00
d40052e24b * cosmetics 2010-11-25 16:22:46 +01:00
0441c5a4a4 * some more mutex related changes 2010-11-11 11:22:45 +01:00
21e6aaff24 * fix priority queue insert 2010-11-11 11:21:58 +01:00
dad5bf866c * removed unused prio function 2010-11-11 09:57:54 +01:00
8b242c74a8 * mutex changes 2010-11-11 09:55:08 +01:00
9122445c27 * align tcb on 32bit boundary 2010-11-09 17:01:52 +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
Oleg
416029d2c0 * changed default project from "hello-world" to "default"
* increased main priority to the half of maximum priority
* introduced define for minimum stack size
* decreased stack size for uart0 thread
* merged commands for rtc shell module to one command (date)
* cleanup of header includes
2010-11-05 19:33:45 +01:00
ba03f610c4 * fix status size 2010-11-04 17:06:03 +01:00
2bf64ea4d0 * make doc reflect latest API change 2010-11-04 16:51:04 +01:00
67f72d43ee Merge branch 'master' of ssh://ukleos.org/home/git/ukleos 2010-11-04 16:48:14 +01:00
eff0b1980f * API CHANGE! changed thread_create so it allocates tcb on stack, removing first argument 2010-11-04 16:47:24 +01:00
Oliver Hahm
d1bff5cb3d Merge branch 'master' of ssh://ukleos.des-mesh.net/home/git/ukleos 2010-11-04 16:23:11 +01:00
Oliver Hahm
e335ccfb43 * fixed wrong return value for thread_wakeup
* changed hwtimer_wait to use thread_sleep instead of mutexes
2010-11-04 16:21:39 +01:00
7f8baa8818 * removed unneccessary priority names 2010-11-04 14:21:12 +01:00
dc094d442b * fix msg_reply_int 2010-11-03 11:37:32 +01:00
d48c1e6e16 * fix msg_reply_int 2010-11-03 11:37:20 +01:00
711ae3b686 * thread: add some more debug statements 2010-11-02 11:40:10 +01:00
3b46b2d2af * fix stack assignment mixup for main / idle threads 2010-11-02 11:06:58 +01:00
62035f36c8 * add some more debug statements 2010-11-01 15:53:33 +01:00
0f4a72974a * hwtimer.c cosmetics 2010-11-01 15:50:31 +01:00
cc800bcb13 * honour previous IRQ state in error path 2010-11-01 13:45:30 +01:00
Oliver Hahm
5b3209ea19 * check for null pointer in mutex wake waiters function 2010-11-01 13:29:40 +01:00
Oliver Hahm
f38f32f6cc * added support for sht11 for msb-430-common
* fixed some jamfile isssues for msb-430
* fixed arch32 detection for scheduler
* changed sht11 driver to be platform independent
2010-10-29 17:32:03 +02:00
11bc939d67 * merge fixes 2010-10-28 11:31:19 +02:00
1e238e4131 * massive name changes 2010-10-28 11:29:03 +02:00
1206f6fd5e * massive name changes 2010-10-28 11:22:57 +02:00
273f281a2f * msg: fix msg_reply 2010-10-28 10:20:06 +02:00
7a8a07fe08 * msg: fix msg_reply 2010-10-28 10:12:45 +02:00
Stephan Zeisberg
796544b650 fixed buf in msg_reply function 2010-10-27 21:30:03 +02:00
f945b72067 * API CHANGE: thread_create no longer uses malloc 2010-10-25 15:40:01 +02:00
cfccf0f2ca * remove mu character from kernel greeting line. 2010-10-11 17:05:33 +02:00
a076a765b3 * oneway_malloc: added realloc 2010-09-30 16:07:00 +02:00
867fd7f293 * pull in VERY useful defines in thread.h 2010-09-30 15:08:50 +02:00
52bca573f4 * make msg_send use IRQ api
* msg_send_int now sets sender_pid to receiver_pid
2010-09-24 16:24:13 +02:00
72785295a3 * cosmetic 2010-09-24 16:23:54 +02:00
e8ad60671b * fixed kernel name in welcome message 2010-09-24 16:23:31 +02:00
91ae1eb6fd * import from old firekernel repository 2010-09-22 15:10:42 +02:00