bertos.git
13 years agoExclude lwIP stuff from the nightly build tests.
arighi [Mon, 1 Nov 2010 16:26:51 +0000 (16:26 +0000)]
Exclude lwIP stuff from the nightly build tests.

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

13 years agolwIP: integrate lwIP with the BeRTOS wizard
arighi [Mon, 1 Nov 2010 16:26:46 +0000 (16:26 +0000)]
lwIP: integrate lwIP with the BeRTOS wizard

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

13 years agolwIP: add configuration parameters
arighi [Mon, 1 Nov 2010 16:26:39 +0000 (16:26 +0000)]
lwIP: add configuration parameters

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

13 years agolwIP: add ethernet glue for lwIP
arighi [Mon, 1 Nov 2010 16:26:28 +0000 (16:26 +0000)]
lwIP: add ethernet glue for lwIP

Implement the "ethernetif" virtual driver to plug lwIP to the BeRTOS
generic ethernet layer.

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

13 years agolwIP: operating system requirements
arighi [Mon, 1 Nov 2010 16:26:18 +0000 (16:26 +0000)]
lwIP: operating system requirements

Implement system-specific functionalities needed by lwIP.

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

13 years agoCPU: introduce cpu_atomic_xchg()
arighi [Mon, 1 Nov 2010 16:26:07 +0000 (16:26 +0000)]
CPU: introduce cpu_atomic_xchg()

Add an architecture-optimized function to atomically exchange two
different cpu_atomic_t values.

More exactly, the function replaces the value of a cpu_atomic_t variable
and returns the old value, atomically.

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

13 years agodoc: exclude the lwIP source code from the Doxygen-generated documentation.
arighi [Mon, 1 Nov 2010 16:25:56 +0000 (16:25 +0000)]
doc: exclude the lwIP source code from the Doxygen-generated documentation.

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

13 years agoAdd lwIP include directories to the BeRTOS include path.
arighi [Mon, 1 Nov 2010 16:25:51 +0000 (16:25 +0000)]
Add lwIP include directories to the BeRTOS include path.

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

13 years agoAT91SAM7: EMAC ethernet driver refactoring
arighi [Mon, 1 Nov 2010 16:25:45 +0000 (16:25 +0000)]
AT91SAM7: EMAC ethernet driver refactoring

Refactor EMAC ethernet driver for a better (and more efficient)
integration with the lwIP TCP/IP stack.

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

13 years agonet: add lwIP TCP/IP stack
arighi [Mon, 1 Nov 2010 16:25:33 +0000 (16:25 +0000)]
net: add lwIP TCP/IP stack

Import lwIP version 1.3.2.

For additional details on lwIP, refer to the lwIP homepage at:
http://savannah.nongnu.org/projects/lwip/

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

13 years agoevent: always add a memory barrier before returning from event_waitTimeout()
arighi [Mon, 1 Nov 2010 16:23:32 +0000 (16:23 +0000)]
event: always add a memory barrier before returning from event_waitTimeout()

In this way we are sure the compiler will not perform optimizations or
instruction reordering: so that the return from event is always done
after the execution of the corresponding event_do().

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

13 years agodocs: silent wrong Doxygen warning
arighi [Sun, 31 Oct 2010 09:44:54 +0000 (09:44 +0000)]
docs: silent wrong Doxygen warning

Silent the following warning (probably due to a Doxygen bug):

  bertos/cpu/arm/drv/eth_at91.c:89: warning: documented function `static uint8_t rx_buf' was not declared or defined.

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

13 years agoMove flash related flags to the flash driver; refactor accordingly.
batt [Thu, 28 Oct 2010 15:59:24 +0000 (15:59 +0000)]
Move flash related flags to the flash driver; refactor accordingly.

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

13 years agoFix typo
aleph [Thu, 28 Oct 2010 10:48:02 +0000 (10:48 +0000)]
Fix typo

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

13 years agoChange filename and macros from AT91SAM3.. to SAM3.. to conform to Atmel's official...
aleph [Wed, 27 Oct 2010 17:17:32 +0000 (17:17 +0000)]
Change filename and macros from AT91SAM3.. to SAM3.. to conform to Atmel's official product naming.

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

13 years agoili9225 lcd driver: remove backlight macros, board dependent stuff.
aleph [Wed, 27 Oct 2010 15:00:33 +0000 (15:00 +0000)]
ili9225 lcd driver: remove backlight macros, board dependent stuff.

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

13 years agoILI9225 lcd driver: remove backlight control function, is a SAM3N-EK only
aleph [Wed, 27 Oct 2010 14:36:45 +0000 (14:36 +0000)]
ILI9225 lcd driver: remove backlight control function, is a SAM3N-EK only
implementation, each board implements its own backlight system.

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

13 years agotest: activate AT91SAM7X for nightly tests instead of AT91SAM7S for armtest
arighi [Wed, 27 Oct 2010 09:43:29 +0000 (09:43 +0000)]
test: activate AT91SAM7X for nightly tests instead of AT91SAM7S for armtest

In this way also the ethernet module will be checked during nitghly test
builds.

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

13 years agoAT91: distinct CPU definitions for AT91SAM7X and AT91SAM7S family
arighi [Wed, 27 Oct 2010 09:43:26 +0000 (09:43 +0000)]
AT91: distinct CPU definitions for AT91SAM7X and AT91SAM7S family

Add distinct definitions for AT91SAM7X and AT91SAM7S families to allow
the definition of modules that are supported by one architecture and not
the other (e.g., the ethernet module).

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

13 years agosam3 port: enable power on all PIO input ports by default.
aleph [Tue, 26 Oct 2010 18:03:49 +0000 (18:03 +0000)]
sam3 port: enable power on all PIO input ports by default.

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

13 years agoFix default debug port for STM32 board on context switch preset.
lottaviano [Tue, 26 Oct 2010 16:52:32 +0000 (16:52 +0000)]
Fix default debug port for STM32 board on context switch preset.

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

13 years agoILI9225 lcd driver: writes one row at a time: a lot faster when using SPI DMA.
aleph [Tue, 26 Oct 2010 15:04:30 +0000 (15:04 +0000)]
ILI9225 lcd driver: writes one row at a time: a lot faster when using SPI DMA.

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

13 years agoILI9225 lcd driver: use generic KFile object instead of SPI.
aleph [Tue, 26 Oct 2010 14:29:15 +0000 (14:29 +0000)]
ILI9225 lcd driver: use generic KFile object instead of SPI.

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

13 years agosam3: add PDC register offsets
aleph [Tue, 26 Oct 2010 14:27:10 +0000 (14:27 +0000)]
sam3: add PDC register offsets

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

13 years agodoc: Update and clarify documentation for event handling module.
lottaviano [Tue, 26 Oct 2010 13:21:33 +0000 (13:21 +0000)]
doc: Update and clarify documentation for event handling module.

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

13 years agodoc: Update offline reference doc to match website information.
lottaviano [Tue, 26 Oct 2010 09:06:05 +0000 (09:06 +0000)]
doc: Update offline reference doc to match website information.

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

13 years agomware: add documentation of the generic completion events
arighi [Tue, 26 Oct 2010 08:44:09 +0000 (08:44 +0000)]
mware: add documentation of the generic completion events

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

13 years agomware: fix generic completion events behaviour without the kernel
arighi [Tue, 26 Oct 2010 08:44:04 +0000 (08:44 +0000)]
mware: fix generic completion events behaviour without the kernel

The correct behaviour of the generic completion events is to allow any
process to wait for the event and not only the one that initialized the
completion.

With this fix the "owner" of the completion is assigned when a process
call event_wait() and not event_initGeneric(). In this way a call to
event_do() correctly wakes up the process that actually performed the
event_wait().

Moreover, use the signal SIG_SYSTEM5 for generic completion events
(instead of SIG_SINGLE, that is already by the timer and msg).

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

13 years agodoc: I2C, add more documentation for old API backends.
lottaviano [Tue, 26 Oct 2010 07:52:01 +0000 (07:52 +0000)]
doc: I2C, add more documentation for old API backends.

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

13 years agodoc: Move old i2c API at the end of file.
lottaviano [Tue, 26 Oct 2010 07:36:51 +0000 (07:36 +0000)]
doc: Move old i2c API at the end of file.

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

13 years agodoc: Add documentation for new I2C API and razionalize using modules
lottaviano [Mon, 25 Oct 2010 16:55:21 +0000 (16:55 +0000)]
doc: Add documentation for new I2C API and razionalize using modules

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

13 years agonetwork: add generic ethernet module.
arighi [Mon, 25 Oct 2010 11:09:25 +0000 (11:09 +0000)]
network: add generic ethernet module.

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

13 years agoAT91SAM7: add EMAC ethernet driver
arighi [Mon, 25 Oct 2010 11:09:22 +0000 (11:09 +0000)]
AT91SAM7: add EMAC ethernet driver

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

13 years agodoc: Reorder KFile interface functions, add documentation.
lottaviano [Sun, 24 Oct 2010 12:37:34 +0000 (12:37 +0000)]
doc: Reorder KFile interface functions, add documentation.

Generate a clearer documentation by reordering functions: first read
functions, then write functions, then other less used functions.

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

13 years agoRemove unneeded compile time check.
lottaviano [Sun, 24 Oct 2010 12:37:15 +0000 (12:37 +0000)]
Remove unneeded compile time check.

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

13 years agodoc: Remove doxygen tags to internal typedefs; add docs for KFile interface functions.
lottaviano [Sun, 24 Oct 2010 12:22:22 +0000 (12:22 +0000)]
doc: Remove doxygen tags to internal typedefs; add docs for KFile interface functions.

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

13 years agoAdd new LCD display driver for ILI9225 based lcds, configured for 4 wire
aleph [Sat, 23 Oct 2010 16:21:40 +0000 (16:21 +0000)]
Add new LCD display driver for ILI9225 based lcds, configured for 4 wire
8-bit serial interface.

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

13 years agoFix copyright. Reorder include and remove deprecated. Comply the core cpu macro name.
asterix [Fri, 22 Oct 2010 20:04:11 +0000 (20:04 +0000)]
Fix copyright. Reorder include and remove deprecated. Comply the core cpu macro name.

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

13 years agoDefine cpu core macro for makefile.
asterix [Fri, 22 Oct 2010 20:00:58 +0000 (20:00 +0000)]
Define cpu core macro for makefile.

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

13 years agoFix msp430 cpu core name. Add new msp430 core detect.
asterix [Fri, 22 Oct 2010 19:59:56 +0000 (19:59 +0000)]
Fix msp430 cpu core name. Add new msp430 core detect.

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

13 years agodoc: Add missing return values.
lottaviano [Fri, 22 Oct 2010 14:27:24 +0000 (14:27 +0000)]
doc: Add missing return values.

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

13 years agodoc: Add documentation for BitArray module.
lottaviano [Fri, 22 Oct 2010 14:12:39 +0000 (14:12 +0000)]
doc: Add documentation for BitArray module.

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

13 years agoAdd API warning in USB subsystem.
lottaviano [Fri, 22 Oct 2010 13:12:03 +0000 (13:12 +0000)]
Add API warning in USB subsystem.

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

13 years agosam3n spi: revert to "end of transmit" interrupt instead of "tx buffer empty",
aleph [Fri, 22 Oct 2010 13:06:52 +0000 (13:06 +0000)]
sam3n spi: revert to "end of transmit" interrupt instead of "tx buffer empty",
it's slower but with the latter method it's necessary to handle both interrupt
to make flush work correctly.
Remove board specific stuff (chip select handling).  Don't allow SPI hardware
to drive chip select, better handled by the app as PIO.

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

13 years agosam3n io: fix nasty pasto
aleph [Fri, 22 Oct 2010 13:03:17 +0000 (13:03 +0000)]
sam3n io: fix nasty pasto

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

13 years agoAdd verbatim in documentation.
lottaviano [Fri, 22 Oct 2010 12:50:06 +0000 (12:50 +0000)]
Add verbatim in documentation.

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

13 years agoRemove unneeded doxygen tags.
lottaviano [Fri, 22 Oct 2010 09:05:07 +0000 (09:05 +0000)]
Remove unneeded doxygen tags.

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

13 years agoRemove doxygen tags from private structures.
lottaviano [Fri, 22 Oct 2010 07:47:15 +0000 (07:47 +0000)]
Remove doxygen tags from private structures.

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

13 years agosam3 spi: use data transfer register interrupt instead of tx finished interrupt:...
aleph [Thu, 21 Oct 2010 10:24:53 +0000 (10:24 +0000)]
sam3 spi: use data transfer register interrupt instead of tx finished interrupt: this
way transfer is faster and we avoid chip select deasserting after each byte of a multi-byte
transfer.
Set all chip select registers at initialization, in case user change chip select manually
(at the moment the spi driver doesn't have an API to change chip select).

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

13 years agosam3n spi: fix interrupt enable/disable logic. Interrupt is enabled only when
aleph [Tue, 19 Oct 2010 18:47:22 +0000 (18:47 +0000)]
sam3n spi: fix interrupt enable/disable logic.  Interrupt is enabled only when
there are data to send and turned off when interrupt handler find an empty
fifo.  To test in depth.

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

13 years agosam3n serial/spi: use correct peripheral ids and interrupt numbers; initialize correctly
aleph [Tue, 19 Oct 2010 18:43:56 +0000 (18:43 +0000)]
sam3n serial/spi: use correct peripheral ids and interrupt numbers; initialize correctly
all SPI I/O lines and peripheral alternate function.
Some sam3n-ek board specific code in SPI init, to be removed when driver is completed.

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

13 years agosam3n: fix confusion between interrupt numbers and peripheral ids.
aleph [Tue, 19 Oct 2010 18:41:15 +0000 (18:41 +0000)]
sam3n: fix confusion between interrupt numbers and peripheral ids.

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

13 years agosam3n: revert to a version of Atmel's sam3n register definitions more faithful to...
aleph [Mon, 18 Oct 2010 16:07:00 +0000 (16:07 +0000)]
sam3n: revert to a version of Atmel's sam3n register definitions more faithful to Atmel's
one, to use only when accessing registers not defined in standard BeRTOS sam3 includes
(io/sam3_*.h).

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

13 years agoFix copyright and comment.
asterix [Sun, 17 Oct 2010 21:39:56 +0000 (21:39 +0000)]
Fix copyright and comment.

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

13 years agosam3 port: add serial module.
aleph [Fri, 15 Oct 2010 19:59:58 +0000 (19:59 +0000)]
sam3 port: add serial module.

Copied from SAM7 architecture driver and improved to handle SAM3 as well.
Mantained SAM7 compatibility, to allow future merge between SAM7 and SAM3 driver
trees.

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

13 years agosam3 port: add CPU detect macros for SAM3S4 and SAM3U4.
aleph [Fri, 15 Oct 2010 19:56:28 +0000 (19:56 +0000)]
sam3 port: add CPU detect macros for SAM3S4 and SAM3U4.

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

13 years agosam3n: update clock and kdebug modules to use lastest register definion convention
aleph [Fri, 15 Oct 2010 19:55:25 +0000 (19:55 +0000)]
sam3n: update clock and kdebug modules to use lastest register definion convention

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

13 years agosam3n port: add some peripheral register definitions.
aleph [Fri, 15 Oct 2010 19:53:04 +0000 (19:53 +0000)]
sam3n port: add some peripheral register definitions.

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

13 years agosam3n port: revert to our custom made register definition includes.
aleph [Fri, 15 Oct 2010 18:08:12 +0000 (18:08 +0000)]
sam3n port: revert to our custom made register definition includes.

SAM3 peripherals are very similar to SAM7 one.  To allow reuse of SAM7
drivers we need to use same register definitions.  Atmel supplied
include file defines register offsets with the bare register name
(i.e. PIO_PDR) and access register macro with the REG_ prefix.
Instead the SAM7 tree defines offsets with _OFF suffix and access
register macros with the bare register name.  Moreover register
bits are defined as bit numbers, i.e. when using them on registers
the BV() macro is required.

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

13 years agoPut the specific random cpu backend to correct dir.
asterix [Fri, 15 Oct 2010 16:33:49 +0000 (16:33 +0000)]
Put the specific random cpu backend to correct dir.

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

13 years agoAdd entropy generation for stm32.
asterix [Fri, 15 Oct 2010 13:32:09 +0000 (13:32 +0000)]
Add entropy generation for stm32.

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

13 years agoReformat.
asterix [Fri, 15 Oct 2010 13:30:38 +0000 (13:30 +0000)]
Reformat.

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

13 years agoFix log import module, other simple typo fixes.
asterix [Thu, 14 Oct 2010 10:54:27 +0000 (10:54 +0000)]
Fix log import module, other simple typo fixes.

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

13 years agoAdd signal connections for the 'hex' fields.
duplo [Thu, 14 Oct 2010 08:18:37 +0000 (08:18 +0000)]
Add signal connections for the 'hex' fields.

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

13 years agousbser: remove duplicate definitions
arighi [Wed, 13 Oct 2010 13:13:50 +0000 (13:13 +0000)]
usbser: remove duplicate definitions

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

13 years agowizard: do not auto-detect number base for integer parameters
arighi [Wed, 13 Oct 2010 11:11:11 +0000 (11:11 +0000)]
wizard: do not auto-detect number base for integer parameters

The spinbox for int, long or unsigned long parameter must only support
base-10 integers.

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

13 years agoUSB: integrate vendor and product ID configuration in the wizard
arighi [Wed, 13 Oct 2010 11:00:22 +0000 (11:00 +0000)]
USB: integrate vendor and product ID configuration in the wizard

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

13 years agowizard: add hex configuration parameter type
arighi [Wed, 13 Oct 2010 11:00:18 +0000 (11:00 +0000)]
wizard: add hex configuration parameter type

The wizard should be able to show configuration parameter numbers in
hexadecimal format. This feature is very useful to specify memory
addresses, product IDs, etc.

Add the support for this new "hex" type.

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

13 years agosam3: disable watchdog at boot
aleph [Tue, 12 Oct 2010 16:50:19 +0000 (16:50 +0000)]
sam3: disable watchdog at boot

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

13 years agowizard: follow symlinks only under POSIX OSes
arighi [Tue, 12 Oct 2010 16:13:36 +0000 (16:13 +0000)]
wizard: follow symlinks only under POSIX OSes

r4299 introduced a bug on non-POSIX environments, because the
python's os.walk() doesn't recognize the followlinks keyboard.

Use this option only when a POSIX OS is detected.

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

13 years agosam3n port: remove sneaked in commented code
aleph [Tue, 12 Oct 2010 16:09:10 +0000 (16:09 +0000)]
sam3n port: remove sneaked in commented code

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

13 years agoatsam3 port: add all Atmel register definitions and scrap our custom made and incomplete
aleph [Tue, 12 Oct 2010 15:09:59 +0000 (15:09 +0000)]
atsam3 port: add all Atmel register definitions and scrap our custom made and incomplete
ones.  Fix clock and kdebug driver accordingly.

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

13 years agosam3n port: add (unfinished) configuration check form sam3n1/2/3 cpu models
aleph [Tue, 12 Oct 2010 15:03:03 +0000 (15:03 +0000)]
sam3n port: add (unfinished) configuration check form sam3n1/2/3 cpu models

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

13 years agosam3n: change flash io defines according to at91 port style: _OFF for offsets and...
aleph [Mon, 11 Oct 2010 18:16:37 +0000 (18:16 +0000)]
sam3n: change flash io defines according to at91 port style: _OFF for offsets and without _R suffix for registers

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

13 years agomsp430: kdebug driver enhancement
arighi [Sat, 9 Oct 2010 14:36:29 +0000 (14:36 +0000)]
msp430: kdebug driver enhancement

This patch allows for more control over the UART's module clock source
and frequency within the debug driver.

Signed-off-by: Mohamed Tarek <mtarek16@gmail.com>
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@4416 38d2e660-2303-0410-9eaa-f027e97ec537

13 years agoSEC: Isaac: change reseeding algorithm by xoring the new seed over the
rasky [Tue, 5 Oct 2010 17:49:39 +0000 (17:49 +0000)]
SEC: Isaac: change reseeding algorithm by xoring the new seed over the
current context. This allows an initial full seeding.

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

13 years agosam3n port: set flash wait states before activating fast clock
aleph [Tue, 5 Oct 2010 16:47:01 +0000 (16:47 +0000)]
sam3n port: set flash wait states before activating fast clock

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

13 years agosam3n port: fix copyright date
aleph [Tue, 5 Oct 2010 16:46:07 +0000 (16:46 +0000)]
sam3n port: fix copyright date

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

13 years agosam3n: add flash definitions and linker script
aleph [Tue, 5 Oct 2010 16:45:35 +0000 (16:45 +0000)]
sam3n: add flash definitions and linker script

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

13 years agosam3n kdebug: fix bug, enable correctly UART PMC.
aleph [Tue, 5 Oct 2010 16:44:05 +0000 (16:44 +0000)]
sam3n kdebug: fix bug, enable correctly UART PMC.

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

13 years agoSTM32-P103: add usbmouse preset
arighi [Tue, 5 Oct 2010 15:27:52 +0000 (15:27 +0000)]
STM32-P103: add usbmouse preset

This example implements virtual USB HID mouse device using the Olimex
STM32-P103 evaluation board.

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

13 years agoSTM32-P103: add usbkeyboard preset
arighi [Tue, 5 Oct 2010 15:14:43 +0000 (15:14 +0000)]
STM32-P103: add usbkeyboard preset

This example implements virtual USB HID keyboard device using the Olimex
STM32-P103 evaluation board.

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

13 years agoSTM32-P103: add usbserial preset
arighi [Tue, 5 Oct 2010 13:45:07 +0000 (13:45 +0000)]
STM32-P103: add usbserial preset

This example implements a real USB/serial converter using the Olimex
STM32-P103 evaluation board.

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

13 years agoSTM32-P103: add examples directory
arighi [Tue, 5 Oct 2010 13:44:58 +0000 (13:44 +0000)]
STM32-P103: add examples directory

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

13 years agoFix typo in DevelGPS project's description.
arighi [Tue, 5 Oct 2010 13:34:52 +0000 (13:34 +0000)]
Fix typo in DevelGPS project's description.

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

13 years agoSome fix to compile run test check.
asterix [Tue, 5 Oct 2010 09:30:12 +0000 (09:30 +0000)]
Some fix to compile run test check.

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

13 years agoSome fix to compile run test check.
asterix [Tue, 5 Oct 2010 09:29:31 +0000 (09:29 +0000)]
Some fix to compile run test check.

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

13 years agoAdd progress dialog when loading existing projects.
duplo [Tue, 5 Oct 2010 08:45:51 +0000 (08:45 +0000)]
Add progress dialog when loading existing projects.

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

13 years agoFix missing header. Add blowfish source to run_test script.
asterix [Tue, 5 Oct 2010 08:34:13 +0000 (08:34 +0000)]
Fix missing header. Add blowfish source to run_test script.

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

13 years agoSEC: add OFB mode to symmetric ciphers.
rasky [Mon, 4 Oct 2010 18:43:14 +0000 (18:43 +0000)]
SEC: add OFB mode to symmetric ciphers.

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

13 years agoSEC: Add 32-bit optimized AES implementation and refactor code to support
rasky [Mon, 4 Oct 2010 18:22:21 +0000 (18:22 +0000)]
SEC: Add 32-bit optimized AES implementation and refactor code to support
multiple implementations.

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

13 years agoAdd speed calculation to cipher benchmarks
rasky [Mon, 4 Oct 2010 18:21:21 +0000 (18:21 +0000)]
Add speed calculation to cipher benchmarks

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

13 years agoSEC: add another AES test for debugging purposes
rasky [Mon, 4 Oct 2010 18:21:05 +0000 (18:21 +0000)]
SEC: add another AES test for debugging purposes

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

13 years agosam3n port: use external 12 MHz oscillator as system clock
aleph [Mon, 4 Oct 2010 14:36:14 +0000 (14:36 +0000)]
sam3n port: use external 12 MHz oscillator as system clock

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

13 years agoAdd system controller register and clean-up PMC headers
aleph [Mon, 4 Oct 2010 14:34:24 +0000 (14:34 +0000)]
Add system controller register and clean-up PMC headers

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

13 years agoSTM32: USB: use generic completion events
arighi [Fri, 1 Oct 2010 17:32:20 +0000 (17:32 +0000)]
STM32: USB: use generic completion events

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

13 years agomware: add generic completion events
arighi [Fri, 1 Oct 2010 17:32:17 +0000 (17:32 +0000)]
mware: add generic completion events

Device drivers often need to wait the completion of some event, usually to
allow the hardware to accomplish some asynchronous task.

A common approach is to place a busy wait with a cpu_relax() loop that invokes
the architecture-specific instructions to say that we're not doing much with
the processor.

Although technically correct, the busy loop degrades the overall system
performance in presence of multiple processes and power consumption.

With the kernel the natural way to implement such wait/complete mechanism is to
use signals via sig_wait() and sig_post()/sig_send().

However, signals in BeRTOS are only available in presence of the kernel (that
is just a compile-time option). This means that each device driver must provide
two different interfaces to implement the wait/complete semantic: one with the
kernel and another without the kernel.

The purpose of the completion events is to provide a generic interface to
implement a synchronization mechanism to block the execution of code until a
specific event happens.

This interface does not depend on the presence of the kernel and it
automatically uses the appropriate event backend to provide the same
behaviour with or without the kernel.

Example usage:
---------------------------------------------------------------------
static Event e;

static void irq_handler(void)
{
/* Completion event has happened, resume the execution of init() */
event_do(&e);
}

static void init(void)
{
/* Declare a generic completion event */
event_initGeneric(&e);
/* Submit the hardware initialization request */
async_hw_init();
/* Wait for the completion of the event */
event_wait(&e);
}
---------------------------------------------------------------------

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

13 years agoUSB: make all USB strings as const
arighi [Thu, 30 Sep 2010 14:57:24 +0000 (14:57 +0000)]
USB: make all USB strings as const

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

13 years agoAdd benchmarks for block ciphers.
rasky [Thu, 30 Sep 2010 14:18:35 +0000 (14:18 +0000)]
Add benchmarks for block ciphers.

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

13 years agoSEC: fix undeterminism in X917 and refactor to avoid using a union.
rasky [Thu, 30 Sep 2010 14:18:14 +0000 (14:18 +0000)]
SEC: fix undeterminism in X917 and refactor to avoid using a union.

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