arighi [Tue, 30 Mar 2010 10:40:27 +0000 (10:40 +0000)]
lm3s1968: return the correct CPU frequency in clock_get_rate().
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@3324
38d2e660-2303-0410-9eaa-
f027e97ec537
arighi [Tue, 30 Mar 2010 10:38:45 +0000 (10:38 +0000)]
lm3s1968: integrate the hardware timer driver into the main timer module.
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@3323
38d2e660-2303-0410-9eaa-
f027e97ec537
duplo [Tue, 30 Mar 2010 10:28:42 +0000 (10:28 +0000)]
Fix the #133 (projects created with older versions of the Wizard should be edited to let the modification works, otherwise the wizard couldn't open the project).
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@3322
38d2e660-2303-0410-9eaa-
f027e97ec537
duplo [Tue, 30 Mar 2010 09:44:23 +0000 (09:44 +0000)]
Fix random file inclusion in project editing.
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@3321
38d2e660-2303-0410-9eaa-
f027e97ec537
duplo [Tue, 30 Mar 2010 09:09:59 +0000 (09:09 +0000)]
Add WaitCursor when the Wizard is doing something complex into module page.
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@3320
38d2e660-2303-0410-9eaa-
f027e97ec537
arighi [Tue, 30 Mar 2010 08:32:44 +0000 (08:32 +0000)]
Fix elif with no expression.
An elif condition without expression may trigger the following build
error with recent toolchains.
In file included from ./bertos/drv/flash25.c:53:
bertos/drv/flash25.h:103: error: #elif with no expression
make: *** [obj/armtest/./bertos/drv/flash25.o] Error 1
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@3319
38d2e660-2303-0410-9eaa-
f027e97ec537
arighi [Mon, 29 Mar 2010 22:11:19 +0000 (22:11 +0000)]
lm3s1968: add debugging functionality on UART0.
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@3318
38d2e660-2303-0410-9eaa-
f027e97ec537
arighi [Mon, 29 Mar 2010 22:11:08 +0000 (22:11 +0000)]
ARM: add LM3S Cortex-M3 core family detection.
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@3317
38d2e660-2303-0410-9eaa-
f027e97ec537
arighi [Mon, 29 Mar 2010 22:11:03 +0000 (22:11 +0000)]
lm3s1968: driver names refactoring.
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@3316
38d2e660-2303-0410-9eaa-
f027e97ec537
batt [Mon, 29 Mar 2010 22:01:01 +0000 (22:01 +0000)]
LPC2378: add IO definitions.
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@3315
38d2e660-2303-0410-9eaa-
f027e97ec537
batt [Mon, 29 Mar 2010 21:56:32 +0000 (21:56 +0000)]
LPC2378: fix path in ld-script
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@3314
38d2e660-2303-0410-9eaa-
f027e97ec537
batt [Mon, 29 Mar 2010 21:55:47 +0000 (21:55 +0000)]
LPC2378: pre-compute correct checksum.
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@3313
38d2e660-2303-0410-9eaa-
f027e97ec537
batt [Mon, 29 Mar 2010 21:55:09 +0000 (21:55 +0000)]
Add LPC2378 CPU detection.
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@3312
38d2e660-2303-0410-9eaa-
f027e97ec537
batt [Mon, 29 Mar 2010 21:14:25 +0000 (21:14 +0000)]
Add IRQ vectors for LPC2xxx.
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@3311
38d2e660-2303-0410-9eaa-
f027e97ec537
batt [Mon, 29 Mar 2010 21:14:03 +0000 (21:14 +0000)]
Increase readability.
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@3310
38d2e660-2303-0410-9eaa-
f027e97ec537
lottaviano [Mon, 29 Mar 2010 21:06:48 +0000 (21:06 +0000)]
Add timer support for AVR 328P (Arduino)
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@3309
38d2e660-2303-0410-9eaa-
f027e97ec537
lottaviano [Mon, 29 Mar 2010 21:06:33 +0000 (21:06 +0000)]
doc: Add documentation for various ser_ specific functions
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@3308
38d2e660-2303-0410-9eaa-
f027e97ec537
batt [Mon, 29 Mar 2010 20:57:12 +0000 (20:57 +0000)]
Add IRQ vectors for AT91.
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@3307
38d2e660-2303-0410-9eaa-
f027e97ec537
batt [Mon, 29 Mar 2010 20:56:42 +0000 (20:56 +0000)]
Add generic ARM7TDMI crt.
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@3306
38d2e660-2303-0410-9eaa-
f027e97ec537
batt [Mon, 29 Mar 2010 15:56:13 +0000 (15:56 +0000)]
Add replace line into the custom user mk generator function
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@3305
38d2e660-2303-0410-9eaa-
f027e97ec537
duplo [Mon, 29 Mar 2010 15:39:44 +0000 (15:39 +0000)]
Initial stub for filesystem query cache.
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@3304
38d2e660-2303-0410-9eaa-
f027e97ec537
arighi [Mon, 29 Mar 2010 14:40:43 +0000 (14:40 +0000)]
lm3s1968: try to evaluate the correct SYSDIV value depending on the desired CPU frequency.
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@3302
38d2e660-2303-0410-9eaa-
f027e97ec537
arighi [Mon, 29 Mar 2010 14:11:23 +0000 (14:11 +0000)]
lm3s1968: clocking driver.
This driver allows to set and retrieve the processor clock rate.
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@3301
38d2e660-2303-0410-9eaa-
f027e97ec537
arighi [Mon, 29 Mar 2010 14:11:21 +0000 (14:11 +0000)]
introduce UNREACHABLE() macro.
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@3300
38d2e660-2303-0410-9eaa-
f027e97ec537
duplo [Mon, 29 Mar 2010 14:06:41 +0000 (14:06 +0000)]
Avoid the double csrc list generation.
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@3298
38d2e660-2303-0410-9eaa-
f027e97ec537
duplo [Mon, 29 Mar 2010 13:20:38 +0000 (13:20 +0000)]
Create a 'fake' VERSION file when editing a project (if it's not present) to avoid the UNKNOWN icon and title.
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@3294
38d2e660-2303-0410-9eaa-
f027e97ec537
duplo [Mon, 29 Mar 2010 12:53:54 +0000 (12:53 +0000)]
Add Wizard version check (to change the way the project file is loaded)
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@3293
38d2e660-2303-0410-9eaa-
f027e97ec537
duplo [Mon, 29 Mar 2010 10:46:24 +0000 (10:46 +0000)]
Use the local BeRTOS version instead of the original one
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@3292
38d2e660-2303-0410-9eaa-
f027e97ec537
duplo [Mon, 29 Mar 2010 10:22:34 +0000 (10:22 +0000)]
Add VERSION file into the project directory.
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@3291
38d2e660-2303-0410-9eaa-
f027e97ec537
batt [Sun, 28 Mar 2010 13:20:41 +0000 (13:20 +0000)]
Add LPC2378 linker script.
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@3290
38d2e660-2303-0410-9eaa-
f027e97ec537
batt [Sun, 28 Mar 2010 13:12:58 +0000 (13:12 +0000)]
Use new script.
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@3289
38d2e660-2303-0410-9eaa-
f027e97ec537
batt [Sun, 28 Mar 2010 13:07:28 +0000 (13:07 +0000)]
Typos.
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@3288
38d2e660-2303-0410-9eaa-
f027e97ec537
batt [Sun, 28 Mar 2010 13:06:56 +0000 (13:06 +0000)]
Rename to a more generic name.
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@3287
38d2e660-2303-0410-9eaa-
f027e97ec537
batt [Sun, 28 Mar 2010 12:26:22 +0000 (12:26 +0000)]
Add C++ sections.
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@3286
38d2e660-2303-0410-9eaa-
f027e97ec537
batt [Sun, 28 Mar 2010 10:48:23 +0000 (10:48 +0000)]
Add missing file.
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@3285
38d2e660-2303-0410-9eaa-
f027e97ec537
batt [Sun, 28 Mar 2010 10:47:53 +0000 (10:47 +0000)]
Fix include directory.
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@3284
38d2e660-2303-0410-9eaa-
f027e97ec537
batt [Sun, 28 Mar 2010 10:43:48 +0000 (10:43 +0000)]
Fix AT91SAM7_128 ram length.
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@3283
38d2e660-2303-0410-9eaa-
f027e97ec537
batt [Sun, 28 Mar 2010 10:42:40 +0000 (10:42 +0000)]
Refactor AT91SAM7 linker scripts.
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@3282
38d2e660-2303-0410-9eaa-
f027e97ec537
lottaviano [Fri, 26 Mar 2010 19:19:22 +0000 (19:19 +0000)]
Initial support for ATmega328P (Arduino Duemilanove).
Added cdef file for wizard, added cpu detection macros, serial debug is now working.
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@3281
38d2e660-2303-0410-9eaa-
f027e97ec537
arighi [Fri, 26 Mar 2010 16:12:45 +0000 (16:12 +0000)]
examples: add a simple LM3S1968 Cortex-M3 testcase.
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@3280
38d2e660-2303-0410-9eaa-
f027e97ec537
arighi [Fri, 26 Mar 2010 16:12:44 +0000 (16:12 +0000)]
lm3s1968: low-level timer driver (systick).
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@3279
38d2e660-2303-0410-9eaa-
f027e97ec537
arighi [Fri, 26 Mar 2010 16:12:43 +0000 (16:12 +0000)]
lm3s1968: define the architecture's startup routine.
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@3278
38d2e660-2303-0410-9eaa-
f027e97ec537
arighi [Fri, 26 Mar 2010 16:12:42 +0000 (16:12 +0000)]
lm3s1968: implement the IRQ manager.
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@3277
38d2e660-2303-0410-9eaa-
f027e97ec537
arighi [Fri, 26 Mar 2010 16:12:41 +0000 (16:12 +0000)]
cortex-m3: add basic support for the lm3s1968 board.
Add basic hardware definitions to support the lm3s1968 (Cortex-M3 based)
board.
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@3276
38d2e660-2303-0410-9eaa-
f027e97ec537
arighi [Fri, 26 Mar 2010 15:49:59 +0000 (15:49 +0000)]
Fix "Found unknown command" doxygen warnings.
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@3275
38d2e660-2303-0410-9eaa-
f027e97ec537
duplo [Fri, 26 Mar 2010 15:22:37 +0000 (15:22 +0000)]
Attempt to fix the BeRTOS Wizard running directory-related issue.
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@3274
38d2e660-2303-0410-9eaa-
f027e97ec537
rasky [Thu, 25 Mar 2010 16:31:12 +0000 (16:31 +0000)]
Extract correctly the data directory when the wizard is executed
through a symlink
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@3273
38d2e660-2303-0410-9eaa-
f027e97ec537
arighi [Thu, 25 Mar 2010 16:14:35 +0000 (16:14 +0000)]
at91sam7 example: add signal_test testcase.
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@3272
38d2e660-2303-0410-9eaa-
f027e97ec537
arighi [Thu, 25 Mar 2010 16:14:34 +0000 (16:14 +0000)]
signal_test: use kernel heap memory pool for the processes' stack if CONFIG_KERN_HEAP is enabled.
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@3271
38d2e660-2303-0410-9eaa-
f027e97ec537
arighi [Thu, 25 Mar 2010 14:56:25 +0000 (14:56 +0000)]
Use the new sig_send() and sig_post() primitives.
Replace the old sig_signal() calls with the new sig_send() and
sig_post() functions.
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@3270
38d2e660-2303-0410-9eaa-
f027e97ec537
arighi [Thu, 25 Mar 2010 14:56:23 +0000 (14:56 +0000)]
Introduce low-latency signals.
Now signals can be delivered synchronously via sig_send() or
asynchronously via sig_post().
The old sig_signal() primitive is maintained for backward compatibility
and it is directly mapped to sig_post().
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@3269
38d2e660-2303-0410-9eaa-
f027e97ec537
arighi [Thu, 25 Mar 2010 14:56:22 +0000 (14:56 +0000)]
Introduce proc_wakeup().
Add a new primitive in each scheduler to wakeup a process and
immediately dispatch it to the CPU.
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@3268
38d2e660-2303-0410-9eaa-
f027e97ec537
batt [Thu, 25 Mar 2010 14:01:02 +0000 (14:01 +0000)]
Remove bogus assembler options.
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@3267
38d2e660-2303-0410-9eaa-
f027e97ec537
duplo [Tue, 23 Mar 2010 15:44:25 +0000 (15:44 +0000)]
Patch submitted by Rasky.
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@3266
38d2e660-2303-0410-9eaa-
f027e97ec537
lottaviano [Tue, 23 Mar 2010 09:12:48 +0000 (09:12 +0000)]
doc: Clarify serial module documentation.
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@3265
38d2e660-2303-0410-9eaa-
f027e97ec537
batt [Mon, 22 Mar 2010 18:03:05 +0000 (18:03 +0000)]
Bump up version.
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@3263
38d2e660-2303-0410-9eaa-
f027e97ec537
batt [Mon, 22 Mar 2010 17:55:45 +0000 (17:55 +0000)]
Add more kernel tests.
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@3262
38d2e660-2303-0410-9eaa-
f027e97ec537
arighi [Mon, 22 Mar 2010 17:39:08 +0000 (17:39 +0000)]
demo: wait for a keypress event instead of sleeping for a second in hello_world() test.
This allows to correctly process GUI events during the hello_world()
test in the emulated demo.
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@3261
38d2e660-2303-0410-9eaa-
f027e97ec537
batt [Mon, 22 Mar 2010 17:29:41 +0000 (17:29 +0000)]
Demo: remove unneeded locks.
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@3260
38d2e660-2303-0410-9eaa-
f027e97ec537
batt [Mon, 22 Mar 2010 17:28:54 +0000 (17:28 +0000)]
Do not call schedule() inside idle loop.
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@3259
38d2e660-2303-0410-9eaa-
f027e97ec537
batt [Mon, 22 Mar 2010 17:28:28 +0000 (17:28 +0000)]
Add missing prototype.
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@3258
38d2e660-2303-0410-9eaa-
f027e97ec537
arighi [Mon, 22 Mar 2010 16:45:18 +0000 (16:45 +0000)]
demo: re-define custom schedule() function
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@3257
38d2e660-2303-0410-9eaa-
f027e97ec537
batt [Mon, 22 Mar 2010 16:29:37 +0000 (16:29 +0000)]
Add heap module.
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@3256
38d2e660-2303-0410-9eaa-
f027e97ec537
batt [Mon, 22 Mar 2010 16:13:13 +0000 (16:13 +0000)]
Rearrange kernel configurations order.
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@3255
38d2e660-2303-0410-9eaa-
f027e97ec537
arighi [Mon, 22 Mar 2010 11:56:51 +0000 (11:56 +0000)]
kdb: re-enable calling poor man's scheduler inside kbd_peek().
Restore the old behaviour of calling a custom schedule() function
(provided by the user) inside kbd_peek() if CONFIG_KBD_SCHED is enabled.
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@3254
38d2e660-2303-0410-9eaa-
f027e97ec537
batt [Fri, 19 Mar 2010 18:56:47 +0000 (18:56 +0000)]
Remove unneeded prototype.
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@3253
38d2e660-2303-0410-9eaa-
f027e97ec537
asterix [Fri, 19 Mar 2010 17:45:41 +0000 (17:45 +0000)]
Comply to log module.
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@3252
38d2e660-2303-0410-9eaa-
f027e97ec537
asterix [Fri, 19 Mar 2010 17:44:37 +0000 (17:44 +0000)]
Evalutate always log arguments.
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@3251
38d2e660-2303-0410-9eaa-
f027e97ec537
arighi [Fri, 19 Mar 2010 16:17:59 +0000 (16:17 +0000)]
Remove the idle process.
We can get rid of the idle process also with the preemptive kernel and
perform the idle loop inside proc_schedule().
In this way we can reduce the kernel memory footprint and better
optimize memory usage.
== avr-kern example ==
<before>
text data bss dec hex filename
24632 238 5713 30583 7777 images/avr-kern.elf
<after>
text data bss dec hex filename
24498 234 5521 30253 762d images/avr-kern.elf
== at91sam7x example ==
<before>
text data bss dec hex filename
42416 184 10120 52720 cdf0 images/at91sam7x.elf
<after>
text data bss dec hex filename
42228 184 9748 52160 cbc0 images/at91sam7x.elf
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@3250
38d2e660-2303-0410-9eaa-
f027e97ec537
arighi [Fri, 19 Mar 2010 16:17:57 +0000 (16:17 +0000)]
Add avr-kern example.
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@3249
38d2e660-2303-0410-9eaa-
f027e97ec537
arighi [Fri, 19 Mar 2010 14:30:08 +0000 (14:30 +0000)]
demo: make the GUI preemptive-safe.
Protect all the GUI operations, setting them as atomic, in order to make
them work correctly also with the preemptible kernel.
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@3248
38d2e660-2303-0410-9eaa-
f027e97ec537
arighi [Fri, 19 Mar 2010 13:32:06 +0000 (13:32 +0000)]
proc_test: define a distinct instance of test for each possible kernel configuration.
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@3247
38d2e660-2303-0410-9eaa-
f027e97ec537
arighi [Fri, 19 Mar 2010 13:32:05 +0000 (13:32 +0000)]
Allow to define "notest: all" to completely exclude some testcases from the nightly test.
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@3246
38d2e660-2303-0410-9eaa-
f027e97ec537
arighi [Fri, 19 Mar 2010 11:25:27 +0000 (11:25 +0000)]
demo: use kernel heap memory pool for the monitor stack if CONFIG_KERN_HEAP is enabled.
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@3245
38d2e660-2303-0410-9eaa-
f027e97ec537
arighi [Thu, 18 Mar 2010 15:46:25 +0000 (15:46 +0000)]
examples: update at91sam7 configuration.
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@3244
38d2e660-2303-0410-9eaa-
f027e97ec537
arighi [Thu, 18 Mar 2010 15:46:24 +0000 (15:46 +0000)]
proc_test: enlarge processes' stack size to KERN_MINSTACKSIZE * 3.
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@3243
38d2e660-2303-0410-9eaa-
f027e97ec537
arighi [Thu, 18 Mar 2010 15:46:23 +0000 (15:46 +0000)]
Silent some gcc "no previous prototype" build warnings.
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@3242
38d2e660-2303-0410-9eaa-
f027e97ec537
arighi [Thu, 18 Mar 2010 14:59:08 +0000 (14:59 +0000)]
Preemption: set default kernel quantum to 11 ms.
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@3241
38d2e660-2303-0410-9eaa-
f027e97ec537
arighi [Thu, 18 Mar 2010 14:54:41 +0000 (14:54 +0000)]
Parametric scheduler approach.
Define distinct functions for each implemented scheduler class. This is
a first step toward the "plugin-scheduler" approach.
In this way we can also get rid of mtask.c.
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@3240
38d2e660-2303-0410-9eaa-
f027e97ec537
arighi [Thu, 18 Mar 2010 14:54:40 +0000 (14:54 +0000)]
proc_test: fix a format build warning.
Fixed the following build warning:
bertos/kern/proc_test.c:220: warning: format ‘%d’ expects type ‘int’, but argument 4 has type ‘long unsigned int’
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@3239
38d2e660-2303-0410-9eaa-
f027e97ec537
arighi [Thu, 18 Mar 2010 11:50:00 +0000 (11:50 +0000)]
demo: increase default kernel heap size to 2MB.
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@3238
38d2e660-2303-0410-9eaa-
f027e97ec537
arighi [Thu, 18 Mar 2010 11:49:59 +0000 (11:49 +0000)]
proc_test: do not overflow preempt_counter on AVR.
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@3237
38d2e660-2303-0410-9eaa-
f027e97ec537
arighi [Thu, 18 Mar 2010 11:49:59 +0000 (11:49 +0000)]
demo: enable dynamic memory allocator (kernel heap) by default.
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@3236
38d2e660-2303-0410-9eaa-
f027e97ec537
arighi [Thu, 18 Mar 2010 11:49:57 +0000 (11:49 +0000)]
proc_test: use kernel dynamic memory if CONFIG_KERN_HEAP is enabled.
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@3235
38d2e660-2303-0410-9eaa-
f027e97ec537
arighi [Wed, 17 Mar 2010 18:31:07 +0000 (18:31 +0000)]
proc_test: code cleanup and introduce a synchronization barrier also for non-preemptible test.
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@3234
38d2e660-2303-0410-9eaa-
f027e97ec537
arighi [Wed, 17 Mar 2010 18:31:06 +0000 (18:31 +0000)]
monitor: remove useless warning of main process stack usage
Remove the following runtime warning:
MONITOR: Free stack of process 'main' is only 0 chars
We don't account stack usage for the process 'main', so this message can
be silenced.
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@3233
38d2e660-2303-0410-9eaa-
f027e97ec537
arighi [Wed, 17 Mar 2010 18:31:05 +0000 (18:31 +0000)]
proc_test: fix buffer overflow.
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@3232
38d2e660-2303-0410-9eaa-
f027e97ec537
arighi [Wed, 17 Mar 2010 18:31:04 +0000 (18:31 +0000)]
Avoid duplicate definitions.
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@3231
38d2e660-2303-0410-9eaa-
f027e97ec537
arighi [Wed, 17 Mar 2010 15:39:09 +0000 (15:39 +0000)]
proc_test: reuse the same stack and memory array of the scheduling test during preemption test.
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@3230
38d2e660-2303-0410-9eaa-
f027e97ec537
arighi [Wed, 17 Mar 2010 15:39:08 +0000 (15:39 +0000)]
proc_test: use snprintf() instead of sprintf().
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@3229
38d2e660-2303-0410-9eaa-
f027e97ec537
arighi [Wed, 17 Mar 2010 14:12:58 +0000 (14:12 +0000)]
preempt: be sure to never call proc_switch() or proc_yield() with IRQs disabled.
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@3228
38d2e660-2303-0410-9eaa-
f027e97ec537
batt [Wed, 17 Mar 2010 14:01:36 +0000 (14:01 +0000)]
ARM examples: enable frame pointer by default.
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@3227
38d2e660-2303-0410-9eaa-
f027e97ec537
batt [Wed, 17 Mar 2010 13:08:31 +0000 (13:08 +0000)]
AT91SAM7: clarify sysirq_dispatcher description.
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@3226
38d2e660-2303-0410-9eaa-
f027e97ec537
arighi [Wed, 17 Mar 2010 11:53:12 +0000 (11:53 +0000)]
heap: properly check the alignment in memory of a heap_buf_t pointer.
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@3225
38d2e660-2303-0410-9eaa-
f027e97ec537
arighi [Wed, 17 Mar 2010 11:53:11 +0000 (11:53 +0000)]
Add alignof() macro.
This macro returns the alignment in memory of a generic data type.
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@3224
38d2e660-2303-0410-9eaa-
f027e97ec537
arighi [Wed, 17 Mar 2010 11:53:10 +0000 (11:53 +0000)]
AVR: fix redeclaration of ISR_PROTO() macro.
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@3223
38d2e660-2303-0410-9eaa-
f027e97ec537
arighi [Wed, 17 Mar 2010 11:53:10 +0000 (11:53 +0000)]
test: preempt.c and coop.c should be never explicitly included.
The inclusion of preempt.c and coop.c depends on the CONFIG_KERN_PREEMPT
option, so they should never been directly included in Makefile.
Instead we must always use mtask.c.
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@3222
38d2e660-2303-0410-9eaa-
f027e97ec537
arighi [Wed, 17 Mar 2010 11:53:09 +0000 (11:53 +0000)]
Do not break old declarations of PROC_DEFINE_STACK().
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@3221
38d2e660-2303-0410-9eaa-
f027e97ec537
arighi [Wed, 17 Mar 2010 11:53:08 +0000 (11:53 +0000)]
proc_test: fix some build warnings on AVR.
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@3220
38d2e660-2303-0410-9eaa-
f027e97ec537
arighi [Wed, 17 Mar 2010 11:53:07 +0000 (11:53 +0000)]
Make kernel heap for processes optional and fully configurable from the wizard.
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@3219
38d2e660-2303-0410-9eaa-
f027e97ec537