Skip to content
Snippets Groups Projects
Commit d6e12363 authored by maxgerhardt's avatar maxgerhardt
Browse files

Add -c COM port argument (compile fix)

parent fbab6c28
No related branches found
No related tags found
No related merge requests found
...@@ -145,16 +145,22 @@ struct InternalState ...@@ -145,16 +145,22 @@ struct InternalState
#define DLLDECORATE #define DLLDECORATE
#endif #endif
void * MiniCHLinkInitAsDLL(struct MiniChlinkFunctions ** MCFO) DLLDECORATE; /* initialization hints for init functions */
/* could be expanded with more in the future (e.g., PID/VID hints, priorities, ...)*/
/* not all init functions currently need these hints. */
typedef struct {
const char* serial_port;
} init_hints_t;
void * MiniCHLinkInitAsDLL(struct MiniChlinkFunctions ** MCFO, const init_hints_t* init_hints) DLLDECORATE;
extern struct MiniChlinkFunctions MCF; extern struct MiniChlinkFunctions MCF;
// Returns 'dev' on success, else 0. // Returns 'dev' on success, else 0.
void * TryInit_WCHLinkE(void); void * TryInit_WCHLinkE(void);
void * TryInit_ESP32S2CHFUN(void); void * TryInit_ESP32S2CHFUN(void);
void * TryInit_NHCLink042(void); void * TryInit_NHCLink042(void);
void * TryInit_B003Fun(void); void * TryInit_B003Fun(void);
void * TryInit_Ardulink(); void * TryInit_Ardulink(const init_hints_t*);
// Returns 0 if ok, populated, 1 if not populated. // Returns 0 if ok, populated, 1 if not populated.
int SetupAutomaticHighLevelFunctions( void * dev ); int SetupAutomaticHighLevelFunctions( void * dev );
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment