chore: sdk compiles almost w/o warnings?

This commit is contained in:
2024-12-17 03:13:08 +06:00
parent 31efbc726f
commit 7c7b36a6b3
55 changed files with 658 additions and 514 deletions

View File

@@ -6,9 +6,9 @@
* This module is a confidential and proprietary property of RealTek and
* possession or use of this module requires written permission of RealTek.
*/
#include "basic_types.h"
u32
Rand (
extern _LONG_CALL_ u32 Rand (
VOID
);

View File

@@ -62,6 +62,7 @@
#include <device_lock.h>
#include "rtl8710b_ota.h"
#include "lwip/netdb.h"
#include "rtc_api.h"
#define OTA2_DEFAULT_ADDR (0x08080000)

View File

@@ -6,9 +6,9 @@
* This module is a confidential and proprietary property of RealTek and
* possession or use of this module requires written permission of RealTek.
*/
#include "basic_types.h"
u32
Rand (
extern _LONG_CALL_ u32 Rand (
VOID
);

View File

@@ -100,7 +100,7 @@ static inline int isodigit(const char c)
return c >= '0' && c <= '7';
}
#ifndef strtoul
#define strtoul(str, endp, base) Strtoul(str, endp, base)
#define strtoul(str, endp, base) simple_strtoul(str, endp, base)
#endif
#ifndef strtol
#define strtol(str, endp, base) simple_strtol(str, endp, base)