uracoli-devel
[Top][All Lists]
Advanced

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

[uracoli-devel] Custom Library


From: Brad Brooks
Subject: [uracoli-devel] Custom Library
Date: Tue, 13 Aug 2013 20:49:31 -0500

I have successfully followed the instructions (http://uracoli.nongnu.org/custom.html) to build a custom library.  I need to initialize PB7 as an output set high.

I believe I could add the code below to the wibohost.c file, rebuild custom library,
DDRB &= ~(1<<(7));        // set data direction as output
PORTB |= (1<<(7));        // set PB7 high
and then in my application code on each of the nodes, add the same code.

How can I implement this in the myboard.h file (as described in the custom.html) so when I build my custom library it will be part of it without having to modify wibohost.  I think this would make maintaining my code easier, right?

Brad



reply via email to

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