[ell-i-developers] Re: PWM configuration

  • From: Ivan Raul <supra.material@xxxxxxxxx>
  • To: ell-i-developers@xxxxxxxxxxxxx
  • Date: Fri, 24 Jan 2014 20:36:50 +0200

I updated my commit, I hope I got it right this time :-)

I tested the updated version of the initialization for 16bits register...
it didn't work yet. It is unable to write after the first element, there
should be some bug in the address calculation.

With Warm Regards, Ivan Raul

On Fri, Jan 24, 2014 at 8:01 PM, Pekka Nikander <pekka.nikander@xxxxxx>wrote:

> >> Then, I assume that for using the current data16 no address approach,
> one should write all the registers in serial fashion, with their reset
> values for preventing the initialization routine to write trash to the
> registers in between.
> Yes.
> >> Still another problem is the array count. The system right now counts
> all the elements, because the macros save in a sparse array.
> > About counting there is no problem, as it can be simply adjusted
> accordingly.
> Right.
> > About the problem of the garbage, is the default behaviour of the linker
> / compiler to fill the empty elements with zeros?
> The C standard guarantees that the non-initialised members of a partially
> initialised statically allocated integer array are initialised to zero.
>  C99 Section subclause 2 about arithmetic types.  What comes to
> automatically allocated arrays, we should avoid them as we are running in a
> very limited RAM space.
> --Pekka

Other related posts: