MATLAB EMBEDDED IDE LINK 4 - FOR USE WITH TEXAS INSTRUMENTS CODE COMPOSER STUDIO Specifikace Strana 75

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 126
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 74
Reviewing the Source Code
Debugging Program Behavior
5-5
/* ======== processing ======== *
* FUNCTION: Called from processing_SWI to apply signal
* processing transform to input signal.
* PARAMETERS: Address of input and output buffers.
* RETURN VALUE: TRUE. */
Int processing(Int *input, Int *output)
{
Int size = BUFSIZE;
while(size--){
*output++ = *input++ * gain;
}
/* additional processing load */
load(processingLoad);
return(TRUE);
}
/* ======== dataIO ======== *
* FUNCTION: Called from timer ISR to fake a periodic
* hardware interrupt that reads in the input
* signal and outputs the processed signal.
* PARAMETERS: none
* RETURN VALUE: none */
Void dataIO()
{
/* do data I/O */
/* post processing_SWI software interrupt */
SWI_dec(&processing_SWI);
}
Zobrazit stránku 74
1 2 ... 70 71 72 73 74 75 76 77 78 79 80 ... 125 126

Komentáře k této Příručce

Žádné komentáře