1 /*---------------------------------------------------------------------------*
2   Project:     KPAD sample program
3   File:        sample.h
4   Programmer:  Keizo Ohta
5                Haruki Tojo
6 
7   Copyright 2005-2008 Nintendo.  All rights reserved.
8 
9   These coded instructions, statements, and computer programs contain
10   proprietary information of Nintendo of America Inc. and/or Nintendo
11   Company Ltd., and are protected by Federal copyright law.  They may
12   not be disclosed to third parties or copied or duplicated in any form,
13   in whole or in part, without the prior written consent of Nintendo.
14  *---------------------------------------------------------------------------*/
15 
16 /***************************************************************
17     To show KPAD callback status
18  ***************************************************************/
19 typedef struct MyCallbackStatus {
20     u32 count ;
21     s32 reason ;
22 } MyCallbackStatus ;
23 
24 #define MY_CALLBACK_MAX         2
25 #define MY_START_COUNTS_MAX     4
26 #define MY_START_COUNT_DEFAULT  400
27 extern s32              MyCallbackLatestIdx[MY_CALLBACK_MAX] ;
28 extern MyCallbackStatus MyCallbackStatusBuf[MY_CALLBACK_MAX][MY_START_COUNTS_MAX] ;
29 
30 extern vu32 MySamplingCount ;
31 
32 /*******************************************************************************
33 	Function Declarations
34 *******************************************************************************/
35 extern void init_sample( void ) ;
36 extern void work_sample( void ) ;
37 extern void work_kpad  ( void ) ;
38 extern void draw_sample( void ) ;
39 
40