bertos.git
13 years agosec: silent wrong compiler warning in isaac
arighi [Thu, 17 Feb 2011 14:15:54 +0000 (14:15 +0000)]
sec: silent wrong compiler warning in isaac

Silent the following compiler warning:

  bertos/sec/prng/isaac.c: In function 'isaac':
  bertos/sec/prng/isaac.c:76: warning: cast increases required alignment of target type

The warning was reported the ind() macro, that casts the first argument
(a uint32_t *) to a (uint8_t *) adds a value to it and re-casts back to
(uint32_t *).

However, the value added to the pointer is always a multiple of
uint32_t, so the warning can be suppressed without potential side
effects.

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

13 years agosec: properly handle unaligned memory in xor_block() and xor_block_const()
arighi [Thu, 17 Feb 2011 14:15:51 +0000 (14:15 +0000)]
sec: properly handle unaligned memory in xor_block() and xor_block_const()

This also fixes the following build warnings:

  warning: cast increases required alignment of target type

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

13 years agoUse relative paths when creating a project.
batt [Thu, 17 Feb 2011 13:13:18 +0000 (13:13 +0000)]
Use relative paths when creating a project.

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

13 years agoRemove path from toolchain when creating presets (use the system one).
batt [Thu, 17 Feb 2011 11:13:55 +0000 (11:13 +0000)]
Remove path from toolchain when creating presets (use the system one).

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

13 years agoAdd findInPath method; search for toolchains in system path.
batt [Thu, 17 Feb 2011 11:12:48 +0000 (11:12 +0000)]
Add findInPath method; search for toolchains in system path.

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

13 years agoInitialize timer magic number.
batt [Wed, 16 Feb 2011 18:21:40 +0000 (18:21 +0000)]
Initialize timer magic number.

There is a (very low) chance that the stack memory
contains the wrong magic number causing ASSERTs to fire.

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

13 years agoFix nightly test (really).
batt [Wed, 16 Feb 2011 11:58:43 +0000 (11:58 +0000)]
Fix nightly test (really).

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

13 years agoUse more descriptive error messages for invalid stacks in proc_new()
lottaviano [Tue, 15 Feb 2011 13:32:19 +0000 (13:32 +0000)]
Use more descriptive error messages for invalid stacks in proc_new()

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

13 years agoFix nightly test.
batt [Mon, 14 Feb 2011 16:50:34 +0000 (16:50 +0000)]
Fix nightly test.

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

13 years agoSpacing fix
aleph [Sun, 13 Feb 2011 12:16:35 +0000 (12:16 +0000)]
Spacing fix

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

13 years agosam3n4 cpu def: fix comment
aleph [Sun, 13 Feb 2011 12:16:08 +0000 (12:16 +0000)]
sam3n4 cpu def: fix comment

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

13 years agosam3: fix clock initialization to work with sam3x too
aleph [Sun, 13 Feb 2011 12:13:07 +0000 (12:13 +0000)]
sam3: fix clock initialization to work with sam3x too

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

13 years agoAdd SAM3X8 support: linker script, cpu detection, wizard CPU definition
aleph [Sun, 13 Feb 2011 12:12:05 +0000 (12:12 +0000)]
Add SAM3X8 support: linker script, cpu detection, wizard CPU definition

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

13 years agosam3: new cpu SAM3X8, add I/O base addresses, and update interrupt list
aleph [Sun, 13 Feb 2011 12:10:20 +0000 (12:10 +0000)]
sam3: new cpu SAM3X8, add I/O base addresses, and update interrupt list

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

13 years agoUSB: allow to configure the maximum packet size of EP0
arighi [Fri, 11 Feb 2011 15:02:21 +0000 (15:02 +0000)]
USB: allow to configure the maximum packet size of EP0

All USB devices support endpoint 0 (EP0) when powered up. This endpoint
is the target of the default pipe. After the attachment of a device has
been detected, the USB software uses endpoint 0 to initialise the
device, perform generic (i.e., non device-specific) configuration, and
obtain information about the other endpoints provided by the device.

The descriptor of EP0 is hard-coded into the low-level device driver of
each target platform, and cannot be re-defined by the user to implement
a custom USB device. So, expose the maximum packet size of this special
endpoint as a configurable parameter into the wizard.

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

13 years agomove ACCESS_SAFE() macro into bertos/cfg/compiler.h
arighi [Fri, 11 Feb 2011 15:02:16 +0000 (15:02 +0000)]
move ACCESS_SAFE() macro into bertos/cfg/compiler.h

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

13 years agoSTM32: USB: handle both input and output requests in the event handler callback
arighi [Fri, 11 Feb 2011 15:02:12 +0000 (15:02 +0000)]
STM32: USB: handle both input and output requests in the event handler callback

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

13 years agoUpdated default crystal and CPU frequency.
lottaviano [Fri, 11 Feb 2011 10:28:28 +0000 (10:28 +0000)]
Updated default crystal and CPU frequency.

The previous crystal value didn't exist. Fixed default CPU frequency
and crystal value.

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

13 years agoWhite space fixes.
lottaviano [Fri, 11 Feb 2011 10:25:34 +0000 (10:25 +0000)]
White space fixes.

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

13 years agoSTM32: GPIO: use uint16_t for the mask of pins that we want read/write
arighi [Thu, 10 Feb 2011 13:42:22 +0000 (13:42 +0000)]
STM32: GPIO: use uint16_t for the mask of pins that we want read/write

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

13 years agorandom: add module dependencies
arighi [Wed, 9 Feb 2011 15:23:50 +0000 (15:23 +0000)]
random: add module dependencies

For now, just include the union of all the possible dependencies.
For the future it would be better to selectively include only the
required dependencies in function of the RANDOM_SECURITY_LEVEL
parameter.

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

13 years agorandom: integrate the random module into the wizard
arighi [Wed, 9 Feb 2011 15:23:48 +0000 (15:23 +0000)]
random: integrate the random module into the wizard

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

13 years agoCM3: allow to define function in RAM by the RAM_FUNC macro
arighi [Wed, 9 Feb 2011 15:23:45 +0000 (15:23 +0000)]
CM3: allow to define function in RAM by the RAM_FUNC macro

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

13 years agoUSB: define the new options CONFIG_USB_EP_MAX and CONFIG_USB_INTERFACE_MAX in the...
arighi [Wed, 9 Feb 2011 09:06:21 +0000 (09:06 +0000)]
USB: define the new options CONFIG_USB_EP_MAX and CONFIG_USB_INTERFACE_MAX in the example projects

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

13 years agoUSB: max number of endpoints can be equal to the number of interfaces
arighi [Wed, 9 Feb 2011 09:06:17 +0000 (09:06 +0000)]
USB: max number of endpoints can be equal to the number of interfaces

When only the endpoint 0 is used for a USB device, the number of
endpoints can be equal to the number of interfaces.

This also fixes the following bug in the nightly test build:
  bertos/drv/usb_endpoint.h:77: error: size of array 'STATIC_ASSERTION_FAILED__' is negative

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

13 years agoSTM32: RTC: add missing include
arighi [Mon, 7 Feb 2011 15:32:45 +0000 (15:32 +0000)]
STM32: RTC: add missing include

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

13 years agousb: fix the name of endpoint's direction in debugging messages
arighi [Mon, 7 Feb 2011 15:30:10 +0000 (15:30 +0000)]
usb: fix the name of endpoint's direction in debugging messages

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

13 years agousb: check the real number of endpoints in STATIC_ASSERT()
arighi [Mon, 7 Feb 2011 14:17:11 +0000 (14:17 +0000)]
usb: check the real number of endpoints in STATIC_ASSERT()

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

13 years agousb: make the maximum number of interfaces and endpoints as configuration parameters
arighi [Mon, 7 Feb 2011 13:53:48 +0000 (13:53 +0000)]
usb: make the maximum number of interfaces and endpoints as configuration parameters

Allow to change the maximum number of supported interfaces and endpoints
per device from the wizard.

These options can be useful to create custom USB devices without
changing internal BeRTOS components.

If only the standard USB devices already supported by BeRTOS are used
there's no need to change such options, and the default behaviour is to
auto-detect these values and evaluate them at compile-time, according to
the selected drivers.

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

13 years agoflash: fix example usage documentation
arighi [Mon, 7 Feb 2011 11:43:50 +0000 (11:43 +0000)]
flash: fix example usage documentation

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

13 years agoSTM32: RTC: add dependency of module "proc"
arighi [Mon, 7 Feb 2011 10:50:43 +0000 (10:50 +0000)]
STM32: RTC: add dependency of module "proc"

The RTC driver makes use of cpu_relax(). Be sure the proc module has
been properly initialized before starting the RTC when CONFIG_KERN is
enabled.

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

13 years agoSTM32-P103: add real-time clock (RTC) driver
arighi [Fri, 4 Feb 2011 17:48:11 +0000 (17:48 +0000)]
STM32-P103: add real-time clock (RTC) driver

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

13 years agotimer: fix a build warning and add a comment
arighi [Fri, 4 Feb 2011 10:15:57 +0000 (10:15 +0000)]
timer: fix a build warning and add a comment

Fix the following build warning:
 bertos/drv/timer.c:292: warning: signed and unsigned type in conditional expression

And comment the formula used to evaluate the timer delta.

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

13 years agoMerged from external project:
batt [Thu, 3 Feb 2011 18:29:25 +0000 (18:29 +0000)]
Merged from external project:
**********
r30427 | aleph | 2011-02-03 17:20:19 +0100 (gio, 03 feb 2011) | 2 lines

timer driver: fix wrap bug in HP timer delay

**********

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

13 years agoAdd missing configuration file for EEPROM driver.
batt [Thu, 3 Feb 2011 18:21:41 +0000 (18:21 +0000)]
Add missing configuration file for EEPROM driver.

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

13 years agoFix comment.
batt [Thu, 3 Feb 2011 18:21:16 +0000 (18:21 +0000)]
Fix comment.

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

13 years agoLoad new page only on buffered devices.
batt [Thu, 3 Feb 2011 18:19:43 +0000 (18:19 +0000)]
Load new page only on buffered devices.

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

13 years agoAdd coding style checker script.
lottaviano [Thu, 3 Feb 2011 13:25:02 +0000 (13:25 +0000)]
Add coding style checker script.

Usage: codingstyle.pl < file/to/test
Utility script to check the coding style of each file.

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

13 years agoDo not send a stop condition while sending the slave address.
batt [Thu, 3 Feb 2011 13:10:42 +0000 (13:10 +0000)]
Do not send a stop condition while sending the slave address.

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

13 years agoCorrectly handle reading/writing after EOF.
batt [Wed, 2 Feb 2011 21:02:54 +0000 (21:02 +0000)]
Correctly handle reading/writing after EOF.

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

13 years agoTake into account also the start block on trimmed devices.
batt [Wed, 2 Feb 2011 21:00:18 +0000 (21:00 +0000)]
Take into account also the start block on trimmed devices.

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

13 years agoAdd new function: kfile_copy().
batt [Wed, 2 Feb 2011 16:12:16 +0000 (16:12 +0000)]
Add new function: kfile_copy().

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

13 years agoAdd KFile seek and size members support.
batt [Wed, 2 Feb 2011 16:11:08 +0000 (16:11 +0000)]
Add KFile seek and size members support.

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

13 years agoRemove from documentation struct names not used.
lottaviano [Fri, 14 Jan 2011 08:27:06 +0000 (08:27 +0000)]
Remove from documentation struct names not used.

There are some structs defined as:
typedef struct _Foo {
...
} Foo;

With this patch, only Foo shows up in the documentation instead
of _Foo.

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

13 years agodoc: Add pool module documentation.
lottaviano [Fri, 14 Jan 2011 08:24:59 +0000 (08:24 +0000)]
doc: Add pool module documentation.

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

13 years agoAdd wizard support for ATmega2560
lottaviano [Wed, 12 Jan 2011 11:56:44 +0000 (11:56 +0000)]
Add wizard support for ATmega2560

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

13 years agodoc: Add the short introduction and OOP pages to generated docs
lottaviano [Tue, 4 Jan 2011 22:04:53 +0000 (22:04 +0000)]
doc: Add the short introduction and OOP pages to generated docs

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

13 years agodoc: Add clarifications for doxygen generated documentation
lottaviano [Tue, 4 Jan 2011 22:03:08 +0000 (22:03 +0000)]
doc: Add clarifications for doxygen generated documentation

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

13 years agodoc: Move short introduction page to general-introduction
lottaviano [Tue, 4 Jan 2011 22:02:03 +0000 (22:02 +0000)]
doc: Move short introduction page to general-introduction

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

13 years agodoc: Add README file, sorely missing from source code distribution
lottaviano [Tue, 4 Jan 2011 22:00:27 +0000 (22:00 +0000)]
doc: Add README file, sorely missing from source code distribution

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

13 years agoFilter always the menu warning, for nightly test.
asterix [Tue, 4 Jan 2011 09:28:00 +0000 (09:28 +0000)]
Filter always the menu warning, for nightly test.

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

13 years agoFix compilation issues on pool.h
lottaviano [Mon, 3 Jan 2011 09:52:12 +0000 (09:52 +0000)]
Fix compilation issues on pool.h

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

13 years agodoc: Move List documentation into its own section.
lottaviano [Mon, 3 Jan 2011 09:51:48 +0000 (09:51 +0000)]
doc: Move List documentation into its own section.

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

13 years agodoc: Add documentation for ASSERT and ASSERT2.
lottaviano [Mon, 3 Jan 2011 09:51:06 +0000 (09:51 +0000)]
doc: Add documentation for ASSERT and ASSERT2.

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

13 years agoSilent and fix warnings for nigthly test.
asterix [Mon, 3 Jan 2011 09:46:30 +0000 (09:46 +0000)]
Silent and fix warnings for nigthly test.

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

13 years agoRemove from nigthly test.
asterix [Mon, 3 Jan 2011 09:45:39 +0000 (09:45 +0000)]
Remove from nigthly test.

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

13 years agoRevert wrong commit, enabling the avr and arm nigthly test.
asterix [Mon, 3 Jan 2011 09:43:49 +0000 (09:43 +0000)]
Revert wrong commit, enabling the avr and arm nigthly test.

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

13 years agoRemove tcp server example for to much warnings of the lwip.
asterix [Thu, 30 Dec 2010 09:14:14 +0000 (09:14 +0000)]
Remove tcp server example for to much warnings of the lwip.

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

14 years agoAdd support for ATmega2560.
lottaviano [Thu, 23 Dec 2010 18:50:44 +0000 (18:50 +0000)]
Add support for ATmega2560.

Signed-off-by: Brian Fiegel <bfiegel@engineerweb.org>
Reviewed-by: Luca Ottaviano <lottaviano@develer.com>
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@4655 38d2e660-2303-0410-9eaa-f027e97ec537

14 years agowizard: Add missing import.
lottaviano [Thu, 23 Dec 2010 18:02:56 +0000 (18:02 +0000)]
wizard: Add missing import.

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

14 years agoRemove arduino preset from night_test awaiting the avr toolchain updates on building...
asterix [Thu, 23 Dec 2010 09:27:00 +0000 (09:27 +0000)]
Remove arduino preset from night_test awaiting the avr toolchain updates on building system test.

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

14 years agowizard: Fix crash for old python versions
lottaviano [Wed, 22 Dec 2010 17:48:12 +0000 (17:48 +0000)]
wizard: Fix crash for old python versions

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

14 years agoAdd TFTP server module.
lottaviano [Wed, 22 Dec 2010 14:41:09 +0000 (14:41 +0000)]
Add TFTP server module.

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

14 years agoFix lwip compilation with arm-2010.09-51- toolchain
lottaviano [Wed, 22 Dec 2010 14:11:22 +0000 (14:11 +0000)]
Fix lwip compilation with arm-2010.09-51- toolchain

The error ESHUTDOWN was not recognized with the latest
arm toolchain because it requires a particular define.

This patch defines the __LINUX_ERRNO_EXTENSIONS__ macro
at the top of the lwip.c file because it's required only
to compile lwip.
If needed, it should be defined only for arm toolchains.

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

14 years agoFix pool module compilation issues.
lottaviano [Wed, 22 Dec 2010 09:40:48 +0000 (09:40 +0000)]
Fix pool module compilation issues.

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

14 years agoRemove kludge for c++.
lottaviano [Mon, 20 Dec 2010 12:10:41 +0000 (12:10 +0000)]
Remove kludge for c++.

The kludge removed warnings when compiling files with c++,
used only in the demo.
However, if the user uses a path to the compiler which
contains '++' somewhere (eg.
CodeSourcery/Sourcery_G++_Lite/bin/arm-none-eabi-"gcc"), the
C specific flags are removed.

This patch solves the issues by clearing out the C specific
flags only in the demo.

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

14 years agodoc: Added FIFO module documentation.
lottaviano [Thu, 9 Dec 2010 17:56:04 +0000 (17:56 +0000)]
doc: Added FIFO module documentation.

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

14 years agoChange linking script options to allow user defined linker scripts
lottaviano [Tue, 7 Dec 2010 15:31:04 +0000 (15:31 +0000)]
Change linking script options to allow user defined linker scripts

A user may change the linker script for his purposes. This patch
removes warnings when he does so.

The default linker script can now be overridden by changing
LD_FLAGS in user makefile with the following option:
-Wl,-T path/to/linker_script.ld

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

14 years agoSigned-off-by: Robert Marshall KI4MCW <ki4mcw@gmail.com>
batt [Tue, 7 Dec 2010 11:04:38 +0000 (11:04 +0000)]
Signed-off-by: Robert Marshall KI4MCW <ki4mcw@gmail.com>
Patch for the AX.25 module to provide support for
the has-been-repeated flag in received frames.

This flag is set using the high bit (0x80) of the SSID byte for each
call sign in the path. The patch attached here checks for this flag
when parsing incoming packets, and (per suggestion from Francesco)
stores the flag bit-mapped to a single byte added to the AX25 context.

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

14 years agoSigned-off-by: Robert Marshall KI4MCW <ki4mcw@gmail.com>
batt [Mon, 6 Dec 2010 12:07:59 +0000 (12:07 +0000)]
Signed-off-by: Robert Marshall KI4MCW <ki4mcw@gmail.com>
According to the protocol document...

http://www.tapr.org/pdf/AX25.2.2.pdf

...bits 6 and 5 in the SSID should be set to 1 if unused. In a
simplified use case such as APRS, bit 7 can be set to 0 for the source
and destination SSIDs. This yields an offset of 0x60 for all SSIDs in
the path, which can be ORed in prior to transmission.

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

14 years agodoc: Clarify kfile_read() behaviour.
lottaviano [Mon, 6 Dec 2010 11:53:30 +0000 (11:53 +0000)]
doc: Clarify kfile_read() behaviour.

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

14 years agoSet version number to a pre-release.
batt [Fri, 3 Dec 2010 15:59:52 +0000 (15:59 +0000)]
Set version number to a pre-release.

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

14 years agoRemove unneeded push.
batt [Fri, 3 Dec 2010 15:05:57 +0000 (15:05 +0000)]
Remove unneeded push.

The push of xPSR when the kernel is cooperative is not needed and even dangerous.
The ARM EABI states that the stack at functions entry should be aligned to a 64bit
boundary.
Since the space reserved for xPSR was never popped out, the stack was misaligned!

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

14 years agoRefactor in order to clarify.
batt [Fri, 3 Dec 2010 14:55:28 +0000 (14:55 +0000)]
Refactor in order to clarify.

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

14 years agoChange to a more readable name.
batt [Fri, 3 Dec 2010 14:51:51 +0000 (14:51 +0000)]
Change to a more readable name.

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

14 years agoSTM32, serial driver: add support for STM32F101C4, i.e. only 2 serials instead of 3
aleph [Thu, 2 Dec 2010 16:15:45 +0000 (16:15 +0000)]
STM32, serial driver: add support for STM32F101C4, i.e. only 2 serials instead of 3

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

14 years agoAdd base support for STM32F101C4 Cortex-M3 cpu.
aleph [Thu, 2 Dec 2010 15:35:33 +0000 (15:35 +0000)]
Add base support for STM32F101C4 Cortex-M3 cpu.

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

14 years agoAdd more test to nightly test.
asterix [Mon, 29 Nov 2010 06:59:33 +0000 (06:59 +0000)]
Add more test to nightly test.

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

14 years agoAdd renamed preset makefiles.
asterix [Mon, 29 Nov 2010 06:58:58 +0000 (06:58 +0000)]
Add renamed preset makefiles.

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

14 years agoUpdate the presets.
asterix [Sun, 28 Nov 2010 21:46:45 +0000 (21:46 +0000)]
Update the presets.

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

14 years agoUse board prefix for the presets.
asterix [Sun, 28 Nov 2010 21:38:23 +0000 (21:38 +0000)]
Use board prefix for the presets.

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

14 years agoUpdate the presets.
asterix [Sun, 28 Nov 2010 21:35:38 +0000 (21:35 +0000)]
Update the presets.

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

14 years agoUse prefix for the presets.
asterix [Sun, 28 Nov 2010 21:26:59 +0000 (21:26 +0000)]
Use prefix for the presets.

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

14 years agoUpdate the presets.
asterix [Sun, 28 Nov 2010 21:23:08 +0000 (21:23 +0000)]
Update the presets.

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

14 years agoUse prefix for the presets.
asterix [Sun, 28 Nov 2010 21:15:17 +0000 (21:15 +0000)]
Use prefix for the presets.

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

14 years agoUpdate the presets.
asterix [Sun, 28 Nov 2010 21:13:31 +0000 (21:13 +0000)]
Update the presets.

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

14 years agoUse prefix for the presets.
asterix [Sun, 28 Nov 2010 21:01:05 +0000 (21:01 +0000)]
Use prefix for the presets.

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

14 years agoUpdate the presets.
asterix [Sun, 28 Nov 2010 20:56:05 +0000 (20:56 +0000)]
Update the presets.

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

14 years agoUse prefix on the presets name.
asterix [Sun, 28 Nov 2010 20:44:02 +0000 (20:44 +0000)]
Use prefix on the presets name.

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

14 years agoUpdate presets and fix for the new name.
asterix [Sun, 28 Nov 2010 20:41:59 +0000 (20:41 +0000)]
Update presets and fix for the new name.

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

14 years agoUse prefix for the presets.
asterix [Sun, 28 Nov 2010 20:28:30 +0000 (20:28 +0000)]
Use prefix for the presets.

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

14 years agoFix hw path for the aprs preset.
asterix [Sun, 28 Nov 2010 20:23:26 +0000 (20:23 +0000)]
Fix hw path for the aprs preset.

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

14 years agoUpdate the preset and fix for the new name.
asterix [Sun, 28 Nov 2010 20:13:10 +0000 (20:13 +0000)]
Update the preset and fix for the new name.

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

14 years agoAdd prefix to the preset name.
asterix [Sun, 28 Nov 2010 20:08:35 +0000 (20:08 +0000)]
Add prefix to the preset name.

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

14 years agoUpdate the preset and fix for the new name.
asterix [Sun, 28 Nov 2010 20:07:25 +0000 (20:07 +0000)]
Update the preset and fix for the new name.

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

14 years agoUse unique name for arduino-mega benchmarck preset.
asterix [Sun, 28 Nov 2010 19:55:33 +0000 (19:55 +0000)]
Use unique name for arduino-mega benchmarck preset.

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

14 years agoUpdate preset and comply to new parser module.
asterix [Sun, 28 Nov 2010 19:35:54 +0000 (19:35 +0000)]
Update preset and comply to new parser module.

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

14 years agoAdd parser configuration include.
asterix [Sun, 28 Nov 2010 19:32:09 +0000 (19:32 +0000)]
Add parser configuration include.

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

14 years agoReformat.
asterix [Sun, 28 Nov 2010 19:30:55 +0000 (19:30 +0000)]
Reformat.

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

14 years agodoc: Add documentation for keyboard driver.
lottaviano [Sun, 28 Nov 2010 16:49:45 +0000 (16:49 +0000)]
doc: Add documentation for keyboard driver.

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