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-17#$ 14 $Rev: 8556 $ 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 // Maximum size of data sent in one transmission. 32 // If you are performing normal communication in addition to data sharing, increase this value only by the amount that those normal communications use. 33 // You must then add enough for the additional headers and footers that accompany multi-packet transmissions. 34 // 35 // For more details, see docs/TechnicalNotes/WirelessManager.doc. 36 // GUIDELINE: Guideline compliance point (6.3.2) 37 // 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. 38 // 39 #define WH_PARENT_MAX_SIZE (WH_DS_DATA_SIZE * (1 + WH_CHILD_MAX) + WM_SIZE_DS_PARENT_HEADER) 40 #define WH_CHILD_MAX_SIZE (WH_DS_DATA_SIZE) 41 42 // Upper limit on the number of MP communications for one picture frame 43 // 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). 44 // 45 // Without that, the only protocol that will be allowed to run MP communication will be the one with the highest priority. 46 // 47 #define WH_MP_FREQUENCY 1 48 49 // Port to use for normal MP communication 50 #define WH_DATA_PORT 14 51 52 // Priority to use for normal MP communication 53 #define WH_DATA_PRIO WM_PRIORITY_NORMAL 54 55 // Port to use for data sharing 56 #define WH_DS_PORT 13 57 58 59 60 #endif // _DEFAULT_WH_CONFIG_H__ 61