Which library/Framework should i include for definition of host_s tatistics() function?
Which library/Framework should i include for definition of host_s tatistics() function?
- Subject: Which library/Framework should i include for definition of host_s tatistics() function?
- From: Ashish Kumar <email@hidden>
- Date: Tue, 28 Jan 2003 19:41:45 +0530
Hi all,
I am not sure if its the correct forum to put my question. May be someone
can still help.
Which library/framework should i include in my codewarrior project to get
the definition of these functions?
I used functions like - host_page_size() and mach_host_self()
The declarations are in <mach/mach_host.h>
I am getting linker error. I tried to add few frameworks and libraries but
have not been successful yet.
Thanks,
Ashish
-----Original Message-----
From: Matthias Ringwald [
mailto:email@hidden]
Sent: Tuesday, January 28, 2003 3:45 PM
To: email@hidden
Subject: I2C usage and "how to wake up from Infrared"
HI there
I just finished porting the linux infrared control (LIRC) project to
darwin. As we all know, there is no real I/O on macs so
I conected the Infrared Receiver to the sound input of my sawtooth g4
that at least has this input. Lirc can decode most
IR controls. (www.lirc.org www.inf.ethz.ch/~mringwal/lirc/ )"
To really use my mac as a multimedia center, I need to have it in deep
sleep and want to wake it up via the IR remote.
When I press a button on the IR remote, I could use a capacitor and
provide a normal TTL signal that indicates "mac should be running"
Any simple ideas, what I could use?
So far, I've seen the wake on modem call (although I need my internal
modem) and wake on ethernet.
what does this mean technically ?
One solution would be to use a USB mouse or USB keyboard and connect
the IR signal to the any button.
this doesn't look optimal and if the mac is running I would have to
deal with to much input...
and would cost me a USB mouse/keyboard.
Any other option?
Next, and more interesting: has anybody ever tried to use the I2C
busses inside the mac to connect external devices ?
most micro-controllers have build-in I2C drivers or at least i2C
libraries are available whereas not much MUCs does
have USB support and then a lot of usb code would be required both on
the mac as on the mcu.
I found the linux lm_sensor project:
http://www2.lm-sensors.nu/~lm78/index.html
that descibres an easy way to get the 4 wires for the I2C bus from a
memory dimm and also all necessary drivers
But next, how do communicate with a microcontroller?
I've seen the I2C classes in darwin, but with only the source code and
the short api docu, its quite hard to get a bigger picture.
I'm thinking about adding IrDA support to my mac, use the MCU for
sending and receiving of IR signals, provide a serial port and
e.g. 16 free programable digital I/O lines never mind ADC (thinking
about an Atmel ATmega128)..
The IrDA option would be very interesting inside my iBook, too...
ok. any info ?
thanks for reading this long mail,
matthias ringwald
eth z|rich
_______________________________________________
darwin-kernel mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/darwin-kernel
Do not post admin requests to the list. They will be ignored.
_______________________________________________
darwin-kernel mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/darwin-kernel
Do not post admin requests to the list. They will be ignored.