Files
lishanpi/bsp/common_types.h
T

27 lines
417 B
C++
Raw Normal View History

2026-04-26 16:24:42 +08:00
#ifndef __COMMON_TYPES_H__
#define __COMMON_TYPES_H__
#include <cstdint>
enum RetCode {
RET_OK = 0,
RET_ERROR,
RET_INVALID_PARAM,
RET_TIMEOUT,
RET_BUSY,
RET_NOT_SUPPORTED,
RET_NOT_INITIALIZED,
RET_HARDWARE_ERROR
};
typedef RetCode ret_code_t;
struct SystemClock {
uint32_t system_core_clock;
uint32_t ahb_clock;
uint32_t apb1_clock;
uint32_t apb2_clock;
};
#endif