root/platform/sx200is/sub/boot_hdr.c

/* [<][>][^][v][top][bottom][index][help] */

DEFINITIONS

This source file includes following definitions.
  1. taskCreateHook
  2. CreateTask_spytask

   1 #include "lolevel.h"
   2 #include "platform.h"
   3 #include "core.h"
   4 #include "dryos31.h"
   5 
   6 #define offsetof(TYPE, MEMBER) ((int) &((TYPE *)0)->MEMBER)
   7 
   8 const char * const new_sa = &_end;
   9 
  10 extern void task_CaptSeq();
  11 extern void task_PhySw();
  12 extern void task_RotaryEncoder();
  13 extern void task_InitFileModules();
  14 extern void task_MovieRecord();
  15 extern void task_ExpDrv();
  16 extern void task_FileWrite();
  17 
  18 void JogDial_task_my(void);
  19 
  20 void taskCreateHook(context_t **context) {
  21     task_t *tcb=(task_t*)((char*)context-offsetof(task_t, context));
  22 
  23     if (tcb->entry == (void*)task_CaptSeq)           tcb->entry = (void*)capt_seq_task;
  24     if (tcb->entry == (void*)task_PhySw)             tcb->entry = (void*)mykbd_task;
  25     if (tcb->entry == (void*)task_RotaryEncoder)     tcb->entry = (void*)JogDial_task_my;
  26     if (tcb->entry == (void*)task_InitFileModules)   tcb->entry = (void*)init_file_modules_task;
  27     if (tcb->entry == (void*)task_MovieRecord)       tcb->entry = (void*)movie_record_task;
  28     if (tcb->entry == (void*)task_ExpDrv)            tcb->entry = (void*)exp_drv_task;
  29     if (tcb->entry == (void*)task_FileWrite)         tcb->entry = (void*)filewritetask;
  30 }
  31 
  32 void CreateTask_spytask() {
  33         _CreateTask("SpyTask", 0x19, 0x2000, core_spytask, 0);
  34 };
  35 

/* [<][>][^][v][top][bottom][index][help] */