示例#1
0
文件: Roto.c 项目: oranzhang/RUCE
int  RUCE_Roto_CtorLoad(RUCE_Roto* This, String* Path)
{
    int Ret = 1;
    
    File RotoFile;
    String RotoContent;
    String_Ctor(& RotoContent);
    File_Ctor(& RotoFile);
    
    if(! File_Open(& RotoFile, Path, READONLY))
    {
        Ret = 0;
        goto End;
    }
    File_Read_String(& RotoFile, & RotoContent);
    This -> Ptr = cJSON_Parse(String_GetChars(& RotoContent));
    if(! This -> Ptr)
        Ret = 0;
    
    End:
    File_Close(& RotoFile);
    File_Dtor(& RotoFile);
    String_Dtor(& RotoContent);
    
    RInit(RUCE_Roto);
    return Ret;
}
示例#2
0
void BSP_Init(void)
{
/*************** System Init *********************/
	RInit();
/**************** NVIC Init **********************/
	NVIC_Configuration();
/***************** Bsp Init **********************/
 
  SysTest_Bsp_Init();
	LcdMainInit();
	Led_Init();
  ADC_InitChannel();
	VoltageSampleInit();// ADC
}