To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.robotics.rcx.legosOpen lugnet.robotics.rcx.legos in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 Robotics / RCX / legOS / 3249
3248  |  3250
Subject: 
Re: /brickos-0.2.6.10/kernel/dsensor.c:360: `sys_time' undeclared (first use in this function)
Newsgroups: 
lugnet.robotics.rcx.legos
Date: 
Mon, 28 Apr 2003 15:02:14 GMT
Viewed: 
2813 times
  
In lugnet.robotics.rcx.legos, Bernhard Powolny writes:
I changed in /boot/config.h

now i tried  to change
//#define CONF_DSENSOR_VELOCITY           //!< rotation sensor velocity
to
#define CONF_DSENSOR_VELOCITY           //!< rotation sensor velocity
because it use sys_time too.

same error:
/usr/local/bin/h8300-hitachi-hms-gcc -O2 -fno-builtin -fomit-frame-pointer
-Wall -I/brickos-0.2.6.10/include -I/brickos-
0.2.6.10/include/lnp -I.  -c /brickos-0.2.6.10/kernel/dsensor.c -o dsensor.o
/brickos-0.2.6.10/kernel/dsensor.c: In function `ds_rotation_handler':
/brickos-0.2.6.10/kernel/dsensor.c:167: `sys_time' undeclared (first use in
this function)
/brickos-0.2.6.10/kernel/dsensor.c:167: (Each undeclared identifier is
reported only once
/brickos-0.2.6.10/kernel/dsensor.c:167: for each function it appears in.)
make[1]: *** [dsensor.o] Error 1
make[1]: Leaving directory `/brickos-0.2.6.10/boot'
make: *** [all] Error 2

I think i try now to compile older version from 0.2.6.9 till 0.2.5, and look
if i got the same error.

Bernhard



Message has 2 Replies:
  Re: /brickos-0.2.6.10/kernel/dsensor.c:360: `sys_time' undeclared (first use in this function)
 
(...) To get rid of this error, find and replace all occurrences of sys_time with get_system_up_time(). If you look at include/time.h, you will find that the direct reading of the sys_time variable is not allowed anymore. There was a thread about (...) (21 years ago, 28-Apr-03, to lugnet.robotics.rcx.legos)
  Re: /brickos-0.2.6.10/kernel/dsensor.c:360: `sys_time' undeclared (first use in this function)
 
i had the same problem a while back. I figured out that whit the new BrickOS, sys_time is replaced by get_system_up_time. So when you replace sys_time whit get_system_up_time, everything should work fine.(it worked for me, anyway) (21 years ago, 28-Apr-03, to lugnet.robotics.rcx.legos)

Message is in Reply To:
  /brickos-0.2.6.10/kernel/dsensor.c:360: `sys_time' undeclared (first use in this function)
 
I changed in /boot/config.h the //#define CONF_DSENSOR_MUX //!< sensor multiplexor TO #define CONF_DSENSOR_MUX //!< sensor multiplexor Now I got an errormessage if compile once again make realclean make depend make --unix (...) (21 years ago, 28-Apr-03, to lugnet.robotics.rcx.legos)

4 Messages in This Thread:


Entire Thread on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact

This Message and its Replies on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact
    

Custom Search

©2005 LUGNET. All rights reserved. - hosted by steinbruch.info GbR