Oliver Schmidt | 9 Apr 2006 17:04
Picon

contiki-cc65/ctk - New directory

Update of /cvsroot/contiki/contiki-cc65/ctk
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv5421/ctk

Log Message:
Directory /cvsroot/contiki/contiki-cc65/ctk added to the repository

-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
Oliver Schmidt | 9 Apr 2006 17:34
Picon

contiki-cc65/ctk ctk-mouse.c,NONE,1.1

Update of /cvsroot/contiki/contiki-cc65/ctk
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv22351/ctk

Added Files:
	ctk-mouse.c 
Log Message:
Added a mouse driver adapter.

This adapter allows to use cc65 loadable mouse drivers for Contiki. Generally it should be usable for all
cc65-based targets which have a *.mou driver file.

Remarks:
1. For memory consumption reasons the adapter doesn't call mouse_load_driver(). Instead it reuses the
target-specific Contiki code to load modules and then calls mouse_install() explicitly.

2. As ctk_mouse_init() is a void function the adapter tracks internally if the mouse initialization
failed and blocks then further calls to the driver. Please note that the mouse position remains at 0,0 in
that scenario, which is just fine because the Contiki menu doesn't have a mouse-over behaviour (in
contrast to the Contiki windows).

3. The adapter never calls mouse_uninstall(). The primary reason is that Contiki generally doesn't care
that much ;-) about a clean shutdown. The Apple2 target support a clean shutdown via Ctrl-Reset which
stops all interrupt sources by hardware so there's no need for a mouse_uninstall() in this case. If there
should be a scenario which really needs mouse_uninstall() being called then atexit() might be worth considering.

--- NEW FILE: ctk-mouse.c ---
/*
 * Copyright (c) 2003, Adam Dunkels.
 * All rights reserved. 
 *
(Continue reading)

Oliver Schmidt | 9 Apr 2006 17:34
Picon

contiki-cc65 Makefile.cc65,1.7,1.8

Update of /cvsroot/contiki/contiki-cc65
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv22351

Modified Files:
	Makefile.cc65 
Log Message:
Added a mouse driver adapter.

This adapter allows to use cc65 loadable mouse drivers for Contiki. Generally it should be usable for all
cc65-based targets which have a *.mou driver file.

Remarks:
1. For memory consumption reasons the adapter doesn't call mouse_load_driver(). Instead it reuses the
target-specific Contiki code to load modules and then calls mouse_install() explicitly.

2. As ctk_mouse_init() is a void function the adapter tracks internally if the mouse initialization
failed and blocks then further calls to the driver. Please note that the mouse position remains at 0,0 in
that scenario, which is just fine because the Contiki menu doesn't have a mouse-over behaviour (in
contrast to the Contiki windows).

3. The adapter never calls mouse_uninstall(). The primary reason is that Contiki generally doesn't care
that much ;-) about a clean shutdown. The Apple2 target support a clean shutdown via Ctrl-Reset which
stops all interrupt sources by hardware so there's no need for a mouse_uninstall() in this case. If there
should be a scenario which really needs mouse_uninstall() being called then atexit() might be worth considering.

Index: Makefile.cc65
===================================================================
RCS file: /cvsroot/contiki/contiki-cc65/Makefile.cc65,v
retrieving revision 1.7
retrieving revision 1.8
(Continue reading)

Oliver Schmidt | 9 Apr 2006 18:13
Picon

contiki-apple2/conf ctk-mouse-conf.h,NONE,1.1

Update of /cvsroot/contiki/contiki-apple2/conf
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv12096

Added Files:
	ctk-mouse-conf.h 
Log Message:
Added the Apple2 specific configuration file for the new mouse driver adapter.

--- NEW FILE: ctk-mouse-conf.h ---
/*
 * Copyright (c) 2002, Adam Dunkels.
 * All rights reserved. 
 *
 * Redistribution and use in source and binary forms, with or without 
 * modification, are permitted provided that the following conditions 
 * are met: 
 * 1. Redistributions of source code must retain the above copyright 
 *    notice, this list of conditions and the following disclaimer. 
 * 2. Redistributions in binary form must reproduce the above
 *    copyright notice, this list of conditions and the following
 *    disclaimer in the documentation and/or other materials provided
 *    with the distribution. 
 * 3. All advertising materials mentioning features or use of this
 *    software must display the following acknowledgement:
 *        This product includes software developed by Adam Dunkels. 
 * 4. The name of the author may not be used to endorse or promote
 *    products derived from this software without specific prior
 *    written permission.  
 *
 * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS
(Continue reading)

Oliver Schmidt | 9 Apr 2006 18:24
Picon

contiki-apple2 Makefile.apple2,1.16,1.17

Update of /cvsroot/contiki/contiki-apple2
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv19730

Modified Files:
	Makefile.apple2 
Log Message:
Added the new mouse driver adapter to the apple2enh build.

Index: Makefile.apple2
===================================================================
RCS file: /cvsroot/contiki/contiki-apple2/Makefile.apple2,v
retrieving revision 1.16
retrieving revision 1.17
diff -C2 -d -r1.16 -r1.17
*** Makefile.apple2	16 May 2005 21:18:47 -0000	1.16
--- Makefile.apple2	9 Apr 2006 16:24:36 -0000	1.17
***************
*** 47,51 ****

  ifeq ($(SYS),apple2enh)
! CTK=ctk.o ctk-mousetext.o
  else
  CTK=ctk.o ctk-conio.o
--- 47,51 ----

  ifeq ($(SYS),apple2enh)
! CTK=ctk.o ctk-mousetext.o ctk-mouse.o
  else
  CTK=ctk.o ctk-conio.o
***************
(Continue reading)

Oliver Schmidt | 9 Apr 2006 18:32
Picon

contiki-apple2 apple2enh.cfg,NONE,1.1 Makefile.apple2,1.17,1.18

Update of /cvsroot/contiki/contiki-apple2
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv25288

Modified Files:
	Makefile.apple2 
Added Files:
	apple2enh.cfg 
Log Message:
Added an apple2enh specific linker configuration file and made use of it in the apple2enh build.

The new linker configuration file:
- Defines interruptors
- Uses language card bank2 memory from D000-D3FFF. This overwrites the ProDOS 8 quit code. Thus quitting
Contiki via Ctrl-Reset now chrashes! I'll take care of that with subsequent changes...

--- NEW FILE: apple2enh.cfg ---
MEMORY {
    ZP:     start = $0080, size = $001A, file = "", define = yes;
    BUFFER: start = $0800, size = $0400, file = "";
    HEADER: start = $0000, size = $0004, file = "contiki";
    RAM:    start = $0C00, size = $8A00, file = "contiki";
    PIC:    start = $0000, size = $FFFF, file = "contiki";
    TMP:    start = $0000, size = $FFFF, file = "contiki";
    LC:     start = $D000, size = $1000, file = "contiki";
}
SEGMENTS {
    ZEROPAGE: load = ZP,             type = zp;
    UIPBUF:   load = BUFFER,         type = bss;
    EXEHDR:   load = HEADER,         type = ro;
    STARTUP:  load = RAM,            type = ro,  define = yes;
(Continue reading)

Oliver Schmidt | 9 Apr 2006 18:42
Picon

contiki-apple2/lib crt0.S,1.10,1.11

Update of /cvsroot/contiki/contiki-apple2/lib
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv31613

Modified Files:
	crt0.S 
Log Message:
Added interruptor support to the apple2enh startup code.

Index: crt0.S
===================================================================
RCS file: /cvsroot/contiki/contiki-apple2/lib/crt0.S,v
retrieving revision 1.10
retrieving revision 1.11
diff -C2 -d -r1.10 -r1.11
*** crt0.S	17 Apr 2005 15:38:36 -0000	1.10
--- crt0.S	9 Apr 2006 16:42:17 -0000	1.11
***************
*** 7,14 ****
  	.export		_exit
  	.import	   	zerobss, initlib, callmain, donelib
!        	.import	       	__STARTUP_RUN__, __BOOT_SIZE__	; Linker generated
!        	.import	       	__BSS_RUN__, __BSS_SIZE__	; Linker generated
!        	.import	       	__INIT_RUN__, __INIT_SIZE__	; Linker generated
!        	.import	       	__CODE_RUN__, __CODE_SIZE__	; Linker generated
  	.importzp	sp
  	.linecont	+
--- 7,17 ----
  	.export		_exit
  	.import	   	zerobss, initlib, callmain, donelib
! .ifdef  __APPLE2ENH__
(Continue reading)

Oliver Schmidt | 9 Apr 2006 18:47
Picon

contiki-apple2/lib bank.S,1.3,1.4

Update of /cvsroot/contiki/contiki-apple2/lib
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv2640

Modified Files:
	bank.S 
Log Message:
The new interruptor support on the Apple2 is based on ProDOS 8 which takes care of setting and restoring the
langage card softswitsches. Therefore there's no need to disable IRQs while switching to the ROM even on
machines without the "enhanced" IRQ handling ROM.

Index: bank.S
===================================================================
RCS file: /cvsroot/contiki/contiki-apple2/lib/bank.S,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** bank.S	29 Mar 2005 20:35:51 -0000	1.3
--- bank.S	9 Apr 2006 16:47:18 -0000	1.4
***************
*** 8,24 ****

  VTABZ:
- 	.ifdef __APPLE2__
- 	sei
- 	.endif
- 
  	; Switch in ROM and call VTABZ
  	bit	$C082
  	jsr	$FC24

(Continue reading)

Oliver Schmidt | 9 Apr 2006 18:48
Picon

contiki-apple2/conf ctk-conf.h,1.11,1.12

Update of /cvsroot/contiki/contiki-apple2/conf
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv3234

Modified Files:
	ctk-conf.h 
Log Message:
Activated the Contiki mouse support for the apple2enh target.

Index: ctk-conf.h
===================================================================
RCS file: /cvsroot/contiki/contiki-apple2/conf/ctk-conf.h,v
retrieving revision 1.11
retrieving revision 1.12
diff -C2 -d -r1.11 -r1.12
*** ctk-conf.h	12 May 2005 23:57:02 -0000	1.11
--- ctk-conf.h	9 Apr 2006 16:48:22 -0000	1.12
***************
*** 62,66 ****
--- 62,70 ----
  /* Toggles mouse support (must have support functions in the
  architecture specific files to work). */
+ #ifdef __APPLE2__
  #define CTK_CONF_MOUSE_SUPPORT        0 /* 1342 bytes */
+ #else /* __APPLE2__ */
+ #define CTK_CONF_MOUSE_SUPPORT        1 /* 1342 bytes */
+ #endif /* __APPLE2__ */

  /* Toggles support for icons. */

-------------------------------------------------------
(Continue reading)

Oliver Schmidt | 10 Apr 2006 01:28
Picon

contiki-apple2/lib cfs.c,1.3,1.4 cfs.h,1.3,1.4

Update of /cvsroot/contiki/contiki-apple2/lib
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv18809

Modified Files:
	cfs.c cfs.h 
Log Message:
Made use of dirent support in cc65 version 2.11.

Index: cfs.h
===================================================================
RCS file: /cvsroot/contiki/contiki-apple2/lib/cfs.h,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** cfs.h	18 Apr 2005 21:41:07 -0000	1.3
--- cfs.h	9 Apr 2006 23:28:10 -0000	1.4
***************
*** 38,41 ****
--- 38,42 ----
  #include <fcntl.h>
  #include <unistd.h>
+ #include <dirent.h>

  #define CFS_READ  (O_RDONLY)
***************
*** 48,63 ****

  struct cfs_dir {
!   int fd;
!   unsigned char entry_length;
(Continue reading)


Gmane