This commit is contained in:
huxi
2025-12-03 11:12:34 +08:00
parent c23ae4f24c
commit bc195654bf
8163 changed files with 3799544 additions and 92 deletions
@@ -0,0 +1,16 @@
#ifndef __DEC_H__
#define __DEC_H__
#include "typedef.h"
void doe(u16 k, void *pBuf, u32 lenIn, u32 addr);
u16 doe_continue(u16 k, void *pBuf, u32 lenIn, u8 init_flag);
void decode(u16 key, u8 *buf, u32 len, u32 offset);
u8 dec_isd_cfg_ini(const char *cfg, void *value, const u8 *ptr);
#endif
@@ -0,0 +1,40 @@
#ifndef __PRINTF_H__
#define __PRINTF_H__
#include <stdarg.h>
#include "typedef.h"
//#define NOFLOAT
// #ifdef __DEBUG
void put_u4hex(u8 dat);
void put_u8hex(unsigned char dat);
void put_u16hex(unsigned short dat);
void put_u32hex(unsigned int dat);
void put_buf(const u8 *buf, u32 len);
void printf_buf(u8 *buf, u32 len);
#ifdef __DEBUG
int printf(const char *format, ...);
int puts(const char *out);
#else
// #define put_u4hex(x)
// #define put_u8hex(x)
// #define put_u16hex(x)
// #define put_u32hex(x)
// #define put_buf(a, b)
// #define printf_buf(a, b)
#define printf(...)
#define puts(x)
#endif
int lib_putchar(int c);
extern int putchar(int a);
#endif