integration commandinterpreter, ringbuffer

This commit is contained in:
2022-07-15 12:42:42 +02:00
parent b0d317663d
commit 32162a2ec4
13 changed files with 471 additions and 116 deletions

View File

@ -26,7 +26,7 @@ extern "C" {
#define STR(x) STR_HELPER(x)
#endif
#define VERSION_MAJOR 0
#define VERSION_MINOR 1
#define VERSION_MINOR 2
#define PROGRAM_ID "f0x.at1 Version " STR(VERSION_MAJOR) "." STR(VERSION_MINOR)
#define VERSION_STRING STR(VERSION_MAJOR) "." STR(VERION_MINOR)
//#define DATE __DATE__

View File

@ -16,10 +16,16 @@ extern "C" {
#endif
//struct command_ctx_s *command_inst;
typedef struct command_ctx_s *command_inst_t;
//typedef struct command_ctx_s *command_inst_t;
extern RTC_HandleTypeDef hrtc;
/* function prototypes */
int not_implemented(command_inst_t inst, char *args);
int do_help(char *args);
int do_devid(char *args);
int do_test(/*command_inst_t inst,*/ char *args);
int do_time(char *args);
int cmd_interpreter(char * cmdline);
#ifdef __cplusplus

View File

@ -94,13 +94,14 @@ typedef struct __SI5351_HandleTypeDef *si5351_inst_t;
/* Exported constants --------------------------------------------------------*/
/** @enum errno_t Error Number Constants, @TODO could also errno.h included!!
*/
#if !defined _SYS_ERRNO_H_ || !defined __ERRNO_H__
#if !defined _SYS_ERRNO_H_ && !defined __ERRNO_H__
typedef enum {
EPERM = 1, /*!< Operation not permitted */
EIO = 5, /*!< I/O error */
ENOMEM = 12, /*!< Out of memory */
ENODEV = 19, /*!< No such device */
EFAULT = 14, /*!< Bad address */
EBUSY = 16, /*!< Device or resource busy */
ENODEV = 19, /*!< No such device */
EINVAL = 22, /*!< Invalid argument */
EADDRINUSE = 98,/*!< Address already in use */
ETIMEDOUT = 116 /*!< Connection timed out */

View File

@ -53,6 +53,7 @@ void BusFault_Handler(void);
void UsageFault_Handler(void);
void DebugMon_Handler(void);
void TIM6_DAC_IRQHandler(void);
void DMA2_Channel7_IRQHandler(void);
void LPUART1_IRQHandler(void);
/* USER CODE BEGIN EFP */