6#ifndef CAFFEINE_SAL_CFN_SAL_H
7#define CAFFEINE_SAL_CFN_SAL_H
16#include "cfn_hal_base.h"
25#define CFN_SAL_PREFIX 'S'
30#define CFN_SAL_TYPE(a, b, c) CFN_HAL_MAKE_TYPE(CFN_SAL_PREFIX, a, b, c)
36#define CFN_SAL_ERROR_BASE 0x600
38#define CFN_SAL_CREATE_DRIVER_TYPE(prefix, config_type, api_type, phy_type, cb_type) \
39 struct cfn_##prefix##_s \
41 cfn_hal_driver_t base; \
42 const config_type *config; \
43 const api_type *api; \
44 const phy_type *phy; \
48 typedef struct cfn_##prefix##_s cfn_##prefix##_t
Common types for Caffeine SAL.