6 extern int tolpc_verbose_level;
9 // File descriptor and stream of open serial line
13 char *sdev; // Serial device to open
14 int baud; // Communication baudrate
15 int crystal; // Crtystal freq of LPC21xx
16 long waitrep; // How long to wait for reply.
20 void tolpc_verbose(int level, const char *fmt, ...);
21 //int tolpc_synchronize(struct tolpc_env *env);
23 int tolpc_open_target(struct tolpc_env *env);
24 int tolpc_go(struct tolpc_env *env, unsigned int start, char arm_mode);
25 int tolpc_partid(struct tolpc_env *env, char* part_id, int size);
26 int tolpc_break(struct tolpc_env *env);
27 int tolpc_write_ram(struct tolpc_env *env, unsigned int start, int length, unsigned char *data);
28 int tolpc_unlock(struct tolpc_env *env);
29 int tolpc_bootver(struct tolpc_env *env, char* part_id, int size);
30 int tolpc_echo(struct tolpc_env *env, char on);
32 #endif /* _TOLPC_FN_H */