#ifndef __COMMON_TYPES_H__ #define __COMMON_TYPES_H__ #include 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