[mc1322x] uart1-loopback example. Modification for mc1322x-SRB

Jon Smirl jonsmirl at gmail.com
Mon Mar 29 18:56:58 EDT 2010


On Mon, Mar 29, 2010 at 6:50 PM, Mariano Alvira <mar at devl.org> wrote:
> Thanks Jon,
>
> The blink.c looks good.
>
> led-arch.c is very close --- that should work for Manuel.
>
> The led defines in arch should come from the boards.h (so include
> "board.h" and get rid of RED,GREEN,BLUE). It should also use
> gpio_pad_dir_set/reset and gpio_data_set/reset in lib/gpio.c --- these
> take 64 bit fields and load banks 0 and 1 accordingly. That way
> led-arch will work on all boards regardless if they've been hooked up
> to bank0 gpio or bank1 gpio.
>
> And for some reason patchwork.devl.org didn't catch these... but
> that's another problem entirely!

Probably because I posted them as files instead of patches.

>
> Thanks again,
>
> -Mar.
>
> On Mon, Mar 29, 2010 at 06:25:55PM -0400, Jon Smirl wrote:
>> This is an update to the blink example to make it use Contiki device drivers.
>>
>> Mar, did I get all of the pieces?
>>
>> On Mon, Mar 29, 2010 at 8:47 AM, Mariano Alvira <mar at devl.org> wrote:
>> > On Mon, Mar 29, 2010 at 12:47:39PM +0200, Manuel Macías wrote:
>> >> Ok, I´ve loaded hello-world but it does nothing. Maybe it could be
>> >> something related to the xtal? Can these redbee-dev examples work in the
>> >> freescale mote?
>> >> I´ve try to compile de blink example of the mc1322x-2.4 branch but it
>> >> doesn´t. This is the one you tried to build?
>> >>
>> >
>> > As I mentioned before, the blink example doesn't build anymore on my
>> > branches. Hello world should work, but I haven't tried it
>> > recently. I've changed how the GPIO interface is working so I'm not
>> > surprised that blink doesn't work anymore. It isn't part of mainline
>> > contiki anyway so I'll probably remove it (same with the old
>> > linux802154 driver).
>> >
>> > I don't know off-hand if your boards have a 32KHz crystal or
>> > not. Depending on you contiki configuration, it may be trying to
>> > enable it. This will block if your board does not actually have the
>> > crystal. See USE_32KHZ_XTAL.
>> >
>> > I don't know how the GPIO hookups compare with your board. They are
>> > easy to configure in the ~/board directory. I don't know which uart
>> > you are trying to use. All the boards in there now use uart1.
>> >
>> > I do most of my Contiki testing on rime/example-abc,
>> > rime/example-mesh, rime/example-collect. In the WIP-2.4 branch:
>> > udp-ipv6, and webserver-ipv6. I'm focusing on those since RIME and UIP
>> > are the main reasons to use Contiki. I can help more if you try one of
>> > those.
>> >
>> > -Mar.
>> >
>> > _______________________________________________
>> > mc1322x mailing list
>> > mc1322x at devl.org
>> > http://devl.org/cgi-bin/mailman/listinfo/mc1322x
>> >
>>
>>
>>
>> --
>> Jon Smirl
>> jonsmirl at gmail.com
>
>
>
>



-- 
Jon Smirl
jonsmirl at gmail.com



More information about the mc1322x mailing list