MATLAB REAL-TIME WORKSHOP EMBEDDED CODER - S Manuel d'utilisateur Page 17

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 76
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 16
9
3.1.5 External Function Calls and S-function Support
Function calls to hardware are sometimes replaced with a subsystem in the
simulation model which will do something different during the simulation. This is
to avoid having to be connected to the hardware during the simulation and code
generation stage. In TargetLink the user can have, as mentioned earlier, a
subsystem for which separate code is generated in a separate file. The user can
specify the name of that specific file and the name of the function call. In that way
the user can replace the generated file with the original file that contains the
function call to the hardware. No changes in the generated code are then required
since the user can choose the same name and interface for the function call in
question. In that way the simulation will run smoothly and when running against
the target the user does not need to change anything in the code but only replaces
certain files. External code can be added easily to the model as well, this is done
by using a specific block to add custom code to the model or using S-functions
which are fully supported in TargetLink.
3.1.6 MISRA C, Platform Dependency and Different Microprocessors
Support
The Motor Industry Software Reliability Association, MISRA, has developed a
standard for C programming language for guidelines in safety critical systems.
TargetLink respects the majority of MISRA C rules. Deviations from MISRA C
rules are technical necessity and when they occur they are identified and well
documented [10]. For interested users there is specific documentation for
TargetLink support of MISRA C provided by TargetLink.
TargetLink generates ANSI-C code which is platform independent and can
therefore be compiled with any ANSI-C C-compiler on any platform.
TargetLink supports a list of microprocessors if the program Target Optimisation
Module, TOM, is purchased. TOM is an additional program for TargetLink Base
Suite, TBS. below is a list of the supported microprocessors in TargetLink 2.2:
Freescale HCS12
Freescale MPC5xx
Freescale MPC55xx
Infineon C16x
Infineon TriCore
Renesas M32R
Renesas SH-2
The optimised generated code is still effective ANSI C code which is platform
independent. TOM code can also be target specific, i.e. insertion of assembly code
and usage of compiler specific extensions to further improvement of code
efficiency is available if the user allows TargetLink to do so.
Vue de la page 16
1 2 ... 12 13 14 15 16 17 18 19 20 21 22 ... 75 76

Commentaires sur ces manuels

Pas de commentaire