avrdude integration basics (WIP)

This commit is contained in:
Vojtech Kral
2018-04-19 10:35:47 +02:00
parent 1caeab913b
commit 11a00b025f
9 changed files with 323 additions and 159 deletions

View File

@@ -28,6 +28,8 @@ extern int ovsigck; /* override signature check (-F) */
extern int verbose; /* verbosity level (-v, -vv, ...) */
extern int quell_progress; /* quiteness level (-q, -qq) */
typedef void (*avrdude_message_handler_t)(const char *msg, unsigned size, void *user_p);
avrdude_message_handler_t avrdude_message_handler_set(avrdude_message_handler_t newhandler, void *user_p);
int avrdude_message(const int msglvl, const char *format, ...);
#define MSG_INFO (0) /* no -v option, can be supressed with -qq */
@@ -37,6 +39,8 @@ int avrdude_message(const int msglvl, const char *format, ...);
#define MSG_TRACE (4) /* displayed with -vvvv, show trace commuication */
#define MSG_TRACE2 (5) /* displayed with -vvvvv */
int avrdude_main(int argc, char * argv [], const char *sys_config);
#if defined(WIN32NATIVE)
#include "ac_cfg.h"