Loading files
This file is pinned to the selected release. Download the original to open it in your design tool.
1fc1053c2This file is pinned to the selected release. Download the original to open it in your design tool.
/*
* include_common.h
*
* Created on: Nov 13, 2016
* Author: Bumsik Kim
*/
#ifndef SYSTEM_KB_COMMON_HEADER_H_
#define SYSTEM_KB_COMMON_HEADER_H_
#include "config.h"
#include <stdint.h>
#define KB_LIBRARY
// base library setting
#if defined(USE_HAL_DRIVER)
#if defined(STM32F446xx) || defined(STM32F407xx)
#define STM32F4
#define STM32
#endif
#else
#error "Please define device library in config.h!!"
#endif
typedef enum {
KB_OK = 0,
KB_ERROR = -1,
KB_BUSY = -2,
KB_TIMEOUT = -3,
KB_UNKNOWN = -4
} status_t;
/*
* Handler to external (a.k.a manufacturers like ST) library
* This will be handled in .c source file
*/
typedef void* extlib_handle_t;
#endif /* SYSTEM_KB_COMMON_HEADER_H_ */