PontusO/mlight-4_2_pmd — comment on commit 527cbba2354dabad7f814e9cc3bdce53331be5c1
File:  line 0
By PontusO:

This commit implements the ltbl (PA1) API and some bug fixes. Note that the ltbl service is currently only enabled for channel 0. The rest of the channels will come in the next commit. A lot of changes in this commit is due to that the compiler we're using (SDCC) goes nuts on the parameter passing when using reentrant banked functions. You simply can not pass a pointer to for instance a struct as parameter one and then an integer as parameter two (See init_ramp_mgr). When trying to use the int later in the function it will be unaligned. An issue have been opened with the maintainer for this. The compiler also does some weird stuff in the ramp_mgr protothreads. Not sure what is happening there but simply rearranging the members of the ramp_t struct fixed that problem.