Renesas M3T-MR100 Bedienungsanleitung Seite 228

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 304
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 227
- 214 -
1. Describe the cyclic or alarm handler as a function.
46
2. Be sure to declare the return value and argument of the interrupt handler start function as
a void type.
3. At the beginning of file, be sure to include "itron.h",”kernel.h” which is in the system di-
rectory as well as "kernel_id.h" which is in the current directory.
4. The static declared functions cannot be registered as a cyclic handler or alarm handler.
5. The cyclic handler and alarm handler are invoked by a subroutine call from a system clock
interrupt handler.
#include <itron.h>
#include <kernel.h>
#include "kernel_id.h"
void cychand(void)
{
/*process */
}
Figure 7.5 Example Cyclic Handler Written in C Language
46
The handler-to-function name correlation is determined by the configuration file.
Seitenansicht 227
1 2 ... 223 224 225 226 227 228 229 230 231 232 233 ... 303 304

Kommentare zu diesen Handbüchern

Keine Kommentare