mirror of
https://github.com/pvvx/RTL00MP3.git
synced 2025-07-31 12:41:06 +00:00
add boot (startup RAM only!)
This commit is contained in:
parent
6278f73e47
commit
bf4fb5d560
30 changed files with 905 additions and 1509 deletions
Binary file not shown.
|
@ -32,6 +32,8 @@ extern int inic_stop(void);
|
|||
#define printf(...)
|
||||
#endif
|
||||
|
||||
#define sscanf _sscanf
|
||||
|
||||
#define SHOW_PRIVATE_OUT 1 // =0 - off, = 1 On
|
||||
|
||||
/******************************************************
|
||||
|
|
|
@ -62,8 +62,8 @@ extern const u8 ROM_IMG1_VALID_PATTEN[];
|
|||
extern HAL_RUART_ADAPTER *pxmodem_uart_adp;
|
||||
|
||||
#ifdef CONFIG_GPIO_EN
|
||||
extern HAL_GPIO_ADAPTER gBoot_Gpio_Adapter;
|
||||
extern PHAL_GPIO_ADAPTER _pHAL_Gpio_Adapter;
|
||||
//extern HAL_GPIO_ADAPTER gBoot_Gpio_Adapter;
|
||||
//extern PHAL_GPIO_ADAPTER _pHAL_Gpio_Adapter;
|
||||
#endif
|
||||
|
||||
extern BOOLEAN SpicFlashInitRtl8195A(u8 SpicBitMode);
|
||||
|
|
|
@ -763,7 +763,7 @@
|
|||
// BW_OPMODE bits (Offset 0x603, 8bit)
|
||||
//----------------------------------------------------------------------------
|
||||
#define BW_OPMODE_20MHZ BIT2
|
||||
#define BW_OPMODE_5G BIT1
|
||||
#define BW_OPMODE_5G BIT1
|
||||
|
||||
//----------------------------------------------------------------------------
|
||||
// CAM Config Setting (offset 0x680, 1 byte)
|
||||
|
|
|
@ -550,7 +550,7 @@ dhcp_handle_ack(struct netif *netif)
|
|||
dhcp->offered_t2_rebind = dhcp_get_option_value(dhcp, DHCP_OPTION_IDX_T2);
|
||||
} else {
|
||||
/* calculate safe periods for rebinding */
|
||||
dhcp->offered_t2_rebind = (u32_t)(dhcp->offered_t0_lease * 0.875);
|
||||
dhcp->offered_t2_rebind = dhcp->offered_t0_lease/2 + dhcp->offered_t0_lease /4 + dhcp->offered_t0_lease/8; // (u32_t)(dhcp->offered_t0_lease * 0.875);
|
||||
}
|
||||
|
||||
/* (y)our internet address */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue