This is Webservice SDK for mbed. LPCXpresso1769/LPC1768/FRDM-K64F/LPC4088

Dependents:   MbedFileServer_1768MiniDK2 RedWireBridge IssueDebug_gcc MiMicRemoteMCU-for-Mbed ... more

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers TargetTypes.h Source File

TargetTypes.h

Go to the documentation of this file.
00001 /**
00002  * @file
00003  * このファイルはTarget定義ファイルからのみincludeして下さい。
00004  */
00005 #pragma once
00006 #include "mbed.h"
00007 
00008 namespace MiMic
00009 {
00010 
00011 /*
00012  * mbed1768,LPC4088に定義されているピン名の名前空間を定義します。
00013  * 一時的にPINIDを加える場合は、NS_USER_PINから始まるIDを使用してください。
00014  */
00015 
00016 /** Px_yピンに該当するピンID。 P0_0,P0_1...P0_31,P1_0の順番*/
00017 #define PINID_LPC               0x00010000
00018 /** */
00019 #define PINID_MBED_DIP          0x00020000
00020 #define PINID_OTHER_MBED        0x00030000
00021 #define PINID_OTHER_MBED_LEDx   (PINID_OTHER_MBED | 0x00000000)
00022 #define PINID_OTHER_MBED_USBx   (PINID_OTHER_MBED | 0x00000100)
00023 #define PINID_ARCH_PRO          0x00040000
00024 #define PINID_ARCH_PRO_Dx       (PINID_ARCH_PRO | 0x00000000)
00025 #define PINID_ARCH_PRO_Ax       (PINID_ARCH_PRO | 0x00000100)
00026 #define PINID_ARCH_PRO_I2C_x    (PINID_ARCH_PRO | 0x00000200)
00027 #define PINID_FRDM_PTx          0x00050000
00028 #define PINID_FRDM_OTHER        0x00060000
00029 #define PINID_FRDM_OTHER_LEDx   (PINID_FRDM_OTHER|0x00000000)
00030 #define PINID_FRDM_OTHER_SWx    (PINID_FRDM_OTHER|0x00000100)
00031 
00032 #define PINID_USER              0x40000000
00033 #define PINID_NC                0x7fffffff
00034 
00035 #define PINMODEID               0x00010000
00036 #define PORTID                  0x00010000
00037 
00038 struct TPinNameMapItem{
00039     PinName name;
00040     unsigned int id;
00041 };
00042 struct TPinModeMapItem{
00043     PinMode mode;
00044     unsigned int id;
00045 };
00046 struct TPortNameMapItem{
00047     PortName port;
00048     unsigned int id;
00049 };
00050 
00051 }