chore: HERV 통합 저장소 초기 커밋
- 펌웨어(program), C# 대시보드(TestProgram), 시뮬레이터(Simulator), 프로토콜/문서(Protocol, doc) 전체를 단일 저장소로 통합 - program 폴더의 별도 git 저장소를 제거하고 통합 저장소에 흡수 - 빌드 산출물(program/build, bin/obj, *.o/.elf/.bin/.hex 등) .gitignore 처리 - 사내 Synology NAS Git 원격 연결 예정 Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -0,0 +1,73 @@
|
||||
//=============================================================================
|
||||
// S E N S I R I O N AG, Laubisruetistr. 50, CH-8712 Staefa, Switzerland
|
||||
//=============================================================================
|
||||
// Project : SHT3x Sample Code (V1.1)
|
||||
// File : typedefs.h (V1.1)
|
||||
// Author : RFU
|
||||
// Date : 6-Mai-2015
|
||||
// Controller: STM32F100RB
|
||||
// IDE : µVision V5.12.0.0
|
||||
// Compiler : Armcc
|
||||
// Brief : Definitions of typedefs for good readability and portability.
|
||||
//=============================================================================
|
||||
|
||||
|
||||
//-- Defines ------------------------------------------------------------------
|
||||
//Processor endian system
|
||||
//#define BIG ENDIAN //e.g. Motorola (not tested at this time)
|
||||
#define LITTLE_ENDIAN //e.g. PIC, 8051, NEC V850
|
||||
//=============================================================================
|
||||
// basic types: making the size of types clear
|
||||
//=============================================================================
|
||||
typedef unsigned char u8t; ///< range: 0 .. 255
|
||||
typedef signed char i8t; ///< range: -128 .. +127
|
||||
|
||||
typedef unsigned short u16t; ///< range: 0 .. 65535
|
||||
typedef signed short i16t; ///< range: -32768 .. +32767
|
||||
|
||||
typedef unsigned long u32t; ///< range: 0 .. 4'294'967'295
|
||||
typedef signed long i32t; ///< range: -2'147'483'648 .. +2'147'483'647
|
||||
|
||||
typedef float ft; ///< range: +-1.18E-38 .. +-3.39E+38
|
||||
typedef double dt; ///< range: .. +-1.79E+308
|
||||
|
||||
typedef enum{
|
||||
bFALSE = 0,
|
||||
bTRUE = 1
|
||||
}bt;
|
||||
|
||||
typedef union {
|
||||
u16t u16; // element specifier for accessing whole u16
|
||||
i16t i16; // element specifier for accessing whole i16
|
||||
struct {
|
||||
#ifdef LITTLE_ENDIAN // Byte-order is little endian
|
||||
u8t u8L; // element specifier for accessing low u8
|
||||
u8t u8H; // element specifier for accessing high u8
|
||||
#else // Byte-order is big endian
|
||||
u8t u8H; // element specifier for accessing low u8
|
||||
u8t u8L; // element specifier for accessing high u8
|
||||
#endif
|
||||
} s16; // element spec. for acc. struct with low or high u8
|
||||
} nt16;
|
||||
|
||||
typedef union {
|
||||
u32t u32; // element specifier for accessing whole u32
|
||||
i32t i32; // element specifier for accessing whole i32
|
||||
struct {
|
||||
#ifdef LITTLE_ENDIAN // Byte-order is little endian
|
||||
u16t u16L; // element specifier for accessing low u16
|
||||
u16t u16H; // element specifier for accessing high u16
|
||||
#else // Byte-order is big endian
|
||||
u16t u16H; // element specifier for accessing low u16
|
||||
u16t u16L; // element specifier for accessing high u16
|
||||
#endif
|
||||
} s32; // element spec. for acc. struct with low or high u16
|
||||
} nt32;
|
||||
|
||||
typedef enum{
|
||||
NO_ERROR = 0x00, // no error
|
||||
ACK_ERROR = 0x01, // no acknowledgment error
|
||||
CHECKSUM_ERROR = 0x02, // checksum mismatch error
|
||||
TIMEOUT_ERROR = 0x04, // timeout error
|
||||
PARM_ERROR = 0x80, // parameter out of range error
|
||||
}etError;
|
||||
Reference in New Issue
Block a user