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 // Forward declarations 11 extern volatile int jogdial_stopped; 12 13 /*---------------------------------------------------------------------- 14 CreateTask_spytask 15 -----------------------------------------------------------------------*/ 16 void CreateTask_spytask() 17 { 18 _CreateTask("SpyTask", 0x19, 0x2000, core_spytask, 0); 19 } 20 21 ///*---------------------------------------------------------------------- 22 // Pointer to stack location where jogdial task records previous and current 23 // jogdial positions 24 short *jog_position; 25 26 /*---------------------------------------------------------------------- 27 boot() 28 29 Main entry point for the CHDK code 30 -----------------------------------------------------------------------*/