lib/config/cfbd_define.h¶
Core type and macro definitions used across CFBD libraries. More...
Detailed Description¶
Core type and macro definitions used across CFBD libraries.
Author: Charliechen114514 (chengh1922@mails.jlu.edu.cn)
Version: 0.1
Date: 2026-01-01
This header centralizes small, portable typedefs and helper macros used by the CFBD (CF BareMetal Drivers) project. It intentionally contains only minimal, dependency-free declarations so it can be included widely in both platform and application code.
The types defined here are lightweight building blocks such as a boolean type and common function-pointer signatures used for component initialization or simple callbacks.
Source code¶
#pragma once
#include <stdint.h>
typedef uint8_t CFBD_Bool;
#define CFBD_FALSE (0)
#define CFBD_TRUE (1)
typedef CFBD_Bool (*SelfInitFunc)(void* self_handle, void* args);
typedef void (*PlainFunc)(void* args);
Updated on 2026-02-03 at 13:21:55 +0000