Subject:
|
About LNP_HOSTADDR & LNP_HOSTMASK
|
Newsgroups:
|
lugnet.robotics.rcx.legos
|
Date:
|
Mon, 5 Nov 2001 05:41:30 GMT
|
Viewed:
|
1437 times
|
| |
| |
I found these MACROs are only used in lnp.c as below:
kernel/lnp.c: lnp_buffer[3]=LNP_HOSTADDR | (srcport & LNP_PORTMASK);
kernel/lnp.c: if(LNP_HOSTADDR == (dest & LNP_HOSTMASK)) {...
You have to recompile legOS as this reason, if we can use two static
variables and two functions to set varibales, for example:
static unsigned char lnp_hostaddr;
static unsigned char lnp_hostmask;
void set_hostaddr(unsigned char hostaddr);
void set_hostmask(unsigned char hostmask);
it is unnecessary to recompile for different port or host RCXs, will this
make any problems?
Zhengrong
|
|
Message has 1 Reply:
4 Messages in This Thread:
- Entire Thread on One Page:
- Nested:
All | Brief | Compact | Dots
Linear:
All | Brief | Compact
|
|
|
|