Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Rule 10.1 (DSP code)
#1
Hi,

My code for running a blackfin DSP uses pointers to registers to set specific register values.

i.e.
Code:
*pSPI_FLG = 0x01;

however this generates a MISRA compliancy error.

what other way round this is there?

thanks for any help


matt
<t></t>
Reply
#2
Depending on the definition of those pointers, your only option might be to define a general MISRA exception for access to those registers.
If you provide an example of the definition of one of those pointers, we can have a look if there's a coding alternative compliant with MISRA without issuing an exception.

FWIW,

Johan
<r>Johan Bezem<br/>
Email: <EMAIL email="[email protected]">[email protected]</EMAIL><br/>
Tel: +49 172 5463210<br/>
Web: <URL url="http://www.bezem.de/">http://www.bezem.de/</URL></r>
Reply
#3
Hi Johan,

thanks for the reply,
It looks like the issue was more with conversions of data i was trying to place into the register.
If i cast everything to the size of the register, it works fine.

thanks again,

Matt
<t></t>
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)