bertos.git
13 years agoUpdate sam3x tcp server example to the latest Ethernet changes.
lottaviano [Tue, 24 May 2011 13:41:15 +0000 (13:41 +0000)]
Update sam3x tcp server example to the latest Ethernet changes.

git-svn-id: https://src.develer.com/svnoss/bertos/trunk@4922 38d2e660-2303-0410-9eaa-f027e97ec537

13 years agoUpdate the tcp_server example to use the correct ip input callback.
lottaviano [Tue, 24 May 2011 13:41:13 +0000 (13:41 +0000)]
Update the tcp_server example to use the correct ip input callback.

Use tcpip_input() as the network interface function, it's required when
using a kernel.
Change the IP address shown into a string and add a comment.

git-svn-id: https://src.develer.com/svnoss/bertos/trunk@4921 38d2e660-2303-0410-9eaa-f027e97ec537

13 years agoMake MAC address configurable using hw files.
lottaviano [Tue, 24 May 2011 13:41:11 +0000 (13:41 +0000)]
Make MAC address configurable using hw files.

Users can now modify the hw_eth.c file to change MAC address. Adjust the
drivers accordingly.

git-svn-id: https://src.develer.com/svnoss/bertos/trunk@4920 38d2e660-2303-0410-9eaa-f027e97ec537

13 years agoFix lwIP ethernet interface port.
lottaviano [Tue, 24 May 2011 13:41:08 +0000 (13:41 +0000)]
Fix lwIP ethernet interface port.

Remove leftovers from old lwIP ethernetif ports and
only use the new API.
The same processing is done in upper layers when using tcpip_input as
the input function of netif.

git-svn-id: https://src.develer.com/svnoss/bertos/trunk@4919 38d2e660-2303-0410-9eaa-f027e97ec537

13 years agoFix warnings in nightly tests
lottaviano [Tue, 24 May 2011 08:07:13 +0000 (08:07 +0000)]
Fix warnings in nightly tests

git-svn-id: https://src.develer.com/svnoss/bertos/trunk@4918 38d2e660-2303-0410-9eaa-f027e97ec537

13 years agoImplement the dac streaming api.
asterix [Mon, 23 May 2011 16:39:56 +0000 (16:39 +0000)]
Implement the dac streaming api.

git-svn-id: https://src.develer.com/svnoss/bertos/trunk@4917 38d2e660-2303-0410-9eaa-f027e97ec537

13 years agoFix comment.
asterix [Mon, 23 May 2011 16:37:20 +0000 (16:37 +0000)]
Fix comment.

git-svn-id: https://src.develer.com/svnoss/bertos/trunk@4916 38d2e660-2303-0410-9eaa-f027e97ec537

13 years agoFix callback type.
asterix [Mon, 23 May 2011 16:36:49 +0000 (16:36 +0000)]
Fix callback type.

git-svn-id: https://src.develer.com/svnoss/bertos/trunk@4915 38d2e660-2303-0410-9eaa-f027e97ec537

13 years agoFix some minor bugs and warnings in the new PI tests.
lottaviano [Mon, 23 May 2011 08:30:34 +0000 (08:30 +0000)]
Fix some minor bugs and warnings in the new PI tests.

Signed-off-by: Dario Faggioli <raistlin@linux.it>
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@4914 38d2e660-2303-0410-9eaa-f027e97ec537

13 years agosam3x-ek sdram initialization: add needed includes
aleph [Wed, 18 May 2011 16:37:04 +0000 (16:37 +0000)]
sam3x-ek sdram initialization: add needed includes

git-svn-id: https://src.develer.com/svnoss/bertos/trunk@4913 38d2e660-2303-0410-9eaa-f027e97ec537

13 years agoRegenerated arduino aprs project and enable it in nightly tests.
lottaviano [Tue, 17 May 2011 16:42:41 +0000 (16:42 +0000)]
Regenerated arduino aprs project and enable it in nightly tests.

git-svn-id: https://src.develer.com/svnoss/bertos/trunk@4912 38d2e660-2303-0410-9eaa-f027e97ec537

13 years agoRemove warnings from nightly tests.
lottaviano [Tue, 17 May 2011 16:35:21 +0000 (16:35 +0000)]
Remove warnings from nightly tests.

git-svn-id: https://src.develer.com/svnoss/bertos/trunk@4911 38d2e660-2303-0410-9eaa-f027e97ec537

13 years agoFix compilation issues in sem_test.
lottaviano [Tue, 17 May 2011 14:08:06 +0000 (14:08 +0000)]
Fix compilation issues in sem_test.

git-svn-id: https://src.develer.com/svnoss/bertos/trunk@4910 38d2e660-2303-0410-9eaa-f027e97ec537

13 years agoAdd high level documentation to priority inheritance algorithms.
lottaviano [Tue, 17 May 2011 14:08:05 +0000 (14:08 +0000)]
Add high level documentation to priority inheritance algorithms.

git-svn-id: https://src.develer.com/svnoss/bertos/trunk@4909 38d2e660-2303-0410-9eaa-f027e97ec537

13 years agoAdd priority inheritance implementation for Semaphores.
lottaviano [Tue, 17 May 2011 14:08:03 +0000 (14:08 +0000)]
Add priority inheritance implementation for Semaphores.

Introduce the support for the Priority Inheritance protocol (PI [1])
when using kernel semaphores. The aim of the protocol is to avvoid
the phenomenon known as priority inversion. This happens when a
high priority process blocks on a mutex/semaphore own by a low priority
one, which is then preempted by a third process, with priority in the
middle between the previous two and not using any semaphore. What
happens is, in fact, that the high priority process is delayed by
the medium priority one, and this is usually a bad thing... Feel
free to ask NASA [2] !!!

So, in case we have the following `process(prio)', sharing a couple of
semaphores:
> test1(2): Start.
> test2(3): Start.
> test3(4): Start.
> test4(5): Start.
> test6(7): Start.
> test7(8): Start.
> test8(9): Start.

And the following one, not using any semaphore at all.
> test5(6): Start.

Then without this commit, the finishing time of all the processes is as
follows:
> Main: I-O latency of 1 = 375ms
> Main: I-O latency of 2 = 374ms
> Main: I-O latency of 3 = 374ms
> Main: I-O latency of 4 = 373ms
> Main: I-O latency of 5 = 156ms
> Main: I-O latency of 6 = 372ms
> Main: I-O latency of 7 = 372ms
> Main: I-O latency of 8 = 371ms

With the protocol enabled we have:
> Main: I-O latency of 1 = 376ms
> Main: I-O latency of 2 = 376ms
> Main: I-O latency of 3 = 375ms
> Main: I-O latency of 4 = 375ms
> Main: I-O latency of 5 = 374ms
> Main: I-O latency of 6 = 217ms
> Main: I-O latency of 7 = 217ms
> Main: I-O latency of 8 = 216ms

As it is clear, in the non-PI enabled case, test5 'disturbs' the
processes with priority higher than 6, i.e., test{6,7,8}, by preventing
the lower priority processes that are owning the semaphore to run and
release it. On the other hand, when PI is on duty, the highest priority
processes are able to complete without being interrupted by test5,
thanks to the priority lending enacted by the protocol.

In order of making it possible to enable the implemented bits at
configure/compile time, the CONFIG_KERN_PRI_INHERIT switch has been
added, and it is part of cfg_proc.h, mainly because priority inheritance is
often considered a feature of the scheduler, more than of the blocking
mechanisms (but all this can be changed easily!).

Introduced for and only tested in emulation mode on x86.

[1] L. Sha, R. Rajkumar, and J. P. Lehoczky, "Priority Inheritance
    Protocols: An Approach to Real-Time Synchronization". IEEE Transactions
    on Computers 39 (9): 1175–1185.
[2] http://research.microsoft.com/en-us/um/people/mbj/Mars_Pathfinder/

Signed-off-by: Dario Faggioli <raistlin@linux.it>
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@4908 38d2e660-2303-0410-9eaa-f027e97ec537

13 years agoAdd a priority inversion test for Semaphores.
lottaviano [Tue, 17 May 2011 14:07:59 +0000 (14:07 +0000)]
Add a priority inversion test for Semaphores.

Introduce a test case in sem_test.c for a typical priority
inversion situation where some high and low priority processes
share one or more semaphores and are disturbed by a non-interacting
medium priority process. The test shows, by logging the finishing
time of the procecsses, that the execution of an high priority
process can be noticeably delayed by someone with lower priority
because of interactions happening on semaphores.

Signed-off-by: Dario Faggioli <raistlin@linux.it>
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@4907 38d2e660-2303-0410-9eaa-f027e97ec537

13 years agoAdd wizard tag.
asterix [Tue, 17 May 2011 13:58:04 +0000 (13:58 +0000)]
Add wizard tag.

git-svn-id: https://src.develer.com/svnoss/bertos/trunk@4906 38d2e660-2303-0410-9eaa-f027e97ec537

13 years agoAdd copyright and fix includes.
asterix [Tue, 17 May 2011 10:10:47 +0000 (10:10 +0000)]
Add copyright and fix includes.

git-svn-id: https://src.develer.com/svnoss/bertos/trunk@4905 38d2e660-2303-0410-9eaa-f027e97ec537

13 years agoDocumentation updates.
lottaviano [Tue, 17 May 2011 09:59:17 +0000 (09:59 +0000)]
Documentation updates.

git-svn-id: https://src.develer.com/svnoss/bertos/trunk@4904 38d2e660-2303-0410-9eaa-f027e97ec537

13 years agoKernel project main.c file implemented. Necessary libraries modified in cfg folder.
lottaviano [Tue, 17 May 2011 09:49:49 +0000 (09:49 +0000)]
Kernel project main.c file implemented. Necessary libraries modified in cfg folder.

Signed-off-by: Andrea Scalise <andreascalo@gmail.com>
Signed-off-by: Matteo Silvestri <matteosilv@gmail.com>
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@4903 38d2e660-2303-0410-9eaa-f027e97ec537

13 years agoKernel project template structure added. Main.c file is still empty. Only basic modul...
lottaviano [Tue, 17 May 2011 09:49:46 +0000 (09:49 +0000)]
Kernel project template structure added. Main.c file is still empty. Only basic modules present (like empty project).

Signed-off-by: Andrea Scalise <andreascalo@gmail.com>
Signed-off-by: Matteo Silvestri <matteosilv@gmail.com>
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@4902 38d2e660-2303-0410-9eaa-f027e97ec537

13 years agoUse a shorter name for stm32 Discovery board.
lottaviano [Tue, 17 May 2011 09:49:39 +0000 (09:49 +0000)]
Use a shorter name for stm32 Discovery board.

git-svn-id: https://src.develer.com/svnoss/bertos/trunk@4901 38d2e660-2303-0410-9eaa-f027e97ec537

13 years agoBetter error handling in parser_register_cmd()
lottaviano [Tue, 17 May 2011 09:49:37 +0000 (09:49 +0000)]
Better error handling in parser_register_cmd()

The parser_register_cmd() function does not return any error in case the
hashtable used for storing the commands is full, a condition that is
hard to debug.

This patch modifies the function prototype to return success or failure
and changes the REGISTER_CMD macro to detect the error.

git-svn-id: https://src.develer.com/svnoss/bertos/trunk@4900 38d2e660-2303-0410-9eaa-f027e97ec537

13 years agoReenable arm and avr nightly test.
asterix [Fri, 13 May 2011 15:46:59 +0000 (15:46 +0000)]
Reenable arm and avr nightly test.

git-svn-id: https://src.develer.com/svnoss/bertos/trunk@4899 38d2e660-2303-0410-9eaa-f027e97ec537

13 years agoExclude these files from nightly test.
asterix [Fri, 13 May 2011 15:26:56 +0000 (15:26 +0000)]
Exclude these files from nightly test.

git-svn-id: https://src.develer.com/svnoss/bertos/trunk@4898 38d2e660-2303-0410-9eaa-f027e97ec537

13 years agoUpdate all prj.
asterix [Fri, 13 May 2011 15:14:49 +0000 (15:14 +0000)]
Update all prj.

git-svn-id: https://src.develer.com/svnoss/bertos/trunk@4897 38d2e660-2303-0410-9eaa-f027e97ec537

13 years agoRename make to the new prj names.
asterix [Fri, 13 May 2011 15:13:57 +0000 (15:13 +0000)]
Rename make to the new prj names.

git-svn-id: https://src.develer.com/svnoss/bertos/trunk@4896 38d2e660-2303-0410-9eaa-f027e97ec537

13 years agoRename lpc kernel benchmark.
asterix [Fri, 13 May 2011 15:07:28 +0000 (15:07 +0000)]
Rename lpc kernel benchmark.

git-svn-id: https://src.develer.com/svnoss/bertos/trunk@4895 38d2e660-2303-0410-9eaa-f027e97ec537

13 years agonand driver: improve comments and docs and shuffle around some define(s).
aleph [Wed, 11 May 2011 10:34:03 +0000 (10:34 +0000)]
nand driver: improve comments and docs and shuffle around some define(s).

git-svn-id: https://src.develer.com/svnoss/bertos/trunk@4894 38d2e660-2303-0410-9eaa-f027e97ec537

13 years agonand driver: default log level not too noisy
aleph [Wed, 11 May 2011 10:34:01 +0000 (10:34 +0000)]
nand driver: default log level not too noisy

git-svn-id: https://src.develer.com/svnoss/bertos/trunk@4893 38d2e660-2303-0410-9eaa-f027e97ec537

13 years agosam3 nand: remove empty file
aleph [Wed, 11 May 2011 10:34:00 +0000 (10:34 +0000)]
sam3 nand: remove empty file

git-svn-id: https://src.develer.com/svnoss/bertos/trunk@4892 38d2e660-2303-0410-9eaa-f027e97ec537

13 years agosam3 dac: use _type context member only when debug is active.
aleph [Wed, 11 May 2011 10:33:58 +0000 (10:33 +0000)]
sam3 dac: use _type context member only when debug is active.

git-svn-id: https://src.develer.com/svnoss/bertos/trunk@4891 38d2e660-2303-0410-9eaa-f027e97ec537

13 years agoNand driver: change context class name too (Mt29f->Nand), forgotten in
aleph [Tue, 10 May 2011 16:46:03 +0000 (16:46 +0000)]
Nand driver: change context class name too (Mt29f->Nand), forgotten in
previous commit.

git-svn-id: https://src.develer.com/svnoss/bertos/trunk@4890 38d2e660-2303-0410-9eaa-f027e97ec537

13 years agonand driver (formerly mt29f): change all symbol prefixes mt29f->nand.
aleph [Tue, 10 May 2011 16:41:54 +0000 (16:41 +0000)]
nand driver (formerly mt29f): change all symbol prefixes mt29f->nand.

git-svn-id: https://src.develer.com/svnoss/bertos/trunk@4889 38d2e660-2303-0410-9eaa-f027e97ec537

13 years agomt29f driver becomes nand driver.
aleph [Tue, 10 May 2011 16:41:52 +0000 (16:41 +0000)]
mt29f driver becomes nand driver.

git-svn-id: https://src.develer.com/svnoss/bertos/trunk@4888 38d2e660-2303-0410-9eaa-f027e97ec537

13 years agomt29f NAND driver: refactor to separate generic and hardware implementation.
aleph [Tue, 10 May 2011 16:25:48 +0000 (16:25 +0000)]
mt29f NAND driver: refactor to separate generic and hardware implementation.

MT29F NAND is actually ONFI 1.0 compliant, so the driver can be a generic
NAND driver when separating NAND logic from the hardware layer that
handles the SAM3X NFC memory controller.

git-svn-id: https://src.develer.com/svnoss/bertos/trunk@4887 38d2e660-2303-0410-9eaa-f027e97ec537

13 years agosam3 SMC definitions, add bit position for one field
aleph [Tue, 10 May 2011 16:25:46 +0000 (16:25 +0000)]
sam3 SMC definitions, add bit position for one field

git-svn-id: https://src.develer.com/svnoss/bertos/trunk@4886 38d2e660-2303-0410-9eaa-f027e97ec537

13 years agoreblock: fix name for wizard
aleph [Tue, 10 May 2011 16:25:44 +0000 (16:25 +0000)]
reblock: fix name for wizard

git-svn-id: https://src.develer.com/svnoss/bertos/trunk@4885 38d2e660-2303-0410-9eaa-f027e97ec537

13 years agomt29f nand: fix kblock buffer initialization: load correctly all buffer.
aleph [Mon, 9 May 2011 10:56:29 +0000 (10:56 +0000)]
mt29f nand: fix kblock buffer initialization: load correctly all buffer.

git-svn-id: https://src.develer.com/svnoss/bertos/trunk@4884 38d2e660-2303-0410-9eaa-f027e97ec537

13 years agomt29f nand: allow read (through kblock interface) at arbitrary offset and
aleph [Mon, 9 May 2011 10:56:27 +0000 (10:56 +0000)]
mt29f nand: allow read (through kblock interface) at arbitrary offset and
sizes, i.e. not multiple of the page size.

git-svn-id: https://src.develer.com/svnoss/bertos/trunk@4883 38d2e660-2303-0410-9eaa-f027e97ec537

13 years agomt29f nand: export formatting function and, if DEBUG active, function
aleph [Mon, 9 May 2011 10:56:26 +0000 (10:56 +0000)]
mt29f nand: export formatting function and, if DEBUG active, function
to create fake bad blocks.

git-svn-id: https://src.develer.com/svnoss/bertos/trunk@4882 38d2e660-2303-0410-9eaa-f027e97ec537

13 years agoNew module: KBlock block size reducer
aleph [Sun, 8 May 2011 09:46:10 +0000 (09:46 +0000)]
New module: KBlock block size reducer

Allows access to a KBlock device using a smaller block
size than the native one exported by the device.

git-svn-id: https://src.develer.com/svnoss/bertos/trunk@4881 38d2e660-2303-0410-9eaa-f027e97ec537

13 years agomt29f driver: initialize correctly kblock virtual table when unbuffered.
aleph [Fri, 6 May 2011 17:13:30 +0000 (17:13 +0000)]
mt29f driver: initialize correctly kblock virtual table when unbuffered.

git-svn-id: https://src.develer.com/svnoss/bertos/trunk@4880 38d2e660-2303-0410-9eaa-f027e97ec537

13 years agomt29f driver: fix block remap info handling when writing data.
aleph [Fri, 6 May 2011 17:13:29 +0000 (17:13 +0000)]
mt29f driver: fix block remap info handling when writing data.

git-svn-id: https://src.develer.com/svnoss/bertos/trunk@4879 38d2e660-2303-0410-9eaa-f027e97ec537

13 years agomt29f nand driver: actually use remapped bad blocks in read/write operations.
aleph [Wed, 4 May 2011 15:44:52 +0000 (15:44 +0000)]
mt29f nand driver: actually use remapped bad blocks in read/write operations.

Simplify code for block/page conversion operations and add some debug
diagnostics.

git-svn-id: https://src.develer.com/svnoss/bertos/trunk@4878 38d2e660-2303-0410-9eaa-f027e97ec537

13 years agodoc: Update INI reader module documentation.
lottaviano [Wed, 4 May 2011 13:24:23 +0000 (13:24 +0000)]
doc: Update INI reader module documentation.

git-svn-id: https://src.develer.com/svnoss/bertos/trunk@4877 38d2e660-2303-0410-9eaa-f027e97ec537

13 years agoGraphical support with empty template for STM32VLDiscovery board added to the wizard.
lottaviano [Wed, 4 May 2011 13:00:13 +0000 (13:00 +0000)]
Graphical support with empty template for STM32VLDiscovery board added to the wizard.

Signed-off-by: Andrea Scalise <andreascalo@gmail.com>
Signed-off-by: Matteo Silvestri <matteosilv@gmail.com>
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@4876 38d2e660-2303-0410-9eaa-f027e97ec537

13 years agoStack size problem solved for cortex-m3 CPU family. (STACK_SIZE variable in cortex...
lottaviano [Wed, 4 May 2011 12:59:54 +0000 (12:59 +0000)]
Stack size problem solved for cortex-m3 CPU family. (STACK_SIZE variable in cortex-m3 linker scripts was shared between every cortex-m3 CPU) STACK_SIZE variable moved into the CPU specific linker script file.

Signed-off-by: Andrea Scalise <andreascalo@gmail.com>
Signed-off-by: Matteo Silvestri <matteosilv@gmail.com>
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@4875 38d2e660-2303-0410-9eaa-f027e97ec537

13 years agoSTMF100RB CPU added to the wizard.
lottaviano [Wed, 4 May 2011 12:59:51 +0000 (12:59 +0000)]
STMF100RB CPU added to the wizard.

Signed-off-by: Matteo Silvestri <matteosilv@gmail.com>
Signed-off-by: Andrea Scalise <andreascalo@gmail.com>
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@4874 38d2e660-2303-0410-9eaa-f027e97ec537

13 years agoDetect code for STM32F100RB CPU (cortex-m3 family) added.
lottaviano [Wed, 4 May 2011 12:59:49 +0000 (12:59 +0000)]
Detect code for STM32F100RB CPU (cortex-m3 family) added.

Signed-off-by: Matteo Silvestri <matteosilv@gmail.com>
Signed-off-by: Andrea Scalise <andreascalo@gmail.com>
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@4873 38d2e660-2303-0410-9eaa-f027e97ec537

13 years agomt29f nand driver: add kblock interface.
aleph [Wed, 4 May 2011 10:03:54 +0000 (10:03 +0000)]
mt29f nand driver: add kblock interface.

kblock blocks are mapped on nand 128k erase blocks.

git-svn-id: https://src.develer.com/svnoss/bertos/trunk@4872 38d2e660-2303-0410-9eaa-f027e97ec537

13 years agomt29f driver: don't check ECC on empty pages, or pages not written by driver itself.
aleph [Wed, 4 May 2011 10:03:51 +0000 (10:03 +0000)]
mt29f driver: don't check ECC on empty pages, or pages not written by driver itself.

git-svn-id: https://src.develer.com/svnoss/bertos/trunk@4871 38d2e660-2303-0410-9eaa-f027e97ec537

13 years agoMT29F NAND driver: implement bad block handling and remapping.
aleph [Mon, 2 May 2011 14:12:16 +0000 (14:12 +0000)]
MT29F NAND driver: implement bad block handling and remapping.
Preliminar version: need to implement kblock interface.

git-svn-id: https://src.develer.com/svnoss/bertos/trunk@4870 38d2e660-2303-0410-9eaa-f027e97ec537

13 years agomt29f nand driver: use context the right way, storing and using right chip select...
aleph [Wed, 27 Apr 2011 14:38:20 +0000 (14:38 +0000)]
mt29f nand driver: use context the right way, storing and using right chip select when accessing NAND chip.

git-svn-id: https://src.develer.com/svnoss/bertos/trunk@4869 38d2e660-2303-0410-9eaa-f027e97ec537

13 years agoFix lwIP retransmission problems.
lottaviano [Fri, 22 Apr 2011 11:13:48 +0000 (11:13 +0000)]
Fix lwIP retransmission problems.

In some cases lost packets where never retransmitted because
timeouts where handled improperly.
This patch implements a global timeout list, which solves the
issue.
The current implementation cannot be used with preemptive kernel;
concurrency issues will be solved with lwIP v. 1.4.

git-svn-id: https://src.develer.com/svnoss/bertos/trunk@4868 38d2e660-2303-0410-9eaa-f027e97ec537

13 years agodoc: Improve timer documentation.
lottaviano [Fri, 22 Apr 2011 11:06:40 +0000 (11:06 +0000)]
doc: Improve timer documentation.

git-svn-id: https://src.develer.com/svnoss/bertos/trunk@4867 38d2e660-2303-0410-9eaa-f027e97ec537

13 years agosam3x tcpserver example: fix warning when building the example.
aleph [Thu, 21 Apr 2011 16:56:42 +0000 (16:56 +0000)]
sam3x tcpserver example: fix warning when building the example.

git-svn-id: https://src.develer.com/svnoss/bertos/trunk@4866 38d2e660-2303-0410-9eaa-f027e97ec537

13 years agosam3 nand driver: initial ECC implementation.
aleph [Thu, 21 Apr 2011 16:30:58 +0000 (16:30 +0000)]
sam3 nand driver: initial ECC implementation.

git-svn-id: https://src.develer.com/svnoss/bertos/trunk@4865 38d2e660-2303-0410-9eaa-f027e97ec537

13 years agomt29f NAND driver: remove kblock interface. A very simple FTL layer
aleph [Thu, 21 Apr 2011 09:15:52 +0000 (09:15 +0000)]
mt29f NAND driver: remove kblock interface.  A very simple FTL layer
will be added to implement kblock interface on top of this low level driver.

git-svn-id: https://src.develer.com/svnoss/bertos/trunk@4864 38d2e660-2303-0410-9eaa-f027e97ec537

13 years agosam3 smc definitions, add ECC registers.
aleph [Thu, 21 Apr 2011 09:13:53 +0000 (09:13 +0000)]
sam3 smc definitions, add ECC registers.

git-svn-id: https://src.develer.com/svnoss/bertos/trunk@4863 38d2e660-2303-0410-9eaa-f027e97ec537

13 years agomt29f NAND driver: fix I/O pin numbers and row/column addressing.
aleph [Tue, 19 Apr 2011 17:04:19 +0000 (17:04 +0000)]
mt29f NAND driver: fix I/O pin numbers and row/column addressing.

git-svn-id: https://src.develer.com/svnoss/bertos/trunk@4862 38d2e660-2303-0410-9eaa-f027e97ec537

13 years agomt29f NAND driver: misc improvements (erase not working yet...)
aleph [Thu, 14 Apr 2011 12:53:00 +0000 (12:53 +0000)]
mt29f NAND driver: misc improvements (erase not working yet...)

git-svn-id: https://src.develer.com/svnoss/bertos/trunk@4861 38d2e660-2303-0410-9eaa-f027e97ec537

13 years agoRemove unneeded instruction in AVR timer.
lottaviano [Thu, 14 Apr 2011 10:13:55 +0000 (10:13 +0000)]
Remove unneeded instruction in AVR timer.

The ASSR register is used for asynchronous counter timer2. Checked
for ATmega8/16, ATmega48/168/328, and ATmega1280.

git-svn-id: https://src.develer.com/svnoss/bertos/trunk@4860 38d2e660-2303-0410-9eaa-f027e97ec537

13 years agomt29f on SAM3: handle read/write timeout; fix SMC configuration;
aleph [Wed, 13 Apr 2011 15:53:30 +0000 (15:53 +0000)]
mt29f on SAM3: handle read/write timeout; fix SMC configuration;
fix SMC's SRAM base address.

git-svn-id: https://src.develer.com/svnoss/bertos/trunk@4859 38d2e660-2303-0410-9eaa-f027e97ec537

13 years agosam3 definitions: add SMC_CFG and SMC_CTRL bits.
aleph [Wed, 13 Apr 2011 15:50:57 +0000 (15:50 +0000)]
sam3 definitions: add SMC_CFG and SMC_CTRL bits.

git-svn-id: https://src.develer.com/svnoss/bertos/trunk@4858 38d2e660-2303-0410-9eaa-f027e97ec537

13 years agoFix type
aleph [Wed, 13 Apr 2011 12:54:52 +0000 (12:54 +0000)]
Fix type

git-svn-id: https://src.develer.com/svnoss/bertos/trunk@4857 38d2e660-2303-0410-9eaa-f027e97ec537

13 years agowizard: use a reliable order for enabled modules in the project file
lottaviano [Tue, 12 Apr 2011 05:15:25 +0000 (05:15 +0000)]
wizard: use a reliable order for enabled modules in the project file

This should minimize the diff in the project file when
enabling/disabling a module in a BeRTOS project stored inside a VCS.

Signed-off-by: Nicolas Dandrimont <Nicolas.Dandrimont@crans.org>
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@4856 38d2e660-2303-0410-9eaa-f027e97ec537

13 years agowizard: use a deterministic order for files in the Makefiles
lottaviano [Tue, 12 Apr 2011 05:15:13 +0000 (05:15 +0000)]
wizard: use a deterministic order for files in the Makefiles

Signed-off-by: Nicolas Dandrimont <Nicolas.Dandrimont@crans.org>
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@4855 38d2e660-2303-0410-9eaa-f027e97ec537

13 years agowizard: generate custom Makefile variables with the right prefix
lottaviano [Tue, 12 Apr 2011 05:15:01 +0000 (05:15 +0000)]
wizard: generate custom Makefile variables with the right prefix

This fixes the bug where custom Makefile variables are not correctly
defined if the project is not in a directory which name is the name of
the project.

Signed-off-by: Nicolas Dandrimont <Nicolas.Dandrimont@crans.org>
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@4854 38d2e660-2303-0410-9eaa-f027e97ec537

13 years agoMT29F driver: first implementation of read/write functions.
aleph [Mon, 11 Apr 2011 17:28:06 +0000 (17:28 +0000)]
MT29F driver: first implementation of read/write functions.

git-svn-id: https://src.develer.com/svnoss/bertos/trunk@4853 38d2e660-2303-0410-9eaa-f027e97ec537

13 years agoAdd serial driver for AVR XMega CPU.
lottaviano [Sat, 9 Apr 2011 13:45:50 +0000 (13:45 +0000)]
Add serial driver for AVR XMega CPU.

Signed-off-by: Onno <developer@gorgoz.org>
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@4852 38d2e660-2303-0410-9eaa-f027e97ec537

13 years agoMove AVR mega serial files to prepare the XMega patch
lottaviano [Sat, 9 Apr 2011 13:45:18 +0000 (13:45 +0000)]
Move AVR mega serial files to prepare the XMega patch

git-svn-id: https://src.develer.com/svnoss/bertos/trunk@4851 38d2e660-2303-0410-9eaa-f027e97ec537

13 years agoFix project generation for ATmega CPU.
lottaviano [Sat, 9 Apr 2011 13:44:46 +0000 (13:44 +0000)]
Fix project generation for ATmega CPU.

git-svn-id: https://src.develer.com/svnoss/bertos/trunk@4850 38d2e660-2303-0410-9eaa-f027e97ec537

13 years agoImplement AVR XMega timer driver.
lottaviano [Sat, 9 Apr 2011 13:44:08 +0000 (13:44 +0000)]
Implement AVR XMega timer driver.

Signed-off-by: Onno <developer@gorgoz.org>
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@4849 38d2e660-2303-0410-9eaa-f027e97ec537

13 years agoMove AVR timer files to prepare XMega patches.
lottaviano [Sat, 9 Apr 2011 13:43:40 +0000 (13:43 +0000)]
Move AVR timer files to prepare XMega patches.

git-svn-id: https://src.develer.com/svnoss/bertos/trunk@4848 38d2e660-2303-0410-9eaa-f027e97ec537

13 years agoAdd to the wizard AVR XMega init file.
lottaviano [Sat, 9 Apr 2011 13:43:12 +0000 (13:43 +0000)]
Add to the wizard AVR XMega init file.

git-svn-id: https://src.develer.com/svnoss/bertos/trunk@4847 38d2e660-2303-0410-9eaa-f027e97ec537

13 years agoAdd wizard definitions for AVR XMega MCU.
lottaviano [Sat, 9 Apr 2011 13:42:52 +0000 (13:42 +0000)]
Add wizard definitions for AVR XMega MCU.

Signed-off-by: Onno <developer@gorgoz.org>
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@4846 38d2e660-2303-0410-9eaa-f027e97ec537

13 years agoAdd init file to enable all interrupt priorities at boot.
lottaviano [Sat, 9 Apr 2011 13:42:34 +0000 (13:42 +0000)]
Add init file to enable all interrupt priorities at boot.

git-svn-id: https://src.develer.com/svnoss/bertos/trunk@4845 38d2e660-2303-0410-9eaa-f027e97ec537

13 years agoAdd debug support for AVR XMega MCU.
lottaviano [Sat, 9 Apr 2011 13:42:16 +0000 (13:42 +0000)]
Add debug support for AVR XMega MCU.

Signed-off-by: Onno <developer@gorgoz.org>
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@4844 38d2e660-2303-0410-9eaa-f027e97ec537

13 years agoAdd detect macros for AVR XMega MCU.
lottaviano [Sat, 9 Apr 2011 13:41:54 +0000 (13:41 +0000)]
Add detect macros for AVR XMega MCU.

Hardware interrupts should be enabled separately by using the lines:
  #include <avr/io.h>
  PMIC.CTRL |= PMIC_LOLVLEX_bm | PMIC_MEDLVLEX_bm | PMIC_HILVLEX_bm;
These should go into a separate init file specific for AVR XMega.

Signed-off-by: Onno <developer@gorgoz.org>
Reviewed-by: Luca Ottaviano <lottaviano@develer.com>
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@4843 38d2e660-2303-0410-9eaa-f027e97ec537

13 years agoMT29F NAND flash driver: add block erase function.
aleph [Fri, 8 Apr 2011 15:48:21 +0000 (15:48 +0000)]
MT29F NAND flash driver: add block erase function.

git-svn-id: https://src.develer.com/svnoss/bertos/trunk@4842 38d2e660-2303-0410-9eaa-f027e97ec537

13 years agosam3 SMC includes, add NFC registers definitions.
aleph [Fri, 8 Apr 2011 15:47:17 +0000 (15:47 +0000)]
sam3 SMC includes, add NFC registers definitions.

git-svn-id: https://src.develer.com/svnoss/bertos/trunk@4841 38d2e660-2303-0410-9eaa-f027e97ec537

13 years agosam3x-ek board: allow to build the display demo using the IAR compiler
arighi [Fri, 8 Apr 2011 09:45:04 +0000 (09:45 +0000)]
sam3x-ek board: allow to build the display demo using the IAR compiler

git-svn-id: https://src.develer.com/svnoss/bertos/trunk@4840 38d2e660-2303-0410-9eaa-f027e97ec537

13 years agosam3x: add IAR-specific linker scripts
arighi [Fri, 8 Apr 2011 09:44:59 +0000 (09:44 +0000)]
sam3x: add IAR-specific linker scripts

git-svn-id: https://src.develer.com/svnoss/bertos/trunk@4839 38d2e660-2303-0410-9eaa-f027e97ec537

13 years agomenu: avoid starving other processes in menu_handle()
arighi [Fri, 8 Apr 2011 09:44:57 +0000 (09:44 +0000)]
menu: avoid starving other processes in menu_handle()

When CONFIG_MENU_SMOOTH is enabled the menu_handle() can run
indefinitely without explicitly releasing the CPU.

So, add a voluntary preemption point in menu_handle() to avoid
starvation of the other processes when the kernel preemption is not
enabled.

git-svn-id: https://src.develer.com/svnoss/bertos/trunk@4838 38d2e660-2303-0410-9eaa-f027e97ec537

13 years agoCM3: add support to the IAR Embedded Workbench(TM) compiler
arighi [Fri, 8 Apr 2011 09:44:54 +0000 (09:44 +0000)]
CM3: add support to the IAR Embedded Workbench(TM) compiler

Allow to build BeRTOS projects based on the CM3 architecture with the
IAR compiler.

git-svn-id: https://src.develer.com/svnoss/bertos/trunk@4837 38d2e660-2303-0410-9eaa-f027e97ec537

13 years agoadd support to the IAR Embedded Workbench(TM) compiler
arighi [Fri, 8 Apr 2011 09:44:50 +0000 (09:44 +0000)]
add support to the IAR Embedded Workbench(TM) compiler

git-svn-id: https://src.develer.com/svnoss/bertos/trunk@4836 38d2e660-2303-0410-9eaa-f027e97ec537

13 years agoFix compilation warnings.
lottaviano [Thu, 7 Apr 2011 07:53:52 +0000 (07:53 +0000)]
Fix compilation warnings.

LWIP sys_thread_new() should not modify the thread name in input,
fixed using the const qualifier.
This is also fixed in upstream LWIP code.

git-svn-id: https://src.develer.com/svnoss/bertos/trunk@4835 38d2e660-2303-0410-9eaa-f027e97ec537

13 years agoInitial sketch of a driver for MT29F serial NAND.
aleph [Wed, 6 Apr 2011 15:48:25 +0000 (15:48 +0000)]
Initial sketch of a driver for MT29F serial NAND.

git-svn-id: https://src.develer.com/svnoss/bertos/trunk@4834 38d2e660-2303-0410-9eaa-f027e97ec537

13 years agosam3: add missing SMC register definition.
aleph [Wed, 6 Apr 2011 15:44:57 +0000 (15:44 +0000)]
sam3: add missing SMC register definition.

git-svn-id: https://src.develer.com/svnoss/bertos/trunk@4833 38d2e660-2303-0410-9eaa-f027e97ec537

13 years agoFix warnings.
asterix [Mon, 4 Apr 2011 17:33:05 +0000 (17:33 +0000)]
Fix warnings.

git-svn-id: https://src.develer.com/svnoss/bertos/trunk@4832 38d2e660-2303-0410-9eaa-f027e97ec537

13 years agoSilence new compiler warnings.
batt [Sun, 3 Apr 2011 13:21:31 +0000 (13:21 +0000)]
Silence new compiler warnings.

git-svn-id: https://src.develer.com/svnoss/bertos/trunk@4831 38d2e660-2303-0410-9eaa-f027e97ec537

13 years agoFix warnings on new compilers.
batt [Sun, 3 Apr 2011 13:08:59 +0000 (13:08 +0000)]
Fix warnings on new compilers.

git-svn-id: https://src.develer.com/svnoss/bertos/trunk@4830 38d2e660-2303-0410-9eaa-f027e97ec537

13 years agotest: fix path
aleph [Fri, 1 Apr 2011 09:16:42 +0000 (09:16 +0000)]
test: fix path

git-svn-id: https://src.develer.com/svnoss/bertos/trunk@4829 38d2e660-2303-0410-9eaa-f027e97ec537

13 years agoAdd sam3x-ek tcp/ip example to nightly test
aleph [Wed, 30 Mar 2011 14:55:01 +0000 (14:55 +0000)]
Add sam3x-ek tcp/ip example to nightly test

git-svn-id: https://src.develer.com/svnoss/bertos/trunk@4828 38d2e660-2303-0410-9eaa-f027e97ec537

13 years agosam3x-ek: add TCP/IP example.
aleph [Wed, 30 Mar 2011 14:54:01 +0000 (14:54 +0000)]
sam3x-ek: add TCP/IP example.

git-svn-id: https://src.develer.com/svnoss/bertos/trunk@4827 38d2e660-2303-0410-9eaa-f027e97ec537

13 years agoAdd timer dependency to ethernet driver.
aleph [Wed, 30 Mar 2011 14:52:42 +0000 (14:52 +0000)]
Add timer dependency to ethernet driver.

git-svn-id: https://src.develer.com/svnoss/bertos/trunk@4826 38d2e660-2303-0410-9eaa-f027e97ec537

13 years agosam3: add sam3 generic tag to SAM3X8 cpu info, to allow eth driver build.
aleph [Wed, 30 Mar 2011 14:05:39 +0000 (14:05 +0000)]
sam3: add sam3 generic tag to SAM3X8 cpu info, to allow eth driver build.

git-svn-id: https://src.develer.com/svnoss/bertos/trunk@4825 38d2e660-2303-0410-9eaa-f027e97ec537

13 years agosam3 eth: consider PHY auto-negotiation results when initializing emac.
aleph [Wed, 30 Mar 2011 14:05:00 +0000 (14:05 +0000)]
sam3 eth: consider PHY auto-negotiation results when initializing emac.

git-svn-id: https://src.develer.com/svnoss/bertos/trunk@4824 38d2e660-2303-0410-9eaa-f027e97ec537

13 years agoFix variable name. Remove for now the api from doxygen. Add callback for streaming.
asterix [Wed, 30 Mar 2011 10:33:27 +0000 (10:33 +0000)]
Fix variable name. Remove for now the api from doxygen. Add callback for streaming.

git-svn-id: https://src.develer.com/svnoss/bertos/trunk@4823 38d2e660-2303-0410-9eaa-f027e97ec537