mirror of
https://github.com/pvvx/RTL00_WEB.git
synced 2026-04-05 21:15:11 +00:00
update
This commit is contained in:
parent
eac35630e6
commit
25980c5c59
16 changed files with 204 additions and 129 deletions
|
|
@ -274,7 +274,7 @@ rtw_result_t _wext_enable_powersave(int adapter_num, uint8 ips_mode, uint8 lps_m
|
|||
_adapter * pad = get_padaptern(adapter_num);
|
||||
rtw_result_t ret = RTW_ERROR;
|
||||
if(pad) {
|
||||
ret = rtw_pm_set_ips(pad, ips_mode); // 2 режима 1,2 !
|
||||
ret = rtw_pm_set_ips(pad, ips_mode); // 2 режима 1,2 ?
|
||||
if(ret == RTW_SUCCESS) {
|
||||
LeaveAllPowerSaveMode(pad);
|
||||
ret = rtw_pm_set_lps(pad, lps_mode);
|
||||
|
|
@ -688,7 +688,6 @@ int wifi_run(rtw_mode_t mode) {
|
|||
case RTW_MODE_STA_AP:
|
||||
ret = wifi_run_ap() | wifi_run_st();
|
||||
// _wext_enable_powersave(0, 0, 0);
|
||||
// _wext_set_lps_dtim(0, 0);
|
||||
break;
|
||||
case RTW_MODE_STA:
|
||||
ret = wifi_run_st();
|
||||
|
|
|
|||
|
|
@ -64,7 +64,7 @@ void spi_init (spi_t *obj, PinName mosi, PinName miso, PinName sclk, PinName sse
|
|||
/* SsiClockDivider doesn't support odd number */
|
||||
|
||||
DBG_SSI_INFO("SystemClock: %d\n", SystemGetCpuClk());
|
||||
DBG_SSI_INFO("MaxSsiFreq : %d\n", (SystemClock >> 2) >> 1);
|
||||
DBG_SSI_INFO("MaxSsiFreq : %d\n", (SystemGetCpuClk() >> 2) >> 1);
|
||||
|
||||
ssi_mosi = pinmap_peripheral(mosi, PinMap_SSI_MOSI);
|
||||
ssi_miso = pinmap_peripheral(miso, PinMap_SSI_MISO);
|
||||
|
|
|
|||
|
|
@ -80,10 +80,10 @@ struct v4l2_file_operations {
|
|||
//ssize_t (*read) (struct file *, char __user *, size_t, loff_t *);
|
||||
//ssize_t (*write) (struct file *, const char __user *, size_t, loff_t *);
|
||||
//unsigned int (*poll) (struct file *, struct poll_table_struct *);
|
||||
long (*ioctl) (unsigned int, unsigned long);
|
||||
long (*unlocked_ioctl) (unsigned int, unsigned long);
|
||||
long (*ioctl) (unsigned int, void *);
|
||||
long (*unlocked_ioctl) (unsigned int, void *);
|
||||
#ifdef CONFIG_COMPAT
|
||||
long (*compat_ioctl32) (unsigned int, unsigned long);
|
||||
long (*compat_ioctl32) (unsigned int, void *);
|
||||
#endif
|
||||
//unsigned long (*get_unmapped_area) (struct file *, unsigned long,
|
||||
// unsigned long, unsigned long, unsigned long);
|
||||
|
|
|
|||
|
|
@ -22,7 +22,7 @@
|
|||
#include "videodev2.h"
|
||||
|
||||
|
||||
typedef int _LOCK_T;
|
||||
//typedef int _LOCK_T;
|
||||
struct vb2_alloc_ctx;
|
||||
struct vb2_fileio_data;
|
||||
|
||||
|
|
|
|||
|
|
@ -739,7 +739,7 @@ HAL_Status HalSsiIntReadRtl8195a(VOID *Adapter, VOID *RxData, u32 Length)
|
|||
u32 RxFifoThresholdLevel;
|
||||
// u8 Index = pHalSsiAdapter->Index;
|
||||
|
||||
DBG_SSI_INFO("HalSsiIntReadRtl8195a: Idx=%d, RxData=0x%x, Len=0x%x\r\n", Index, RxData, Length);
|
||||
DBG_SSI_INFO("HalSsiIntReadRtl8195a: Idx=%d, RxData=0x%x, Len=0x%x\r\n", pHalSsiAdapter->Index, RxData, Length);
|
||||
// if (HalSsiBusyRtl8195a(Adapter)) {
|
||||
// As a Slave mode, if the peer(Master) side is power off, the BUSY flag is always on
|
||||
// DBG_SSI_WARN("HalSsiIntReadRtl8195a: SSI%d is busy\n", Index);
|
||||
|
|
@ -747,7 +747,7 @@ HAL_Status HalSsiIntReadRtl8195a(VOID *Adapter, VOID *RxData, u32 Length)
|
|||
// }
|
||||
|
||||
if (Length == 0) {
|
||||
SSI_DBG_INT_READ("SSI%d RxData addr: 0x%X, Length: %d\n", Index, RxData, Length);
|
||||
SSI_DBG_INT_READ("SSI%d RxData addr: 0x%X, Length: %d\n", pHalSsiAdapter->Index, RxData, Length);
|
||||
return HAL_ERR_PARA;
|
||||
}
|
||||
|
||||
|
|
@ -774,7 +774,7 @@ HAL_Status HalSsiIntReadRtl8195a(VOID *Adapter, VOID *RxData, u32 Length)
|
|||
}
|
||||
|
||||
pHalSsiAdapter->RxData = RxData;
|
||||
DBG_SSI_INFO("SSI%d RxData addr: 0x%X, Length: %d\n", Index,
|
||||
DBG_SSI_INFO("SSI%d RxData addr: 0x%X, Length: %d\n", pHalSsiAdapter->Index,
|
||||
pHalSsiAdapter->RxData, pHalSsiAdapter->RxLength);
|
||||
|
||||
pHalSsiAdapter->InterruptMask |= BIT_IMR_RXFIM | BIT_IMR_RXOIM | BIT_IMR_RXUIM;
|
||||
|
|
|
|||
|
|
@ -108,11 +108,13 @@ HAL_GPIO_Init(
|
|||
GPIO_PullCtrl_8195a(chip_pin, HAL_GPIO_HIGHZ);
|
||||
|
||||
// HAL_Status ret =
|
||||
HAL_GPIO_Init_8195a(GPIO_Pin);
|
||||
#if CONFIG_DEBUG_LOG > 3
|
||||
HAL_Status ret = HAL_GPIO_Init_8195a(GPIO_Pin);
|
||||
if (ret != HAL_OK) {
|
||||
GpioFunctionChk(chip_pin, DISABLE);
|
||||
}
|
||||
#else
|
||||
HAL_GPIO_Init_8195a(GPIO_Pin);
|
||||
#endif
|
||||
}
|
||||
|
||||
|
|
@ -154,11 +156,14 @@ HAL_GPIO_Irq_Init(
|
|||
GPIO_Pin->pin_mode);
|
||||
HAL_GPIO_MaskIrq_8195a(GPIO_Pin);
|
||||
// HAL_Status ret =
|
||||
HAL_GPIO_Init_8195a(GPIO_Pin);
|
||||
|
||||
#if CONFIG_DEBUG_LOG > 3
|
||||
HAL_Status ret = HAL_GPIO_Init_8195a(GPIO_Pin);
|
||||
if (ret != HAL_OK) {
|
||||
GpioFunctionChk(chip_pin, DISABLE);
|
||||
}
|
||||
#else
|
||||
HAL_GPIO_Init_8195a(GPIO_Pin);
|
||||
#endif
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -287,6 +287,12 @@
|
|||
#define SDRAM_DATA_SECTION \
|
||||
SECTION(".sdram.data")
|
||||
|
||||
#if defined(CONFIG_SDR_EN)
|
||||
#define SDRAM_CODE_SECTION SECTION(".sdram.text")
|
||||
#else
|
||||
#define SDRAM_CODE_SECTION
|
||||
#endif
|
||||
|
||||
//3 Wlan Section
|
||||
#define WLAN_ROM_TEXT_SECTION \
|
||||
SECTION(".wlan.rom.text")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue