mirror of
https://github.com/pvvx/RTL00MP3.git
synced 2025-07-31 12:41:06 +00:00
update
This commit is contained in:
parent
c32ef5a08d
commit
4b5455f7d1
14 changed files with 2379 additions and 2354 deletions
|
|
@ -657,7 +657,6 @@ void fATSR(void *arg) {
|
|||
|
||||
void fATSV(void *arg) {
|
||||
char at_buf[32];
|
||||
char fw_buf[32];
|
||||
char cspimode[4] = { 'S', 'D', 'Q', '?' };
|
||||
|
||||
if (fspic_isinit == 0) {
|
||||
|
|
@ -675,9 +674,8 @@ void fATSV(void *arg) {
|
|||
strcpy(at_buf, ATCMD_VERSION"."ATCMD_SUBVERSION"."ATCMD_REVISION);
|
||||
|
||||
// get fw version
|
||||
strcpy(fw_buf, SDK_VERSION);
|
||||
printf("%s,%s(%s)\n", at_buf, fw_buf, RTL8195AFW_COMPILE_TIME);
|
||||
at_printf("\r\n[ATSV] OK:%s,%s(%s)", at_buf, fw_buf,
|
||||
printf("%s,%s(%s)\n", at_buf, SDK_VERSION, RTL8195AFW_COMPILE_TIME);
|
||||
at_printf("\r\n[ATSV] OK:%s,%s(%s)", at_buf, SDK_VERSION,
|
||||
RTL8195AFW_COMPILE_TIME);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -34,8 +34,13 @@ void sys_recover_ota_signature(void);
|
|||
void sys_log_uart_on(void);
|
||||
void sys_log_uart_off(void);
|
||||
void sys_adc_calibration(u8 write, u16 *offset, u16 *gain);
|
||||
u8 sys_is_sdram_power_on(void);
|
||||
#ifdef CONFIG_SDR_EN
|
||||
void sys_sdram_off(void);
|
||||
u8 sys_is_sdram_power_on(void);
|
||||
#else
|
||||
#define sys_sdram_off()
|
||||
#define sys_is_sdram_power_on() (0)
|
||||
#endif
|
||||
|
||||
/**
|
||||
* @brief system software reset
|
||||
|
|
|
|||
|
|
@ -203,28 +203,16 @@ void sys_reset(void)
|
|||
(1 << 2)); // SYSRESETREQ
|
||||
}
|
||||
|
||||
#ifdef CONFIG_SDR_EN
|
||||
u8 sys_is_sdram_power_on(void)
|
||||
{
|
||||
#ifdef CONFIG_SDR_EN
|
||||
// u8 ison = 0;
|
||||
|
||||
//#if defined ( __ICCARM__ )
|
||||
return IsSdrPowerOn();
|
||||
//#endif
|
||||
|
||||
// return ison;
|
||||
#else
|
||||
return 0;
|
||||
#endif
|
||||
}
|
||||
|
||||
void sys_sdram_off(void)
|
||||
{
|
||||
#ifdef CONFIG_SDR_EN
|
||||
//#if defined ( __ICCARM__ )
|
||||
if (IsSdrPowerOn()) {
|
||||
SdrPowerOff();
|
||||
}
|
||||
//#endif
|
||||
#endif
|
||||
}
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue