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

@@ -259,7 +259,7 @@ void ethernet_mii_init()
}
// why tho
void rltk_mii_recv(struct eth_drv_sg *sg_list, int sg_len){
struct eth_drv_sg *last_sg;
u8* pbuf = RX_BUFFER;
@@ -272,7 +272,7 @@ void rltk_mii_recv(struct eth_drv_sg *sg_list, int sg_len){
}
}
// also why
s8 rltk_mii_send(struct eth_drv_sg *sg_list, int sg_len, int total_len){
int ret =0;
struct eth_drv_sg *last_sg;

View File

@@ -11,4 +11,7 @@
typedef void (*link_up_down_callback)(int blinkup);
#endif // __MII_ETHERNETIF_H__
s8 rltk_mii_send(struct eth_drv_sg *sg_list, int sg_len, int total_len);
void rltk_mii_recv(struct eth_drv_sg *sg_list, int sg_len);
#endif // __MII_ETHERNETIF_H__

View File

@@ -1,6 +1,7 @@
#include "platform_opts.h"
#include "rtw_opt_crypto_ssl.h"
#include "osdep_service.h"
#include "ssl_ram_map.h"
#if CONFIG_USE_MBEDTLS
/****************************************************************************************************

View File

@@ -236,7 +236,7 @@ typedef unsigned char __u8;
typedef char __s8;
typedef unsigned short __u16;
typedef short __s16;
typedef unsigned int __u32;
typedef unsigned long __u32;
typedef int __s32;
typedef unsigned long long __u64;
typedef long long __i64;

View File

@@ -41,7 +41,7 @@ struct sk_buff {
// Wlan Interface opened for upper layer
//----- ------------------------------------------------------------------
int rltk_wlan_init(int idx_wlan, rtw_mode_t mode); //return 0: success. -1:fail
//void rltk_wlan_deinit(void);
void rltk_wlan_deinit(void);
void rltk_wlan_deinit_fastly(void);
void rltk_wlan_deinit_hardware(void);
int rltk_wlan_start(int idx_wlan);
@@ -70,7 +70,9 @@ void rltk_wlan_tx_auth(void);
* Enum wlan low power mode
******************************************************/
#if defined(CONFIG_WLAN_LOW_PW)
#ifndef BIT
#define BIT(x) (1<<(x))
#endif
typedef enum {
PW_MODE_NONE = 0,
PW_MODE_1 = BIT(0), // CPU 31.25