Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of libMiMic by
NyLPC_config.h
00001 /********************************************************************************* 00002 * PROJECT: MiMic 00003 * -------------------------------------------------------------------------------- 00004 * 00005 * This file is part of MiMic 00006 * Copyright (C)2011 Ryo Iizuka 00007 * 00008 * MiMic is free software: you can redistribute it and/or modify 00009 * it under the terms of the GNU Lesser General Public License as published 00010 * by the Free Software Foundation, either version 3 of the License, or 00011 * (at your option) any later version. 00012 * 00013 * This program is distributed in the hope that it will be useful, 00014 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00015 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00016 * GNU General Public License for more details. 00017 * 00018 * You should have received a copy of the GNU Lesser General Public License 00019 * along with this program. If not, see <http://www.gnu.org/licenses/>. 00020 * 00021 * For further information please contact. 00022 * http://nyatla.jp/ 00023 * <airmail(at)ebony.plala.or.jp> or <nyatla(at)nyatla.jp> 00024 * 00025 *********************************************************************************/ 00026 /** 00027 * @file 00028 * このファイルは、NyLPC全体に関わる、コンフィギュレーション定数を宣言します。 00029 */ 00030 #ifndef NyLPC_config_h 00031 #define NyLPC_config_h 00032 00033 #ifdef __cplusplus 00034 extern "C" { 00035 #endif /* __cplusplus */ 00036 00037 //////////////////////////////////////////////////////////////////////////////////////////////// 00038 // ENDIAN 00039 //////////////////////////////////////////////////////////////////////////////////////////////// 00040 00041 00042 /** 00043 * 定義値です。LITTLE ENDIANを表します。 00044 */ 00045 #define NyLPC_ENDIAN_LITTLE 0 00046 /** 00047 * 定義値です。BIG ENDIANを表します。 00048 */ 00049 #define NyLPC_ENDIAN_BIG 1 00050 00051 /** 00052 * 定義値です。CPUのエンディアンを定義します。 00053 * この値は、NyLPClibに影響を及ぼします。 00054 */ 00055 #define NyLPC_ENDIAN NyLPC_ENDIAN_LITTLE 00056 //////////////////////////////////////////////////////////////////////////////////////////////// 00057 // MCU 00058 //////////////////////////////////////////////////////////////////////////////////////////////// 00059 #define NyLPC_MCU_UNKNOWN 1 00060 #define NyLPC_MCU_LPC17xx 2 00061 #define NyLPC_MCU_LPC4088 3 00062 #define NyLPC_MCU_K64F 4 00063 00064 #define NyLPC_MCU NyLPC_MCU_LPC17xx 00065 00066 00067 //////////////////////////////////////////////////////////////////////////////////////////////// 00068 // OS 00069 //////////////////////////////////////////////////////////////////////////////////////////////// 00070 00071 /** 00072 * 環境定数です。WIN32環境でコンパイルすることを示します。 00073 */ 00074 #define NyLPC_ARCH_WIN32 1 00075 /** 00076 * 環境定数です。FREERTOS環境でコンパイルすることを示します。 00077 */ 00078 #define NyLPC_ARCH_FREERTOS 2 00079 /** 00080 * 環境定数です。MbedRTOR環境でコンパイルすることを示します。 00081 */ 00082 #define NyLPC_ARCH_MBEDRTOS 3 00083 00084 /** 00085 * 環境定数です。アーキテクチャを選択します。NyLPC_ARCH_WIN32は、デバック用の定数です。 00086 * 通常は、NyLPC_ARCH_FREERTOSを使用します。 00087 */ 00088 #ifdef WIN_DEBUG 00089 #define NyLPC_ARCH NyLPC_ARCH_WIN32 00090 #else 00091 #define NyLPC_ARCH NyLPC_ARCH_FREERTOS 00092 #endif 00093 00094 00095 //////////////////////////////////////////////////////////////////////////////////////////////// 00096 //予約定義値の修正 00097 //////////////////////////////////////////////////////////////////////////////////////////////// 00098 00099 #if NyLPC_ARCH==NyLPC_ARCH_WIN32 00100 //PACKED STRUCTの無効化 00101 #define PACK_STRUCT_END 00102 //OSタイプによりMCUを修正 00103 # undef NyLPC_MCU 00104 # define NyLPC_MCU NyLPC_MCU_UNKNOWN 00105 #endif 00106 00107 00108 00109 //////////////////////////////////////////////////////////////////////////////////////////////// 00110 //デバック情報 00111 //////////////////////////////////////////////////////////////////////////////////////////////// 00112 00113 /** 00114 * デバック用の宣言。 00115 * 定数が1の場合、メモリブロックをソースにして、TCPSocketをエミュレートします。 00116 * ソケットを使わずにデバックをしたいときに使います。 00117 */ 00118 #define NyLPC_CONFIG_cHttpStream_DEBUG 0 00119 00120 //////////////////////////////////////////////////////////////////////////////////////////////// 00121 //Application Configuration 00122 //////////////////////////////////////////////////////////////////////////////////////////////// 00123 00124 #define NyLPC_cHttpdThread_SIZE_OF_THREAD_STACK (1024+512) 00125 #define NyLPC_cHttpd_MAX_PERSISTENT_CONNECTION 1 00126 00127 #define NyLPC_cMiMicIpNetIf_config_TCPLISTENER_MAX 2 00128 #define NyLPC_cMiMicIpNetIf_config_TCPSOCKET_MAX 3 00129 #define NyLPC_cMiMicIpNetIf_config_UDPSOCKET_MAX 1 00130 #define NyLPC_cMiMicIpNetIf_config_NB_UDPSOCKET_MAX 2 00131 00132 00133 /*固有プラットフォーム設定はここに記述します。*/ 00134 #undef NyLPC_ARCH 00135 #define NyLPC_ARCH NyLPC_ARCH_MBEDRTOS 00136 00137 #ifdef TARGET_LPC4088 00138 # undef NyLPC_MCU 00139 # define NyLPC_MCU NyLPC_MCU_LPC4088 00140 #endif 00141 #ifdef TARGET_K64F 00142 # undef NyLPC_MCU 00143 # define NyLPC_MCU NyLPC_MCU_K64F 00144 # define NyLPC_TTxBufferHeader_ALIGNMENT 16 //EthernetのTXメモリブロックヘッダを16バイトアラインメントにする 00145 # define NyLPC_TcEthernetMM_BUF_PADDING 16 //2バイトでいいんだけど16バイトアライメントにするために16 00146 #endif 00147 00148 #ifdef __cplusplus 00149 } 00150 #endif /* __cplusplus */ 00151 00152 #endif
Generated on Tue Jul 12 2022 16:22:59 by
