On 25 June 2010 02:07, Alexey Starikovskiy <[email protected]> wrote:
> please make "struct haldata_t {} *haldata = 0;" static too.
I will certainly give this a try, and I would be interested to see if
it clears up some of the wierdness in the HAL pins. However, as the
HAL pins are only present for debug purposes (the only one that is
actually meant to be there is the head_offset) and the remainder are
only written to I doubt that is the root cause.
Is it safe to "static" a structure and then hal_malloc it in the init
function a bit later in the code?
Isn't malloc-ing the structure making it static anyway?
--
atp
------------------------------------------------------------------------------
ThinkGeek and WIRED's GeekDad team up for the Ultimate
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the
lucky parental unit. See the prize list and enter to win:
http://p.sf.net/sfu/thinkgeek-promo
_______________________________________________
Emc-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/emc-developers