CompuLab SBC-X270 Bedienungsanleitung Seite 90

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 226
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 89
SCIOPTA - Real-Time Kernel
11-2 Manual Version 4.1 User’s Manual
SCIOPTA - Real-Time Kernel
11 System Start and Setup
11.2 Reset Hook
In SCIOPTA a reset hook must always be present and must have the name reset_hook.
The reset hook must be written by the user.
After system reset the SCIOPTA kernel initializes a small stack and jumps directly into the reset hook.
The reset hook is mainly used to do some basic chip and board settings. The C environment is not yet initialized
when the reset hook executes (stackpointer not yet initialized). Therefore the reset hook should be written in as
-
sembler. For some C environments it might be written in C.
There is no reset hook in the SCIOPTA SCSIM Simulator.
11.2.1 Syntax
int reset_hook (void);
11.2.2 Parameter
None.
11.2.3 Return Value
If it is set to !=0 then the kernel will immediately call the dispatcher. This will initiate a warm start.
If it is set to 0 then the kernel will jump to the C startup function. This will initiate a cold start.
11.2.4 Location
Reset hooks are compiler manufacturer and board specific. Reset hook examples can be found in the SCIOPTA
Board Support Package deliveries.
resethook.S Very early hardware initialization code written in assembler.
The extension .S is used in GCC for assembler source files. For other compiler packages the ex-
tensions for assembler source files might be different.
File location: <installation_folder>\sciopta\<version>\bsp\<arch>\<cpu>\<board>\src
Seitenansicht 89
1 2 ... 85 86 87 88 89 90 91 92 93 94 95 ... 225 226

Kommentare zu diesen Handbüchern

Keine Kommentare