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
|
@ -19,7 +19,7 @@
|
|||
//
|
||||
#define strlen(str) prvStrLen((const u8*)str)
|
||||
#define strcmp(str1, str2) prvStrCmp((const u8*)str1, (const u8*)str2)
|
||||
#define sscanf(src, format...) //TODO: Strtoul(src,0,16) / Strtoul(src,0,10)
|
||||
#define sscanf(src, format...) //TODO: Strtoul(src,0,16) / Strtoul(src,0,10)
|
||||
#define strtok(str, delim) prvStrTok(str, delim)
|
||||
#define strcpy(dst, src) prvStrCpy((u8 *)dst, (const u8*)src)
|
||||
#define atoi(str) prvAtoi(str)
|
||||
|
|
|
@ -36,8 +36,10 @@
|
|||
---------------------------------------------------------------------------*/
|
||||
|
||||
|
||||
#include "platform_autoconf.h"
|
||||
#include "basic_types.h"
|
||||
#include "rtl8195a.h"
|
||||
#include "rtl_bios_data.h"
|
||||
|
||||
/*----------------------------------------------------------------------------
|
||||
Define clocks
|
||||
|
@ -46,7 +48,7 @@
|
|||
#define __XTAL ( 5000000UL) /* Oscillator frequency */
|
||||
|
||||
//#define __SYSTEM_CLOCK (5*__XTAL)
|
||||
#define __SYSTEM_CLOCK (200000000UL/6*5) // PLATFORM_CLOCK //
|
||||
//#define __SYSTEM_CLOCK (200000000UL/6*5) // PLATFORM_CLOCK in platform_autoconf.h ! //
|
||||
|
||||
//extern u32 HalGetCpuClk(VOID);
|
||||
|
||||
|
@ -61,8 +63,8 @@ const u32 SysCpkClkTbl[]= {
|
|||
};
|
||||
#endif
|
||||
|
||||
unsigned int rand_x = 12345;
|
||||
|
||||
//extern unsigned int rand_x = 12345;
|
||||
/*
|
||||
u32 Rand2(void)
|
||||
{
|
||||
static unsigned int y = 362436;
|
||||
|
@ -77,11 +79,11 @@ u32 Rand2(void)
|
|||
|
||||
return rand_x + y + z;
|
||||
}
|
||||
|
||||
*/
|
||||
/*----------------------------------------------------------------------------
|
||||
Clock Variable definitions
|
||||
*----------------------------------------------------------------------------*/
|
||||
uint32_t SystemCoreClock = __SYSTEM_CLOCK; /*!< System Clock Frequency (Core Clock)*/
|
||||
uint32_t SystemCoreClock = PLATFORM_CLOCK; // __SYSTEM_CLOCK; /*!< System Clock Frequency (Core Clock)*/
|
||||
|
||||
|
||||
u32
|
||||
|
|
|
@ -68,7 +68,7 @@ extern void SystemInit (void);
|
|||
*/
|
||||
extern void SystemCoreClockUpdate (void);
|
||||
extern u32 SystemGetCpuClk(void);
|
||||
extern u32 Rand2(void);
|
||||
extern _LONG_CALL_ u32 Rand2(void);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue