Topic for #qi-hardware is now Copyleft hardware - http://qi-hardware.com | hardware hackers join here to discuss Ben NanoNote, atben / atusb 802.15.4 wireless, and other community driven hw projects | public logging at http://en.qi-hardware.com/irclogs
wej has joined #qi-hardware
wej has quit [Ping timeout: 260 seconds]
nikias has joined #qi-hardware
wej has joined #qi-hardware
wej has quit [Ping timeout: 264 seconds]
urandom__ has quit [Quit: Konversation terminated!]
wej has joined #qi-hardware
LunaVorax has quit [Ping timeout: 260 seconds]
xiangfu has joined #qi-hardware
nikias has left #qi-hardware ["Textual IRC Client: www.textualapp.com"]
emeb has quit [Quit: Leaving.]
xiangfu has quit [Remote host closed the connection]
megha is now known as gia
rz2k has quit []
DocScrutinizer05 has quit [Disconnected by services]
DocScrutinizer05 has joined #qi-hardware
rz2k has joined #qi-hardware
jekhor has joined #qi-hardware
gia has quit [Ping timeout: 248 seconds]
jekhor has quit [Ping timeout: 240 seconds]
gia has joined #qi-hardware
jluis|work has joined #qi-hardware
gia has quit [Quit: WeeChat 0.3.9.2]
megha has joined #qi-hardware
megha has quit [Client Quit]
rz2k has quit []
megha has joined #qi-hardware
megha has quit [Ping timeout: 276 seconds]
jluis|work has quit [Ping timeout: 245 seconds]
jluis|work has joined #qi-hardware
megha has joined #qi-hardware
<qi-bot> [commit] Werner Almesberger: libubb/Makefile: build also a shared version of libubb; better cleanup (master) http://qi-hw.com/p/ben-blinkenlights/64c14fb
<qi-bot> [commit] Werner Almesberger: ubbctl/Makefile: make default build shared; add target "static" (master) http://qi-hw.com/p/ben-blinkenlights/7b8a2e1
<qi-bot> [commit] Werner Almesberger: ubbctl/Makefile: add copyright header (master) http://qi-hw.com/p/ben-blinkenlights/b557adf
<wpwrak> kyak: i added the shared library build process for libubb. does it look good ? been a while since i did that the last time.
wej has quit [Ping timeout: 248 seconds]
urandom__ has joined #qi-hardware
wej has joined #qi-hardware
megha has quit [Quit: WeeChat 0.3.9.2]
LunaVorax has joined #qi-hardware
megha has joined #qi-hardware
wej has quit [Ping timeout: 260 seconds]
wej has joined #qi-hardware
jekhor has joined #qi-hardware
woakas has joined #qi-hardware
megha has quit [Quit: WeeChat 0.3.9.2]
megha has joined #qi-hardware
<qi-bot> [commit] Werner Almesberger: ubblib/Makefile: don't generate the versioned shared library (master) http://qi-hw.com/p/ben-blinkenlights/2004d8c
<wpwrak> git rewrite-history s/ubblib/libubb/
megha has quit [Quit: WeeChat 0.3.9.2]
wolfspraul has quit [Ping timeout: 246 seconds]
wolfspraul has joined #qi-hardware
urandom__ has quit [Quit: Konversation terminated!]
megha has joined #qi-hardware
<LunaVorax> Hello
<LunaVorax> I realized that Qi-Hw had no news for over a year
<LunaVorax> No on-going projects?
jluis|work has quit [Read error: Operation timed out]
<kyak> wpwrak: lemme check
<kyak> wpwrak: make[3]: *** No rule to make target `mmcclk.o', needed by `libubb.a'. Stop.
<kyak> i don't see mmcclk.c either
<kyak> ubb/mmclk.h is also not there
<kyak> hey, it seems we revealed your next secret project :)
emeb has joined #qi-hardware
<kyak> btw, you probably already noticed, but naming of source and header (mmcclk.c/mmclk.h) is not consistent
<whitequark> kyak: how did you make that letter bold, you wizard?!
<kyak> heh :) depends on your client, in irssi it's ^B
<whitequark> foobarfoo
<whitequark> oh cool.
<kyak> oh, wonder how it looks like in your web logs :)
<kyak> does it support formatting?
<whitequark> like *this*, yes it does
<larsc> foobar
<whitequark> blargh
<whitequark> my eyes
<larsc> :)
<whitequark> well I never knew about this formatting, so it doesn't
<whitequark> plus larsc's colored text breaks the underlying library I use
<larsc> yea!
<kyak> just a stupid test
<kyak> ah, this one appears as message
megha has quit [Quit: WeeChat 0.3.9.2]
<whitequark> what was that?
<kyak> it's called notice :)
<kristianpaul> purple :)
megha has joined #qi-hardware
jluis has quit [Ping timeout: 272 seconds]
megha has quit [Quit: WeeChat 0.3.9.2]
megha has joined #qi-hardware
megha has quit [Quit: WeeChat 0.3.9.2]
<wpwrak> (mmcclk.c) oh crap. that's WIP. lemme unleak it ...
<wpwrak> kyak: not very secret, though :)
<qi-bot> [commit] Werner Almesberger: libubb/Makefile: unleak mmcclk.o and mis-typed mmclk.h (master) http://qi-hw.com/p/ben-blinkenlights/a593da0
<wpwrak> wolfspraul: btw, each push still produces "ssh: Could not resolve hostname fidelio.qi-hardware.com: No address associated with hostname"
<wpwrak> followed by "error: hooks/post-receive exited with error code 255"
<wpwrak> sooner or later someone will overlook a real error after getting used to not paying attention to git push complaints
megha has joined #qi-hardware
jluis has joined #qi-hardware
LunaVorax has quit [Ping timeout: 260 seconds]
megha has quit [Quit: WeeChat 0.3.9.2]
<wolfspraul> ok great, I finally found the old hostname in a script file
<wolfspraul> let's see whether the problem is gone now, after your next commit we know...
<wpwrak> let's see ...
<qi-bot> [commit] Werner Almesberger: libubb/mmcclk.c: helper functions for selecting and configuring the MMC bus clock (master) http://qi-hw.com/p/ben-blinkenlights/1eb8e64
<wpwrak> hmm, the error changed :)
<kyak> wpwrak: we are almost there. Openwrt is too smart, and complains that ubbctl is missing dependency for libubb.so.0.0.0. This is because libubb package only provides libubb.so. I can install the symlink from package, but probably it's better done in Makefile
<kyak> wpwrak: perhaps another option would be to use the soname without $(LIBVERSION)
jekhor has quit [Ping timeout: 276 seconds]
LunaVorax has joined #qi-hardware
jekhor has joined #qi-hardware
megha has joined #qi-hardware
<wpwrak> hmm, you mean call the file libubb.so.0.0.0 (instead of libubb.so) and change the soname from ibubb.so.0.0.0 to libubb.so ?
<wpwrak> or eliminate the version entirely ? in this case, how would ldconfig know what to do ?
<wolfspraul> argh :-)
<wolfspraul> wpwrak: made another change, let's see :-)
<wpwrak> preparing another commit ...
<qi-bot> [commit] Werner Almesberger: libubb/include/ubb/regs4740.h: add CPCCR (clock control register) (master) http://qi-hw.com/p/ben-blinkenlights/2f4e1bd
<wpwrak> victory ! no errors
<wpwrak> wolfspraul: thanks a lot !
megha has quit [Quit: WeeChat 0.3.9.2]
<wpwrak> did CPCCR.PCS change from 1 to 0 in the last year or so ? (i.e., that the clock that drives MSC and such is now PLL/2 instead of PLL/1)
<wpwrak> either that, or i always got the UBB-VGA clock calculations wrong
<kyak> wpwrak: name the file libubb.so and set soname to libubb.so, or provide libubb.so and libubb.so.0.0.0 (symlink) and change soname to libubb.so.0.0.0
<kyak> currently soname is libubb.so.0.0.0, but libubb.so.0.0.0 is not provided
<kyak> just the libubb.so is provided
<wpwrak> how does ldconfig know the version if neither file nor soname has it ?
<wpwrak> or are you saying i can just omit the version completely ?
<kyak> hmm, dunno, i'm not sure if it possible to omit the version completely :)
<kyak> i'm just guessing it should work
<kyak> and yeah, that's what i meant - omit the version completely
<wpwrak> seems to work. kewl. less bureaucracy ;-)
megha has joined #qi-hardware
<kyak> yeah, just tried it, too.. And you don't need ldconfig in this case
<wpwrak> even better :)
<wpwrak> what do i put into "suggested by ..." ? your real name doesn't seem to be on record :)
<kyak> don't bother :)
<wpwrak> "kyak" it is then
<qi-bot> [commit] Werner Almesberger: libubb/mmcclk.c (mmcclk_first): base clock calculation on state of CPCCR.PCS (master) http://qi-hw.com/p/ben-blinkenlights/b18d688
<qi-bot> [commit] Werner Almesberger: libubb/Makefile: get rid of version bureaucracy (suggested by Kyak) (master) http://qi-hw.com/p/ben-blinkenlights/127e18d
<wolfspraul> no problem, thanks for insisting on the bug report
<wolfspraul> sometimes I do hope bugs go away 'by themselves', but then most of the time it's not like that :-)
<wpwrak> yeah, that could have been a lazy DNS
<qi-bot> [commit] kyak: libubb: initial package (master) http://qi-hw.com/p/openwrt-packages/971cadb
<qi-bot> [commit] kyak: ubbctl: initial package (master) http://qi-hw.com/p/openwrt-packages/66d3d0f
<kyak> they should work, if you have the latest image (2012-10-24)
<wpwrak> great, thanks a lot ! let's see what installs ...
<wpwrak> kewl. works like a charm
<kyak> nice! and thank you
<kyak> wpwrak: what does "keep" argument do for ubb_open and ubb_close?
<wpwrak> for ubb_open it specified which GPIOs should be left in the state they have. e.g., don't change them to GPIO, etc.
megha has quit [Quit: WeeChat 0.3.9.2]
<kyak> also, just wondering, why do use well-defined datatypes (like uint32_t), but sometimes use ill-defined (like int)?
<wpwrak> for ubb_close it specifies which GPIOs should not be reset to the state before calling ubb_open
<wpwrak> i use uint32_t when it's machine registers and such
<kyak> ah, ok, so it's like an exception mask..
<wpwrak> int/unsigned for all the rest ;-)
<kyak> keep = 0 means "act upon all pins"
<wpwrak> yes
<kyak> ok, thanks for explanation :)
<kyak> ..also, i should read README more carefully..
<wpwrak> yeah, it's all there ;-)
<qi-bot> [commit] Werner Almesberger: ubb-patgen/hw/: schematics of a pattern generator based on UBB (master) http://qi-hw.com/p/ben-blinkenlights/ed91f62
<qi-bot> [commit] Werner Almesberger: ubb-patgen/hw/labels.fig: cut-out labels for the wires (master) http://qi-hw.com/p/ben-blinkenlights/7c1f065
<qi-bot> [commit] Werner Almesberger: ubb-patgen/: UBB-based pattern generator (WIP) (master) http://qi-hw.com/p/ben-blinkenlights/52ce194
<kyak> wpwrak: what happens if i try to SET pin that is IN?
<wpwrak> and this is the secret new project :)
<wpwrak> it'll remember the "1" until you turn it into an output
<wpwrak> important for avoiding glitches
<larsc> not so secret anymore ;)
<kyak> wpwrak: just a suggestion, what if we could pass an argument to ubb_open to initiailize chosen pins as outputs (the rest are initialized as inputs)?
<wpwrak> would there be a problem in your application if the pin transitions first to input ?
<wpwrak> btw, you can set any number of pins at the same time with IN, OUT, SET, CLR. you don't have to do it one by one.
<kyak> well, i believe that it's unlikely someone will change the pin from input to output or vice versa at runtime, so it makes sense to do that once during initialization
<kyak> yeah, these macros accept masks, that's great
<kyak> also i was thinking about ubb_write function, that would accept mask of pins to write and a value to write and call SET or CLR under the hood
<wpwrak> there are many protocols that switch the direction of pins. not everything is SPI or UART ;-)
<kyak> ok thne :)
<wpwrak> ubb_write would be tricky because it would be non-atomic
<wpwrak> that is, unless you set them all to the same value
<kyak> indeed.. why is it a problem?
<wpwrak> being non-atomic ? well, people may assume operations are atomic. and if they aren't, you get races
<kyak> hm, right..
<kyak> wpwrak: does PIN accept mask as well?
<kyak> i can't decrypt the (!!(PDPIN & (mask))) --)
<wpwrak> it says so, doesn't it ? ;-)
<wpwrak> what happens is that you get 0 if ALL pins in the mask are 0. else, you get 1.
<kyak> that's what i thought
<kyak> but what if i want individual statuses of all pins?
<wpwrak> !! is simply a normalization. 0 stays 0, everything else becomes 1
<wpwrak> that's why the registers are available as well :)
<wpwrak> SET, PIN, etc. are just simplifications for basic tasks
<wpwrak> if you need something more complicated, you use PDxxx
<wpwrak> if you still want more, there's a bunch of additional registers to play with
<kyak> yeah, i understand, but i'm trying to think from a library point of view :)
<kyak> if i have a function that does (PDPIN & (mask)) and returns the result as a mask, would it be atomic?
<wpwrak> yes
<kyak> ok, then it is ubb_read :)
<viric> !0 is 1 ?
pcercuei has joined #qi-hardware
Guest27683 has joined #qi-hardware
<wpwrak> viric: yup
rz2k has joined #qi-hardware
pcercuei has quit [Ping timeout: 255 seconds]
Guest27683 has quit [Quit: Verlassend]
pcercuei has joined #qi-hardware
pcercuei has quit [Quit: Bye]
Hoolxi has joined #qi-hardware
urandom__ has joined #qi-hardware
wej has quit [Ping timeout: 264 seconds]
wej has joined #qi-hardware
uwe__ is now known as uwe_
wej has quit [Ping timeout: 248 seconds]
wej has joined #qi-hardware
jekhor has quit [Ping timeout: 265 seconds]
LunaVorax has quit [Ping timeout: 260 seconds]
wej has quit [Ping timeout: 260 seconds]
wej has joined #qi-hardware