This is the mail archive of the ecos-patches@sourceware.org mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug 1000740] Public Domain Curses for eCos


http://bugs.ecos.sourceware.org/show_bug.cgi?id=1000740


Sergei Gavrikov <sergei.gavrikov@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |sergei.gavrikov@gmail.com




--- Comment #1 from Sergei Gavrikov <sergei.gavrikov@gmail.com>  2009-04-28 13:32:43 ---
Hello

I hope that now the PDCurses package can be a useful stuff for any eCos target
which has a serial port. That my first dummy driver was replaced by a real one:
serial terminal driver. It seems for me that in this state the package can be
placed in eCos CVS (IMHO).

The package's sources are placed under the bitbucket service:
http://bitbucket.org/tickling/pdcurses4ecos


SYNOPSIS

  hg clone http://bitbucket.org/tickling/pdcurses4ecos/
  cd pdcurses4ecos
  sh install.sh

  ecosconfig new <target>
  ecosconfig add pdcurses

Then import a option the below to build the PDCurses demos

  cdl_option CYGBLD_PDCURSES_DEMOS {
      user_value 1
  };

Change a eCos serial device for PDCurses programs, if it's needed:

  cdl_option CYGDAT_PDCURSES_DRIVER_SERIAL_DEV {
      user_value "\"/dev/ser1\""
  };

default is "/dev/ser0".

The PDCurses driver works with a blocking and non-blocking read, but it's
useful to import

  cdl_option CYGOPT_IO_SERIAL_SUPPORT_NONBLOCKING {
      user_value 1
  };

too.

Then just type `make'. All demos should be under install/demos directory.

Note: I tested the package using LE targets only ARM and synthetic Linux
target. src/drivers/serial.c:PDC_check_key() uses macros which are endian
depended. So, I could not test them on BE target.

BTW, there is yet another tiny project which depends on the eCos PDCurses
package on bitbucket. It is a few my tweaks for the GNU Nano Editor:
http://bitbucket.org/tickling/gnunano4ecos/

Nano quite works on synthetic Linux target with ecosynthserial drivers and on
my ARM board. To compile the nano editor for eCos it's needed just to add
packages for default template:

  ecosconfig add fileio ramfs pdcurses

Once again, the PDCurses core itself is just 42K if I build it for ARM target
(ARM mode, !THUMB).


Sergei


-- 
Configure bugmail: http://bugs.ecos.sourceware.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]