2013-10-15 08:14:33 -04:00
|
|
|
#include "picrin.h"
|
|
|
|
|
|
|
|
void pic_init_port(pic_state *);
|
2013-10-15 10:26:18 -04:00
|
|
|
void pic_init_number(pic_state *);
|
2013-10-19 23:04:15 -04:00
|
|
|
void pic_init_time(pic_state *);
|
2013-10-20 22:51:02 -04:00
|
|
|
void pic_init_system(pic_state *);
|
2013-10-15 08:14:33 -04:00
|
|
|
|
|
|
|
#define DONE pic_gc_arena_restore(pic, ai);
|
|
|
|
|
|
|
|
void
|
|
|
|
pic_init_core(pic_state *pic)
|
|
|
|
{
|
|
|
|
int ai;
|
|
|
|
|
|
|
|
ai = pic_gc_arena_preserve(pic);
|
|
|
|
pic_init_port(pic); DONE;
|
2013-10-15 10:26:18 -04:00
|
|
|
pic_init_number(pic); DONE;
|
2013-10-19 23:04:15 -04:00
|
|
|
pic_init_time(pic); DONE;
|
2013-10-20 22:51:02 -04:00
|
|
|
pic_init_system(pic); DONE;
|
2013-10-15 08:14:33 -04:00
|
|
|
}
|