[mc1322x] Access to LQI
Clive Stubbings
cstl at xentech.co.uk
Thu Jun 10 13:22:12 EDT 2010
Thanks Mar,
I'll try your NVM method :-)
I've got a bit of code generated in one of the beekit apps that seems to
call it, so hopefully that should be the same.
BTW, you tracked it down to MACPHY.a. Where did you get that from? I do have a
couple of beekit examples that I generated code for (though I never tried
building it) some time ago. In there, all I found was in 'MC1322x.a'
Synthesizer.o:
000001ad T PhyPlmeGetLQI
Cheers
Clive
On Thu, 10 Jun 2010, Mariano Alvira wrote:
> On Thu, Jun 10, 2010 at 05:07:50PM +0100, Clive Stubbings wrote:
>> OK,
>>
>> So is there a way to call that?
>>
>> Can I just do something like..
>>
>> .global PhyPlmeGetLQI
>> .type PhyPlmeGetLQI, %function
>> .thumb_set PhyPlmeGetLQI, 0x0000e04c
>> .weak PhyPlmeGetLQI
>
>
> Hmmm... something like that might work. I use the ROM calls for the
> nvm routines. You can see how I do it in ~/libmc1322x/lib/nvm.c. E.g.:
>
> nvmErr_t (*nvm_erase)
> (nvmInterface_t nvmInterface, nvmType_t nvmType ,uint32_t
> sectorBitfield)
> = (void*) 0x00006e05;
>
>> Or do I need to go look at that rom dissassmbly and work out whats happening?
>
> Sometimes you do; in order to figure out what to pass it or how to
> call it, for instance.
>
> -Mar.
>
More information about the mc1322x
mailing list