Skip to content
Snippets Groups Projects
Select Git revision
  • 5e64af02ae56b4b50cef24a23b6b89ef2cd8944f
  • master default protected
2 results

command.h

Blame
  • command.h 415 B
    #ifndef _COMMAND_H
    #define _COMMAND_H
    
    #include <stdint.h>
    
    #define NUM_ARGS 3
    
    #ifdef __cplusplus
    extern "C" {
    #endif
    
         struct command {
    	  char comm_ch; /* Character of command (ie 's', 'v', 'd') */
    	  int16_t arg[NUM_ARGS];
         };
         
         extern char comm_str[33];
         
         uint8_t uart_add_ch(char c);
         struct command *get_command(void);
    
    #ifdef __cplusplus
    }
    #endif
         
    #endif /* _COMMAND_H */