includes: some manual code nicenings

Origin commit data
------------------
Branch: master
Commit: 59dd7a5268
Author: vanhofen <vanhofen@gmx.de>
Date: 2021-11-07 (Sun, 07 Nov 2021)

Origin message was:
------------------
- includes: some manual code nicenings

------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
This commit is contained in:
vanhofen
2021-11-07 00:57:01 +01:00
parent 734ae7aa84
commit 915ae81f37
9 changed files with 141 additions and 179 deletions

View File

@@ -19,8 +19,8 @@ inline void cs_api_exit()
hal_api_exit();
};
#define cs_malloc_uncached malloc
#define cs_free_uncached free
#define cs_malloc_uncached malloc
#define cs_free_uncached free
// Callback function helpers
#if HAVE_DUCKBOX_HARDWARE \
@@ -33,25 +33,13 @@ inline void cs_api_exit()
)
void cs_register_messenger(cs_messenger messenger);
#else
static inline void cs_register_messenger(cs_messenger)
{
return;
};
static inline void cs_register_messenger(cs_messenger) { return; };
#endif
static inline void cs_deregister_messenger(void)
{
return;
};
static inline void cs_deregister_messenger(void) { return; };
/* compat... HD1 seems to be version 6. everything newer ist > 6... */
static inline unsigned int cs_get_revision(void)
{
return 1;
};
static inline unsigned int cs_get_chip_type(void)
{
return 0;
};
static inline unsigned int cs_get_revision(void) { return 1; };
static inline unsigned int cs_get_chip_type(void) { return 0; };
extern int cnxt_debug;
#endif // __CS_API_H__