p1load/port.h
David Betz 8582bbc752 Factored out the port handling code that interfaces to osint_xxx.c.
There is still some work to do to handle use_reset_method().
Started work on a program to read/write eeprom. Not working yet.
2015-02-19 22:00:12 -05:00

18 lines
382 B
C

#ifndef __PORT_H__
#define __PORT_H__
#include "ploader.h"
/* CheckPort result codes */
enum {
CHECK_PORT_OK,
CHECK_PORT_OPEN_FAILED,
CHECK_PORT_NO_PROPELLER
};
/* prototypes */
void InitPortState(PL_state *state);
void ShowPorts(PL_state *state, char *prefix);
int InitPort(PL_state *state, char *prefix, char *port, int baud, int verbose, char *actualport);
#endif