gforth
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [gforth] I2C framework


From: Dennis Ruffer
Subject: Re: [gforth] I2C framework
Date: Sun, 8 May 2016 20:48:16 -0700

From: Dennis Ruffer [mailto:address@hidden  Sent: Saturday, May 7, 2016
6:53 PM
>From: Bernd Paysan [mailto:address@hidden Sent: Saturday, May 7, 2016
2:46 PM
>>>Am Freitag, 6. Mai 2016, 15:14:54 CEST schrieb Dennis Ruffer:
>>>> Does anyone have an I2C framework on gforth that I can "borrow"?
>>> 
>>>> I see that unix/serial.fs has most of the pieces, but it would be 
>>> easier if someone had already tested the ioctl I2C_RDWR interface.
>>> 
>>> Thanks for whatever pointers anyone can provide.
>>
>>I haven't tried yet, but one of my ARM boards actually has something
hooked up to the i2c bus, so I could try...
>
>I'll have to do something with some open hardware design then and post it.
>Maybe the Raspberry Pi has something.

Here's a start, but this one gives:

address@hidden:~/Documents/Forth $ gforth i2c.fs

in file included from *OS command line*:-1
i2c.fs:26: Undefined word
    >>>O_RDWR<<< open throw
Backtrace:
$B68FBEDC throw
$B6908600 no.extensions
$B68FDE10 compiler-notfound1

But when I used r/w, I got:
address@hidden:~/Documents/Forth $ gforth i2c.fs
Gforth 0.7.2, Copyright (C) 1995-2008 Free Software Foundation, Inc.
Gforth comes with ABSOLUTELY NO WARRANTY; for details type `license'
Type `bye' to exit
i2c-detect
/home/pi/.gforth/libcc-named/.libs/i2c.so.0: undefined symbol:
gforth_c_open_ann_n
:1: Invalid name argument
>>>i2c-detect<<<
Backtrace:
$B69CF7D8 throw
$B69CF900 link-wrapper-function
$B69D0730 open
$B69D080C open-i2c-dev

It's been a while since I've gotten this deep, so excuse my ignorance.

But help please. ;)

DaR

Attachment: i2c.fs
Description: Text document


reply via email to

[Prev in Thread] Current Thread [Next in Thread]