]> rtime.felk.cvut.cz Git - sysless.git/log
sysless.git
8 years agocmdproc: Make backspace work even in sterm master
Michal Sojka [Wed, 30 Mar 2016 12:21:17 +0000 (14:21 +0200)]
cmdproc: Make backspace work even in sterm

sterm sends chr(127) instead of backspace.

10 years agocmdproc: Add history handling
Michal Sojka [Thu, 1 Aug 2013 09:08:17 +0000 (11:08 +0200)]
cmdproc: Add history handling

Now, command processor can remember several last entered lines. The user can
naviagte the history with Up/Down or Ctrl-P/Ctrl-N keys.

When hist and hist_size fields of ed_line are zero, the behavior of
the cmdproc should be the same as without this change.

10 years agocmdproc: Erase end of line after backspace
Michal Sojka [Thu, 1 Aug 2013 08:44:27 +0000 (10:44 +0200)]
cmdproc: Erase end of line after backspace

10 years agoRename long variable
Michal Sojka [Wed, 31 Jul 2013 15:50:55 +0000 (17:50 +0200)]
Rename long variable

10 years agocmdproc_test: Set terminal to non-canonical mode
Michal Sojka [Wed, 31 Jul 2013 15:43:36 +0000 (17:43 +0200)]
cmdproc_test: Set terminal to non-canonical mode

This is to allow testing of backspace handling.

10 years agocmdproc: Add backspace handling
Michal Sojka [Wed, 31 Jul 2013 14:20:38 +0000 (16:20 +0200)]
cmdproc: Add backspace handling

10 years agocmdproc: Add more comments
Michal Sojka [Wed, 31 Jul 2013 14:17:48 +0000 (16:17 +0200)]
cmdproc: Add more comments

10 years agoWhitespace fixes
Michal Sojka [Wed, 31 Jul 2013 13:56:29 +0000 (15:56 +0200)]
Whitespace fixes

10 years agoFix missing ':' in Emacs setup
Michal Sojka [Wed, 31 Jul 2013 13:52:15 +0000 (15:52 +0200)]
Fix missing ':' in Emacs setup

10 years agocmdproc: Handle returned error correctly
Michal Sojka [Wed, 31 Jul 2013 13:49:00 +0000 (15:49 +0200)]
cmdproc: Handle returned error correctly

This case should not happen when cmd_processor_run() calls the
respective functions, but let's fix this is somebody calls the functions
differently.

10 years agoAdd tests for space separated parameters
Michal Sojka [Wed, 31 Jul 2013 08:29:23 +0000 (10:29 +0200)]
Add tests for space separated parameters

10 years agoFixup doc
Michal Sojka [Wed, 31 Jul 2013 08:18:19 +0000 (10:18 +0200)]
Fixup doc

10 years agoConvert command names to lower case - easier to type
Michal Sojka [Wed, 31 Jul 2013 08:15:45 +0000 (10:15 +0200)]
Convert command names to lower case - easier to type

10 years agoDo not read unset parameter
Michal Sojka [Wed, 31 Jul 2013 08:15:29 +0000 (10:15 +0200)]
Do not read unset parameter

10 years agoAdd support for parsing of space separated parameters
Michal Sojka [Wed, 31 Jul 2013 07:38:22 +0000 (09:38 +0200)]
Add support for parsing of space separated parameters

10 years agoAdd more comments to the command processor
Michal Sojka [Wed, 31 Jul 2013 07:01:01 +0000 (09:01 +0200)]
Add more comments to the command processor

11 years agoRemove lpc2364_addat
Michal Sojka [Tue, 12 Mar 2013 08:00:14 +0000 (09:00 +0100)]
Remove lpc2364_addat

This was requested by the author, because this is no longer used (and
maintained).

11 years agolpc21xx: Add bits of PCON register
Michal Sojka [Sat, 2 Mar 2013 17:41:57 +0000 (18:41 +0100)]
lpc21xx: Add bits of PCON register

11 years agoUpdate Makefile stubs (typos, bashism)
Michal Sojka [Sat, 2 Mar 2013 16:20:54 +0000 (17:20 +0100)]
Update Makefile stubs (typos, bashism)

11 years agoStatus of merging with uLan's sysless
Michal Sojka [Sun, 30 Dec 2012 23:15:46 +0000 (00:15 +0100)]
Status of merging with uLan's sysless

The current status is: Before the merge, we have 16 board in a
compilable state, now we have only 8 of them. I may fix a few more
boards in future, but more probably I'll remove the support for boards
that I do not use.

11 years agoThe h8mirosot board ldscripts modified to allow building with ELF-based compiler
Michal Sojka [Tue, 3 Feb 2009 09:05:29 +0000 (10:05 +0100)]
The h8mirosot board ldscripts modified to allow building with ELF-based compiler

This commit is analogous to 8c8d5a1eb8d2e292dbc3e0a94cffc6781e74dbfc,
which did the same changes for h8eurobot board.

11 years agolpceurobot board builds without errors
Michal Sojka [Sun, 30 Dec 2012 22:30:13 +0000 (23:30 +0100)]
lpceurobot board builds without errors

Not checked with the hardware.

11 years agoMerge with git://ulan.git.sourceforge.net/gitroot/ulan/sysless
Michal Sojka [Sat, 29 Dec 2012 23:12:01 +0000 (00:12 +0100)]
Merge with git://ulan.git.sourceforge.net/gitroot/ulan/sysless

The goal is to synchronize with Pavel Pisa's sysless from uLAN project.
Their sysless is roughly based on our sysless but evolves more rapidly
(and does not contain so much crap :-). With this commit I want to get
their updates of the common code base to this repository.

This is only an initial attempt with all conflict resolved "somehow".
Compilation errors will be resolved in follow up commits.

Conflicts:
arch/Makefile.omk
arch/arm/Makefile.omk
arch/arm/generic/Makefile.omk
arch/arm/generic/defines/Makefile.omk
arch/arm/generic/defines/cpu_def.h
arch/arm/generic/libs/misc/Makefile.omk
arch/arm/generic/libs/misc/system_stub.h
arch/arm/mach-at91sam7/Makefile.omk
arch/arm/mach-lpc13xx/Makefile
arch/arm/mach-lpc13xx/Makefile.omk
arch/arm/mach-lpc13xx/defines/Makefile.omk
arch/arm/mach-lpc13xx/defines/core_cm3.h
arch/arm/mach-lpc13xx/libs/Makefile
arch/arm/mach-lpc13xx/libs/Makefile.omk
arch/arm/mach-lpc17xx/defines/Makefile.omk
arch/arm/mach-lpc17xx/libs/hal/Makefile.omk
arch/arm/mach-lpc17xx/libs/hal/hal.c
arch/arm/mach-lpc17xx/libs/hal/hal_machperiph.c
arch/arm/mach-lpc17xx/libs/hal/hal_machperiph.h
arch/arm/mach-lpc17xx/libs/hal/startup.c
arch/arm/mach-lpc21xx/Makefile.omk
arch/arm/mach-lpc21xx/defines/LPC210x.h
arch/arm/mach-lpc21xx/defines/LPC214x.h
arch/arm/mach-lpc21xx/defines/LPC21xx.h
arch/arm/mach-lpc21xx/defines/LPC22xx.h
arch/arm/mach-lpc21xx/defines/armVIC.h
arch/arm/mach-lpc21xx/defines/lpcADC.h
arch/arm/mach-lpc21xx/defines/lpcEMC.h
arch/arm/mach-lpc21xx/defines/lpcGPIO.h
arch/arm/mach-lpc21xx/defines/lpcI2C.h
arch/arm/mach-lpc21xx/defines/lpcPIN.h
arch/arm/mach-lpc21xx/defines/lpcRTC.h
arch/arm/mach-lpc21xx/defines/lpcSCB.h
arch/arm/mach-lpc21xx/defines/lpcSPI.h
arch/arm/mach-lpc21xx/defines/lpcTMR.h
arch/arm/mach-lpc21xx/defines/lpcUART.h
arch/arm/mach-lpc21xx/defines/lpcUSB.h
arch/arm/mach-lpc21xx/defines/lpcVIC.h
arch/arm/mach-lpc21xx/defines/lpcWD.h
arch/arm/mach-lpc21xx/libs/Makefile.omk
arch/arm/mach-lpc23xx/Makefile.omk
arch/arm/mach-lpc23xx/defines/Makefile
arch/arm/mach-lpc23xx/defines/lpcI2C.h
arch/arm/mach-lpc23xx/libs/Makefile.omk
arch/generic/Makefile.omk
arch/generic/defines/Makefile.omk
arch/generic/defines/endian.h
arch/generic/defines/irq_generic.h
arch/generic/defines/keyval_id_his.h
arch/generic/defines/lt_timer.h
arch/generic/defines/lt_timer_types.h
arch/h8300/generic/Makefile.omk
arch/h8300/generic/bloader/bloader.c
arch/h8300/generic/drivers/bit_iic.c
arch/h8300/generic/drivers/h8_iic.c
arch/h8300/generic/drivers/periph/iic_ifc.h
arch/h8300/generic/drivers/periph/sci_rs232.h
arch/h8300/generic/drivers/sci_rs232.c
arch/h8300/generic/libs/boot/boot.c
arch/h8300/generic/libs/boot/boot_fn.c
arch/h8300/generic/libs/boot/boot_fn.h
arch/h8300/generic/libs/boot/loader.c
arch/h8300/generic/libs/misc/excptvec.c
arch/h8300/generic/libs/misc/system_stub.c
arch/h8300/generic/tools/tohit/hiterm.c
arch/h8300/mach-2633/defines/h8s2633h.h
arch/h8300/mach-2633/drivers/periph/sci_regs.h
arch/h8300/mach-2638/defines/h8s2638h.h
arch/h8300/mach-2638/drivers/periph/sci_regs.h
board/Makefile.omk
board/arm/lpc17xx-common/defines/system_def-ulmi.h
board/arm/lpc17xx-common/libs/bspbase/bsp0hwinit.c
board/arm/lpc17xx-common/libs/bspbase/bspbase.h
board/arm/lpc17xx-common/libs/bspbase/uart.c
board/arm/lpc17xx-common/libs/bspbase/uart.h
board/arm/lpc17xx-common/libs/ldscripts/lpc1754.ld-app
board/arm/lpc17xx-common/libs/ldscripts/lpc1754.ld-boot
board/arm/lpc17xx-common/libs/ldscripts/lpc1754.ld-cfg
board/h8300/edk2638/defines/system_def.h
board/h8300/edk2638/defines/system_def_edk2638.h
board/h8300/edk2638/libs/bspbase/bsp0common.c
board/h8300/edk2638/libs/bspbase/bsp0hwinit.c
board/h8300/h8canusb/defines/system_def.h
board/h8300/h8canusb/defines/system_def_h8canusb.h
board/h8300/h8canusb/libs/bspbase/bsp0common.c
board/h8300/h8canusb/libs/bspbase/bsp0hwinit.c
board/h8300/h8eurobot/config/config.h8eurobot
board/h8300/h8eurobot/defines/system_def.h
board/h8300/h8eurobot/defines/system_def_h8eurobot.h
board/h8300/h8eurobot/libs/bspbase/bsp0common.c
board/h8300/h8eurobot/libs/bspbase/bsp0hwinit.c
board/h8300/h8heli/defines/system_def.h
board/h8300/h8heli/libs/bspbase/bsp0common.c
board/h8300/h8heli/libs/bspbase/bsp0hwinit.c
board/h8300/h8heli/servodrv/mycan.c
board/h8300/h8heli/servodrv/mycan_old.c
board/h8300/h8heli/servodrv/servodrv.c
board/h8300/h8heli/servodrv/servoout.c
board/h8300/h8mirosot/defines/system_def.h
board/h8300/h8mirosot/defines/system_def_h8mirosot.h
board/h8300/h8mirosot/libs/bspbase/bsp0common.c
board/h8300/h8mirosot/libs/bspbase/bsp0hwinit.c
board/h8300/hi_cpu2/config.hi_cpu2
board/h8300/hi_cpu2/defines/system_def.h
board/h8300/hi_cpu2/defines/system_def_hi_cpu2.h
board/h8300/hi_cpu2/libs/bspbase/bsp0common.c
board/h8300/hi_cpu2/libs/bspbase/bsp0hwinit.c
board/h8300/hi_cpu2/libs/hi_cpu2.ld-bload
board/h8300/hi_cpu2/libs/hi_cpu2.ld-boot
board/h8300/hi_cpu2/libs/hi_cpu2.ld-flash
board/h8300/hi_cpu2/libs/hi_cpu2.ld-flashnoram
board/h8300/jt_usb1/defines/system_def.h
board/h8300/jt_usb1/defines/system_def_jt_usb1.h
board/h8300/jt_usb1/libs/bspbase/bsp0common.c
board/h8300/jt_usb1/libs/bspbase/bsp0hwinit.c
libs4c/cmdproc/Makefile.omk
libs4c/cmdproc/cmd_io.c
libs4c/cmdproc/cmd_io_line.c
libs4c/cmdproc/cmd_proc.c
libs4c/cmdproc/cmd_proc.h
libs4c/cmdproc/cmdio_std_file.c
libs4c/cmdproc/cmdio_std_line.c
libs4c/keyval/keyvalpb.h
libs4c/misc/Makefile.omk
libs4c/misc/utils.c
libs4c/misc/utils.h
libs4c/usb/base/usb.c
libs4c/usb/base/usb/usb.h
libs4c/usb/base/usb/usb_spec.h
libs4c/usb/base/usb/usbdebug.h
libs4c/usb/lpcusb/lpc.c
libs4c/usb/lpcusb/lpcusb.c
libs4c/usb/more/usb/usb_loader.h
libs4c/usb/pdiusb/pdiusb.c
libs4c/usb/pdiusb/usb/pdiusb.h

11 years agoRemove minibee app
Michal Sojka [Sat, 29 Dec 2012 22:15:42 +0000 (23:15 +0100)]
Remove minibee app

This application does not build after removal of ebb lib in the previous
commit.

11 years agoLPC17xx and LPC178x: updates to ensure compatibility with new NXP header files.
Pavel Pisa [Fri, 21 Dec 2012 20:23:11 +0000 (21:23 +0100)]
LPC17xx and LPC178x: updates to ensure compatibility with new NXP header files.

The most of the peripheral code can work with newer
NXP LPC178x headers as well.

Signed-off-by: Pavel Pisa <pisa@cmp.felk.cvut.cz>
11 years agoLPC21xx: Unify lpc21isp calling for ul_usb1 based boards.
Pavel Pisa [Fri, 21 Dec 2012 18:04:08 +0000 (19:04 +0100)]
LPC21xx: Unify lpc21isp calling for ul_usb1 based boards.

The updated configurations still defaults to the old lpc21isp
version 1.39 with parameters order adapted for OMK build.

But new version can be used if

  make load-boot LPC21ISP_OLD_PARAM_ORDER=n

is used. Serial port defaults to /dev/ttyUSB0
but alternative can be selected by LPC_TTY=/dev/ttyS0
make variable.

Unconditional switch to the newer version is problematic
because lpc21isp 1.85 seems to not work reliable with
old LPC21xx targets when connected over FTDI.

Signed-off-by: Pavel Pisa <pisa@cmp.felk.cvut.cz>
11 years agoLPC178x: uLAN boot block configuration for the target.
Pavel Pisa [Thu, 20 Dec 2012 23:33:18 +0000 (00:33 +0100)]
LPC178x: uLAN boot block configuration for the target.

Tested on LX_CPU1. uLAN, USB and key-value storage working.
UART tested as well but no print or debug enabled for now.

Signed-off-by: Pavel Pisa <pisa@cmp.felk.cvut.cz>
11 years agoLPC178x: Update USB device support for new architecture.
Pavel Pisa [Thu, 20 Dec 2012 23:23:48 +0000 (00:23 +0100)]
LPC178x: Update USB device support for new architecture.

Signed-off-by: Pavel Pisa <pisa@cmp.felk.cvut.cz>
11 years agoLPC178x: Update system setup from available NXP examples.
Pavel Pisa [Thu, 20 Dec 2012 23:20:34 +0000 (00:20 +0100)]
LPC178x: Update system setup from available NXP examples.

Signed-off-by: Pavel Pisa <pisa@cmp.felk.cvut.cz>
11 years agoLPC178x: Update board support for new header files and pin configuration.
Pavel Pisa [Thu, 20 Dec 2012 23:19:06 +0000 (00:19 +0100)]
LPC178x: Update board support for new header files and pin configuration.

Signed-off-by: Pavel Pisa <pisa@cmp.felk.cvut.cz>
11 years agoLPC178x: Adapt HAL pin configuration for new pin multiplexer.
Pavel Pisa [Thu, 20 Dec 2012 23:16:48 +0000 (00:16 +0100)]
LPC178x: Adapt HAL pin configuration for new pin multiplexer.

The pin function and mode configuration is completely
revamped in LPC178x devices. Adapt HAL support for new
configuration registers organization.

Signed-off-by: Pavel Pisa <pisa@cmp.felk.cvut.cz>
11 years agoLPC178x: Add parameters for key-value storage into original header file.
Pavel Pisa [Thu, 20 Dec 2012 23:10:38 +0000 (00:10 +0100)]
LPC178x: Add parameters for key-value storage into original header file.

Signed-off-by: Pavel Pisa <pisa@cmp.felk.cvut.cz>
11 years agoLPC178x: PiKRON's LX_CPU1 board configuration.
Pavel Pisa [Thu, 20 Dec 2012 23:06:48 +0000 (00:06 +0100)]
LPC178x: PiKRON's LX_CPU1 board configuration.

The first target board of this platform is PiKRON's
LX_CPU1 board.

Main board components
  - LPC1788 - LPC1788FBD208,208LQFP
  - Xilinx Spartan 6 - XC6SLX9-2TQG144I, 144TQFP
  - 32 MB SDRAM - IS42S32800D-7TLI 144TQFP
  - 4x IRC inputs
  - Ethernet, CAN, uLAN, USB, SPI, UART 3.3V, I2C
  - SPI Flash, SD Card, 2x USB
The board design is intended for open/free release
at PiKRON's pages in the future. The assembled boards
and whole applications setups will be available
from PiKRON.

Signed-off-by: Pavel Pisa <pisa@cmp.felk.cvut.cz>
11 years agoLPC178x: LD script files for LPC1788.
Pavel Pisa [Thu, 20 Dec 2012 23:05:06 +0000 (00:05 +0100)]
LPC178x: LD script files for LPC1788.

Signed-off-by: Pavel Pisa <pisa@cmp.felk.cvut.cz>
11 years agoLPC178x: Original NXP device header file.
Pavel Pisa [Thu, 20 Dec 2012 23:02:46 +0000 (00:02 +0100)]
LPC178x: Original NXP device header file.

Signed-off-by: Pavel Pisa <pisa@cmp.felk.cvut.cz>
11 years agoIntroduction of LPC178x platform support by clone of LPC17xx.
Pavel Pisa [Thu, 20 Dec 2012 22:41:14 +0000 (23:41 +0100)]
Introduction of LPC178x platform support by clone of LPC17xx.

The LPC178x platform is similar to LPC17xx but amount
of differences is too large to keep these two architectures
in single support code without clashes.

So whole clone of LPC17xx files which are relevant for
LPC178x is provided by this commit.

Signed-off-by: Pavel Pisa <pisa@cmp.felk.cvut.cz>
11 years agoProvide basic BBCONFIG support for LPC17xx devices.
Pavel Pisa [Wed, 25 Jul 2012 18:10:36 +0000 (20:10 +0200)]
Provide basic BBCONFIG support for LPC17xx devices.

Signed-off-by: Pavel Pisa <pisa@cmp.felk.cvut.cz>
11 years agoOne more SDCC check updated.
Pavel Pisa [Sat, 21 Jul 2012 14:49:16 +0000 (16:49 +0200)]
One more SDCC check updated.

Signed-off-by: Pavel Pisa <pisa@cmp.felk.cvut.cz>
11 years agoUpdated check for SDCC compiler to support SDCC 3.2+ version.
Pavel Pisa [Sat, 21 Jul 2012 14:08:19 +0000 (16:08 +0200)]
Updated check for SDCC  compiler to support SDCC 3.2+ version.

Actual SDCC version uses only underscore starting defines
variants. Code was checked to build, but no attempt to run
on target was proceed.

Signed-off-by: Pavel Pisa <pisa@cmp.felk.cvut.cz>
12 years agolcp176x: erase FLASH up to 512kB when lcp1768 variant is used.
Pavel Pisa [Sun, 26 Feb 2012 22:03:08 +0000 (23:03 +0100)]
lcp176x: erase FLASH up to 512kB when lcp1768 variant is used.

Signed-off-by: Pavel Pisa <pisa@cmp.felk.cvut.cz>
12 years agosysless: IRQ_RETVAL must not touch its argument for void return type handler variant.
Pavel Pisa [Mon, 13 Feb 2012 17:01:26 +0000 (18:01 +0100)]
sysless: IRQ_RETVAL must not touch its argument for void return type handler variant.

Signed-off-by: Pavel Pisa <pisa@cmp.felk.cvut.cz>
12 years agoFix build for SDCC-3.1.x where size_t substitute need other conditional check.
Pavel Pisa [Sun, 22 Jan 2012 17:18:03 +0000 (18:18 +0100)]
Fix build for SDCC-3.1.x where size_t substitute need other conditional check.

Signed-off-by: Pavel Pisa <pisa@cmp.felk.cvut.cz>
12 years agoAlternative function to insert SPI message at queue head.
Pavel Pisa [Sun, 4 Dec 2011 21:46:52 +0000 (22:46 +0100)]
Alternative function to insert SPI message at queue head.

This allows immediate retransmit of current message
from transfer callback function.

Signed-off-by: Pavel Pisa <pisa@cmp.felk.cvut.cz>
12 years agoeb_ebb: Move eb_ebb lib from sysless to eurobot/src tree
Michal Vokac [Wed, 30 Nov 2011 16:28:17 +0000 (17:28 +0100)]
eb_ebb: Move eb_ebb lib from sysless to eurobot/src tree

Note by Michal: It seems that nobody elese uses this library now and it is
easier for us when this library lives in repository, which can be
modified by Eurobot team members.

Note 2: The patch did not apply cleanly, so I simply deleted the eb_ebb
directory.

12 years agoUpdate archaic hiterm tool as well.
Pavel Pisa [Sun, 13 Nov 2011 14:30:47 +0000 (15:30 +0100)]
Update archaic hiterm tool as well.

Signed-off-by: Pavel Pisa <pisa@cmp.felk.cvut.cz>
12 years agoIt is 12 years after C99 standardization - switch to stdint.h and its types.
Pavel Pisa [Sun, 13 Nov 2011 14:25:30 +0000 (15:25 +0100)]
It is 12 years after C99 standardization - switch to stdint.h and its types.

The old types.h is deprecated and not used by sysless itself now.
If the standard C99 stdint.h is missing in the build environment,
change the compiler.

Signed-off-by: Pavel Pisa <pisa@cmp.felk.cvut.cz>
12 years agoadd keyid definition for his devices
Petr Smolik [Tue, 14 Jun 2011 18:57:58 +0000 (20:57 +0200)]
add keyid definition for his devices

Signed-off-by: Petr Smolik <petr@smoliku.cz>
12 years agoAllow to continue in case, that mach directory is not present in arch/arm (it can...
nemecep1 [Wed, 1 Jun 2011 10:21:44 +0000 (12:21 +0200)]
Allow to continue in case, that mach directory is not present in arch/arm (it can be elsewhere).

Signed-off-by: nemecep1 <pavel.nemecek1@gmail.com>
12 years agoUse standard startup files for MSP430 architecture.
Pavel Pisa [Sun, 29 May 2011 20:00:05 +0000 (22:00 +0200)]
Use standard startup files for MSP430 architecture.

The use of compiler provide standard startup files
can be selected through option
  TARGET_STDSTARTFILES = y

Signed-off-by: Pavel Pisa <pisa@cmp.felk.cvut.cz>
12 years agoMSP430 definition of atomic bit operation updated.
Pavel Pisa [Sun, 29 May 2011 19:22:54 +0000 (21:22 +0200)]
MSP430 definition of atomic bit operation updated.

The use of "+m" constrain solves problem with bung
of warnings generated during compilation.

Signed-off-by: Pavel Pisa <pisa@cmp.felk.cvut.cz>
12 years agoSupport of mspgcc 4.5.2
Vladimir Burian [Sat, 28 May 2011 21:39:57 +0000 (23:39 +0200)]
Support of mspgcc 4.5.2

Linker script has different structure. Meaning of "sfrb" and "sfrw" is
also different - hardware header is rewritten.

12 years agoC compilers are compliant enough that stdint.h can be used for integer types now.
Pavel Pisa [Fri, 27 May 2011 21:56:36 +0000 (23:56 +0200)]
C compilers are compliant enough that stdint.h can be used for integer types now.

Signed-off-by: Pavel Pisa <pisa@cmp.felk.cvut.cz>
12 years agoh8eurobot: Enable PXMC
Michal Sojka [Tue, 3 May 2011 08:41:01 +0000 (10:41 +0200)]
h8eurobot: Enable PXMC

12 years agoh8300: correct broken ld-scipts for h8eurobot and h8canusb boards.
Pavel Pisa [Mon, 2 May 2011 21:56:34 +0000 (23:56 +0200)]
h8300: correct broken ld-scipts for h8eurobot and h8canusb boards.

Signed-off-by: Pavel Pisa <pisa@cmp.felk.cvut.cz>
12 years agoh8eurobot: provide board enough time to proceed erase command.
Pavel Pisa [Mon, 2 May 2011 18:32:27 +0000 (20:32 +0200)]
h8eurobot: provide board enough time to proceed erase command.

Some similar configuration has been there probably in past
and it providing enough time to target to finish erase
is required. Sleep between commands ensures, that possible
garbage on input can be cleared by flush in next command.

Signed-off-by: Pavel Pisa <pisa@cmp.felk.cvut.cz>
12 years agoh8300: correct broken ld-scipts for h8eurobot and h8canusb boards.
Pavel Pisa [Mon, 2 May 2011 21:56:34 +0000 (23:56 +0200)]
h8300: correct broken ld-scipts for h8eurobot and h8canusb boards.

Signed-off-by: Pavel Pisa <pisa@cmp.felk.cvut.cz>
12 years agoh8300: hi_cpu2 board - correct ld-scripts breakage.
Pavel Pisa [Mon, 2 May 2011 21:55:07 +0000 (23:55 +0200)]
h8300: hi_cpu2 board - correct ld-scripts breakage.

Signed-off-by: Pavel Pisa <pisa@cmp.felk.cvut.cz>
12 years agoh8eurobot: provide board enough time to proceed erase command.
Pavel Pisa [Mon, 2 May 2011 18:32:27 +0000 (20:32 +0200)]
h8eurobot: provide board enough time to proceed erase command.

Some similar configuration has been there probably in past
and it providing enough time to target to finish erase
is required. Sleep between commands ensures, that possible
garbage on input can be cleared by flush in next command.

Signed-off-by: Pavel Pisa <pisa@cmp.felk.cvut.cz>
13 years agoLMC1: Added port pin style definition for auxual TLL I/O pins.
Pavel Pisa [Tue, 26 Apr 2011 17:42:28 +0000 (19:42 +0200)]
LMC1: Added port pin style definition for auxual TLL I/O pins.

Signed-off-by: Pavel Pisa <pisa@cmp.felk.cvut.cz>
13 years agolpc17xx: replace hard-coded vector table placement by more flexible code.
Pavel Pisa [Tue, 26 Apr 2011 10:10:07 +0000 (12:10 +0200)]
lpc17xx: replace hard-coded vector table placement by more flexible code.

Change allows to fill initial values for interrupt service
functions by override functions for global weak symbols.

Signed-off-by: Pavel Pisa <pisa@cmp.felk.cvut.cz>
13 years agoCorrect PDIUSB header include path.
Pavel Pisa [Mon, 21 Mar 2011 00:53:08 +0000 (01:53 +0100)]
Correct PDIUSB header include path.

Signed-off-by: Pavel Pisa <pisa@cmp.felk.cvut.cz>
13 years agoFix build of h8300 hi_cpu2 board support - not tested.
Pavel Pisa [Mon, 21 Mar 2011 00:49:55 +0000 (01:49 +0100)]
Fix build of h8300 hi_cpu2 board support - not tested.

Signed-off-by: Pavel Pisa <pisa@cmp.felk.cvut.cz>
13 years agoCPU defines for MSP430 architecture.
Pavel Pisa [Thu, 17 Mar 2011 15:10:42 +0000 (16:10 +0100)]
CPU defines for MSP430 architecture.

Signed-off-by: Pavel Pisa <pisa@cmp.felk.cvut.cz>
13 years agoAdded openmsp430 virtex2 board.
Vladimir Burian [Mon, 14 Mar 2011 21:25:48 +0000 (22:25 +0100)]
Added openmsp430 virtex2 board.

13 years agoAdded mach-openmsp430 arch.
Vladimir Burian [Mon, 14 Mar 2011 21:24:28 +0000 (22:24 +0100)]
Added mach-openmsp430 arch.

13 years agoAdded msp430 generic arch.
Vladimir Burian [Mon, 14 Mar 2011 21:23:29 +0000 (22:23 +0100)]
Added msp430 generic arch.

13 years agoh8300: Port the newest bloader to h8eurobot board
Michal Sojka [Wed, 16 Mar 2011 15:48:07 +0000 (16:48 +0100)]
h8300: Port the newest bloader to h8eurobot board

13 years agoh8300/bloader: Wait between botstrap phases
Michal Sojka [Wed, 16 Mar 2011 15:43:00 +0000 (16:43 +0100)]
h8300/bloader: Wait between botstrap phases

This is needed for proper bootstraping.

13 years agoh8300: Yet another update of bloader
Michal Sojka [Wed, 16 Mar 2011 15:34:54 +0000 (16:34 +0100)]
h8300: Yet another update of bloader

Now it should be bullet-proof and is tested with h8canusb.

13 years agoh8300: Update h8canusb ld scripts to work with updated bootloader
Michal Sojka [Wed, 16 Mar 2011 07:53:45 +0000 (08:53 +0100)]
h8300: Update h8canusb ld scripts to work with updated bootloader

13 years agoh8300: bloader: Fix relocation condition
Michal Sojka [Wed, 16 Mar 2011 06:32:15 +0000 (07:32 +0100)]
h8300: bloader: Fix relocation condition

Previously used __boot_fn_start is always in RAM. We must use etext to
find out where the code is stored.

13 years agoh8300: Make bloader work with ELF toolchain
Michal Sojka [Tue, 15 Mar 2011 17:50:27 +0000 (18:50 +0100)]
h8300: Make bloader work with ELF toolchain

Do not use PIC (position independent code) hacks in boot loader. Compile
it for fixed address and use different LMA and VMA in the linker scripts.
So far, only linker script for h8eurobot board was updated!

Bootstraping was tested with both 32 and 64 bit hosts and it works, despite
that 64 bit compiler produces a lot of warnings such as:
/tmp/cco5hbea.s:1218: Warning: operand #0xffffffffffffffef out of range.

13 years agoh8300: Port the newest bloader to h8eurobot board
Michal Sojka [Wed, 16 Mar 2011 15:48:07 +0000 (16:48 +0100)]
h8300: Port the newest bloader to h8eurobot board

13 years agoh8300/bloader: Wait between botstrap phases
Michal Sojka [Wed, 16 Mar 2011 15:43:00 +0000 (16:43 +0100)]
h8300/bloader: Wait between botstrap phases

This is needed for proper bootstraping.

13 years agoh8300: Yet another update of bloader
Michal Sojka [Wed, 16 Mar 2011 15:34:54 +0000 (16:34 +0100)]
h8300: Yet another update of bloader

Now it should be bullet-proof and is tested with h8canusb.

13 years agoh8300: Update h8canusb ld scripts to work with updated bootloader
Michal Sojka [Wed, 16 Mar 2011 07:53:45 +0000 (08:53 +0100)]
h8300: Update h8canusb ld scripts to work with updated bootloader

13 years agoh8300: bloader: Fix relocation condition
Michal Sojka [Wed, 16 Mar 2011 06:32:15 +0000 (07:32 +0100)]
h8300: bloader: Fix relocation condition

Previously used __boot_fn_start is always in RAM. We must use etext to
find out where the code is stored.

13 years agoh8300: Make bloader work with ELF toolchain
Michal Sojka [Tue, 15 Mar 2011 17:50:27 +0000 (18:50 +0100)]
h8300: Make bloader work with ELF toolchain

Do not use PIC (position independent code) hacks in boot loader. Compile
it for fixed address and use different LMA and VMA in the linker scripts.
So far, only linker script for h8eurobot board was updated!

Bootstraping was tested with both 32 and 64 bit hosts and it works, despite
that 64 bit compiler produces a lot of warnings such as:
/tmp/cco5hbea.s:1218: Warning: operand #0xffffffffffffffef out of range.

13 years agoFix spejblarm build
Michal Sojka [Tue, 1 Mar 2011 21:31:25 +0000 (22:31 +0100)]
Fix spejblarm build

canldtg referenced non-existent ld script. The Makefile was modified to
point to an existing one. I hope that I chosen the correct version :-)

13 years agobuild-all: Skip lpc17xx-common-ulboot
Michal Sojka [Tue, 1 Mar 2011 21:23:09 +0000 (22:23 +0100)]
build-all: Skip lpc17xx-common-ulboot

ulan libraries are needed for this build to be successful.

13 years agoAdd missing files from uLan repository
Michal Sojka [Tue, 1 Mar 2011 21:16:35 +0000 (22:16 +0100)]
Add missing files from uLan repository

These files are needed to compile some parts of sysless. Namely, this fixes
build of lpc2364-12 board.

13 years agominiarm: Comment out ld script that breaks compilation
Michal Sojka [Tue, 1 Mar 2011 20:33:52 +0000 (21:33 +0100)]
miniarm: Comment out ld script that breaks compilation

13 years agoLPC17xx: corrected mistake in ADC pin configuration.
Pavel Pisa [Tue, 1 Mar 2011 20:12:02 +0000 (21:12 +0100)]
LPC17xx: corrected mistake in ADC pin configuration.

Signed-off-by: Pavel Pisa <pisa@cmp.felk.cvut.cz>
13 years agoLPC17xx: define ADC pins in HAL GPIO style as well.
Pavel Pisa [Tue, 1 Mar 2011 19:16:57 +0000 (20:16 +0100)]
LPC17xx: define ADC pins in HAL GPIO style as well.

Signed-off-by: Pavel Pisa <pisa@cmp.felk.cvut.cz>
13 years agoAdd optional WvTest protocol output for build-all
Michal Sojka [Fri, 25 Feb 2011 22:22:01 +0000 (23:22 +0100)]
Add optional WvTest protocol output for build-all

Running make test in build-all directory colorizes the results and
produces summary numbers of successful and failed builds.

13 years agoAdded blink test for MCB1760 development board with lpc17cmsis
Jiri Kubias [Fri, 25 Feb 2011 15:52:28 +0000 (16:52 +0100)]
Added blink test for MCB1760 development board with lpc17cmsis

13 years agoAdded flash loading tool lpc21isp for LPC17xx
Jiri Kubias [Fri, 25 Feb 2011 15:49:44 +0000 (16:49 +0100)]
Added flash loading tool lpc21isp for LPC17xx

modified board/arm/lpc17cmsis-mbed config to work with lpc21isp

Note by M. Sojka: According to Jiri, this version does not work with
LPC21xx and the version for 21xx does not work with LPC17xx. The reasons
for this are not clear to me. Hopefully, someone will fix this
eventually.

13 years agolpc17cmsis: Fixed IRQ vectors in crt0_lpc17xx.c
Jiri Kubias [Wed, 9 Feb 2011 10:51:44 +0000 (11:51 +0100)]
lpc17cmsis: Fixed IRQ vectors in crt0_lpc17xx.c

Byly odebrany definice IRQ vektoru ktere odpovidaly LPC13xx a zmeney
definice IRQ vektoru odpovidajici LPC17xx. Tento problem vzniknul
portovanim crt0_lpc13xx.c na crt0_lpc17xx.c .

13 years agoFixed IRQ_TABLE_SIZE for lpc13xx.
nemecep1 [Sun, 20 Feb 2011 17:53:57 +0000 (18:53 +0100)]
Fixed IRQ_TABLE_SIZE for lpc13xx.

Signed-off-by: nemecep1 <pavel.nemecek1@gmail.com>
13 years agoSome common files for lpc23xx are now symlinked from lpc21xx.
nemecep1 [Thu, 17 Feb 2011 19:55:41 +0000 (20:55 +0100)]
Some common files for lpc23xx are now symlinked from lpc21xx.

Signed-off-by: nemecep1 <pavel.nemecek1@gmail.com>
13 years agoAdded support for irq in thumb mode for lpc23xx (as for lpc21xx).
nemecep1 [Thu, 17 Feb 2011 19:55:08 +0000 (20:55 +0100)]
Added support for irq in thumb mode for lpc23xx (as for lpc21xx).

Signed-off-by: nemecep1 <pavel.nemecek1@gmail.com>
13 years agoFixed PLL initialization on lpc32xx
nemecep1 [Thu, 17 Feb 2011 19:53:12 +0000 (20:53 +0100)]
Fixed PLL initialization on lpc32xx

Signed-off-by: nemecep1 <pavel.nemecek1@gmail.com>
13 years agoAdded arch for lpc13xx
nemecep1 [Thu, 17 Feb 2011 19:50:07 +0000 (20:50 +0100)]
Added arch for lpc13xx

Signed-off-by: nemecep1 <pavel.nemecek1@gmail.com>
13 years agogenposix: use GCC provided atomic functions for this target.
Pavel Pisa [Sun, 13 Feb 2011 02:17:28 +0000 (03:17 +0100)]
genposix: use GCC provided atomic functions for this target.

Signed-off-by: Pavel Pisa <pisa@cmp.felk.cvut.cz>
13 years agolpc17xx - optimize for size and discard unused functions and variables.
Pavel Pisa [Tue, 25 Jan 2011 09:36:54 +0000 (10:36 +0100)]
lpc17xx - optimize for size and discard unused functions and variables.

This works for both ulboot and large SuiTk based application
for LMC1 after previous fixes.

Signed-off-by: Pavel Pisa <pisa@cmp.felk.cvut.cz>
13 years agoSynchronization added to LPC17xx disable_irq and enable_irq functions.
Pavel Pisa [Sun, 23 Jan 2011 17:54:17 +0000 (18:54 +0100)]
Synchronization added to LPC17xx disable_irq and enable_irq functions.

If the synchronization is not there, compiler or CPU
can freely reorder execution in request_irq and free_irq.
This caused broken build optimized by

 -Os -ffunction-sections -fdata-sections -Wl,--gc-section

The IRQ source has been enabled before handler has
target been set into irq_handler_table.

Signed-off-by: Pavel Pisa <pisa@cmp.felk.cvut.cz>
13 years agoSeparate ldscript for LPC1766 to reflect limited (256kB) Flash size.
Pavel Pisa [Sun, 23 Jan 2011 12:54:57 +0000 (13:54 +0100)]
Separate ldscript for LPC1766 to reflect limited (256kB) Flash size.

This allows to catch Flash overflow during compilation.
Without specification the target system application
and boot block are corrupted.

Signed-off-by: Pavel Pisa <pisa@cmp.felk.cvut.cz>
13 years agoIRC Mark pin cannot generate IRQ on Port 1, use MCPWM ABORT IRQ instead.
Pavel Pisa [Tue, 18 Jan 2011 19:05:18 +0000 (20:05 +0100)]
IRC Mark pin cannot generate IRQ on Port 1, use MCPWM ABORT IRQ instead.

Signed-off-by: Pavel Pisa <pisa@cmp.felk.cvut.cz>
13 years agoDefine SSP1 pins connection on LMC1 board and SSP1 functionality checking.
Pavel Pisa [Tue, 21 Dec 2010 15:24:06 +0000 (16:24 +0100)]
Define SSP1 pins connection on LMC1 board and SSP1 functionality checking.

Signed-off-by: Pavel Pisa <pisa@cmp.felk.cvut.cz>
13 years agoLMC1 board LEDs declared by PORT_PIN macro.
Pavel Pisa [Tue, 21 Dec 2010 11:00:03 +0000 (12:00 +0100)]
LMC1 board LEDs declared by PORT_PIN macro.

This allows to use pin specification with HAL GPIO
code

  hal_pin_conf(LED1_PIN);
  hal_pin_conf(LED2_PIN);

  hal_gpio_set_value(LED1_PIN,0);
  hal_gpio_set_value(LED2_PIN,1);

This specification has been used in A4M38KRP lecture
USBLED example.