PS2

Go To Last Post
11 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Hi
Dear

I write the projct to send mouse status to the serial port and i use "sys/mouse.h" header file in gnu toolchain.

when i compile the project the error is :
mouse_example.c:(.text.main+0x184): undefined reference to `init_mouse'
mouse_example.c:(.text.main+0x190): undefined reference to `register_mouse_listener'

what is my prublem ?

Attachment(s): 

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Yes, its in libc, i am having the same problem with avr32fb_init(), says its not there?

I thought i'd would include libc by default unless otherwise told..

adding -lc to the linker didn't help...

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Ahhha...

I don't think they are ready built...
Here is the make file and the bits we need are hashed out...

AUTOMAKE_OPTIONS = cygnus

INCLUDES = $(NEWLIB_CFLAGS) $(CROSS_CFLAGS) $(TARGET_CFLAGS)

noinst_LIBRARIES = lib.a

lib_a_SOURCES = syscalls.c syscalls_sim.s usart.c interrupts.c setjmp.S \
exception.S \
exception_handling.c sdramc.c twi.c cpu.c dmac.c
# ps2_mouse.c ps2_keyboard.c scancodes.c avr32fb.c \
# avr32fb_console.c avr32fb_graphics.c font_mini_4x6.c font_8x8.c

all: crt0.o

ACLOCAL_AMFLAGS = -I ../../..
CONFIG_STATUS_DEPENDENCIES = $(newlib_basedir)/configure.host

Has anyone got a complete build of the libs?

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

i use and command on it and work ok ,
why the mouse headear not work??

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Quote:
why the mouse headear not work??

Probably because it is not a part of newlib on AVR32. I've never heard of any PS/2 stuff in newlib.

Hans-Christian

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Well they are there...

Attachment(s): 

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

hi
picman100
you are ssssssssssooooooooooo God. thanks

my Email is Mazarmehri@yahoo.com .
I so happy if you want something i can do for you

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I mean you are ssssoooo Good. :shock:

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

lol.. glad to help...

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Can you link me to the PS2 libhrary itself? I've seen a few references to functions like ps2_(write/read)b, and ps2_(write/read)l.

axos88

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

the library is uploaded in project section.