aboutsummaryrefslogtreecommitdiff
path: root/backends/gp32/h/gpstdlib.h
blob: f7a27e727535fbd1fc7fb88d04c6d449824bd374 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
#ifndef __GPSTDLIB_H__
#define __GPSTDLIB_H__

#ifdef __cplusplus
extern "C" {
#endif

/************************************************************************/
/*SYS INITIALIZE FUNCTION*/
void _gp_sdk_init(void);
void _gp_key_polling_time_set(int loop_cnt);


/************************************************************************/
int GpAppPathSet(const char * p_path, int n_len);
char * GpAppPathGet(int * n_len /* optional */);
int GpUserInfoGet(char * p_id, char * p_pwd);
int GpArgSet(int len, char * p_arg);
int GpAppExecute(char * p_code_ptr, const char * s_path);
void GpAppExit(void);
unsigned int GpTickCountGet(void);
void GpNetTpsSet(int tps);
int GpUSBLineCheck(void);

/*Keyboard*/
void GpKeyInit(void);
int GpKeyGet(void);							/*return key data*/
int GpKeyGetEx(int * key_status);			/*return GpKeyChanged()*/
int GpKeyChanged(void);

/*CPU Speed*/
int GpClockSpeedChange(int master_speed, int div_factor, int clk_mode);
unsigned int GpMClkGet(void);
unsigned int GpHClkGet(void);
unsigned int GpPClkGet(void);
/***********************************************************************/

/***********************************************************************/
	#include "gpmem.h"

extern GPMEMFUNC gp_mem_func;
extern GPSTRFUNC gp_str_func;
/***********************************************************************/

/***********************************************************************/
void GpSrand(int seed);
unsigned int GpRand(void);
unsigned int GpRandN(unsigned n);
/***********************************************************************/

#ifdef __cplusplus
}
#endif

#endif /*__k41lib_h__*/