initial commit

This commit is contained in:
bmy
2024-06-10 18:04:53 +08:00
commit 3c525b4cfd
115 changed files with 54092 additions and 0 deletions

23
app/by_utils.h Normal file
View File

@@ -0,0 +1,23 @@
#ifndef _BY_UTILS_H__
#define _BY_UTILS_H__
#include "at32f425.h"
typedef enum {
BY_ERROR = 0,
BY_SUCCESS = !BY_ERROR
} by_error_status;
typedef enum {
T_U8 = 0,
T_U16,
T_U32,
T_S8,
T_S16,
T_S32,
T_F32
} by_data_type;
int32_t clip_s32(int32_t x, int32_t low, int32_t up);
#endif