1 /*---------------------------------------------------------------------------*
2   Project:  TwlSDK - wireless_shared - demos - wh
3   File:     wh_config.h
4 
5   Copyright 2006-2008 Nintendo. All rights reserved.
6 
7   These coded instructions, statements, and computer programs contain
8   proprietary information of Nintendo of America Inc. and/or Nintendo
9   Company Ltd., and are protected by Federal copyright law. They may
10   not be disclosed to third parties or copied or duplicated in any form,
11   in whole or in part, without the prior written consent of Nintendo.
12 
13   $Date:: 2008-09-18#$
14   $Rev: 8573 $
15   $Author: okubata_ryoma $
16  *---------------------------------------------------------------------------*/
17 
18 #ifndef _DEFAULT_WH_CONFIG_H__
19 #define _DEFAULT_WH_CONFIG_H__
20 
21 
22 // DMA number used for wireless communications
23 #define WH_DMA_NO                 2
24 
25 // Maximum number of children (this number does not include the parent)
26 #define WH_CHILD_MAX              15
27 
28 // Maximum size of data that can be shared
29 #define WH_DS_DATA_SIZE           12
30 
31 #define WH_MP_DATA_SIZE           16
32 
33 // Maximum size of data sent in one transmission
34 // If you are performing normal communication in addition to data sharing, increase this value only by the amount that those normal communications use.
35 // You must then add enough for the additional headers and footers that accompany multi-packet transmissions.
36 //
37 // For more details, see docs/TechnicalNotes/WirelessManager.doc.
38 // GUIDELINE: Guideline compliance point (6.3.2)
39 // We recommend a value of 5600 microseconds or less for the time required by a single MP transmission, as calculated in the Function Reference Manual under Wireless Manager (WM) > Figures and Information > Wireless communication time calculation sheet.
40 //
41 #define WH_PARENT_MAX_SIZE      (WH_MP_DATA_SIZE * (1 + WH_CHILD_MAX))
42 #define WH_CHILD_MAX_SIZE       (WH_MP_DATA_SIZE)
43 
44 // Upper limit on the number of MP communications for one picture frame
45 // When multiple protocols are used in parallel (such as data sharing and block transfer), this value must be set greater than 1 (or to 0, specifying no limit).
46 //
47 // Without that, the only protocol that will be allowed to run MP communication will be the one with the highest priority.
48 //
49 #define WH_MP_FREQUENCY           1
50 
51 // Port to use for normal MP communication
52 #define WH_DATA_PORT              14
53 
54 // Priority to use for normal MP communication
55 #define WH_DATA_PRIO              WM_PRIORITY_NORMAL
56 
57 // Port to use for data sharing
58 #define WH_DS_PORT                13
59 
60 
61 
62 #endif // _DEFAULT_WH_CONFIG_H__
63