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

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

libMiMic(MiMic library for mbed)は、WebService機能を提供するSDKです。 mbedでWebAPIに対応したネットワークデバイスを簡単に作ることが出来ます。

libMiMicはMiMic projectで開発しています。MiMic projectについてはこちらをご覧ください。 http://nyatla.jp/mimic/wp/

構成

libMiMicはmbedRTOS上で動作し、ユーザアプリケーションにAPIを提供します。コアAPIはC言語で記述されていますが、使用頻度の高いものについてはmbed向けのC++APIが準備されています。

/media/uploads/nyatla/libmimic-sdk.png

※libMiMicはmbedの標準イーサネットドライバをしようしていません。

標準イーサネットドライバと同時に使用することはできません。

  • MiMicIP - IPv4スタックです。レテンシとメモリ消費量を抑えたuipベースのライブラリです。
  • ARP/ICMP/UDP/TCP - 基礎的なソケットAPIを提供します。APIは独自です。
  • HTTP/1.1 Server - HTTP/1.1に対応したサーバです。マルチセッション・Chunked・持続性接続に対応しています。
  • HTTP Modules - HTTP/1.1の機能モジュールです。以下のモジュールがあります。
    • ROM file provider - ROMに格納したファイルイメージを公開します。
    • File system provider - mbedファイルシステムを公開します。
    • Onchip configuration - プログラムフラッシュを利用して設定を保存します。
    • MiMicVM processor - RPCリクエスト(MiMicVM)を処理します。
    • FileUpload - ファイルアップロードを受け取ります。
    • URL decoder - HTTPリクエストを解析します。
    • UPnP handler -UPnPメッセージを処理します。
    • WebSocket - Websocketサーバです。
  • mDNS - マルチキャストDNSサービスです。
  • UPnP - UPnP/1.0の機能を提供します。UPnP handlerと協調して動作します。(現在はデバイス探索(SSDP)・デスクリプション(Description)のみ実装してあります。)
  • DHCP/APIPA - ゼロコンフィギュレーション用のモジュールです。
  • HTTP/1.1 Client
  • mbed C++ class library - mbed向けのC++CPIです。C言語のものより簡単です。

対応機種

  • mbed(mbed LPC1768)
  • LPCXpresso1769

プログラム

Import programMiMicRemoteMCU-for-Mbed

MiMic RemoteMCU for mbed. This program provides MCU control API over REST API. It can control MCU from Javascript,PHP or any HTTP rest client directly. And, The application has self development environment.

Import programMbedFileServer

The program publishes files at local directory and SD filesystem. It is a full-fledged webServer somewhat.

サンプル

Import programMiMicSimpleHttpd

This is a simplest HTTP server made ​​of libMiMic. It will echo back a request path.

Import programUPnPBasicDevice

Simplest UPnP basic device example. This program to run UPnP basic device on the mbed.

Import programWebSocketSample

MiMicSDK Websocket module sample program.

Import programHttpClientSamlpe

A http client sample program.

Import programTcpSocketClientSamlpe

MiMicSDK Tcp client socket sample program.

Import programUdpSocketSamlpe

Udp socket sample program. This program will send back the received packet.

チュートリアル

English

libMiMic(MiMic library for mbed) is SDK which provides Webservice functions. It can be created networking device easily using mbed.

See more MiMic information, See MiMic project website. http://nyatla.jp/mimic/wp/

Structure

libMiMic run on mbed RTOS and provides networking API to user application. This library has C++ class API for the mbed, and low-level C language API.

/media/uploads/nyatla/libmimic-sdk.png

For WebService general, it can be written in a simple C + + API.

libMiMic does not have the standard Ethernet driver of mbed. It is not possible that will be used with the standard Ethernet driver.

  • MiMicIP - IPv4 protocol stack. This is based uip which is reduced memory and latency.
  • ARP / ICMP / UDP / TCP - Those are provide basic IP protocols.
  • HTTP/1.1 Server - The Http server compatible HTTP/1.1. It supports multi-session, chunked transport, persistent connection.
  • HTTP Modules - There are addon-module for HTTP server. The following modules.
    • ROM file module - Publish the file images in ROM.
    • File system module - Publish thefiles in mbed file system.
    • Onchip configuration module - To save the network settings to the program flash via REST.
    • MiMicVM module - To handle the (MiMicVM) RPC request.
    • FileUpload module - Accept a file via HTTP POST.
    • URL dedoce module - A versatility URL decoder.
    • UPnP handle module - To handle UPnP messages.
    • UPnP - This provides UPnP/1.0 device functions. It works together with UPnP handler.
    • Websocket - websocket (version13) server
  • mDNS Service - DNS-SD protocol server.
  • UPnP - This provides UPnP/1.0 device functions which works with UPnP handler. (You have been implemented (SSDP) ? description only (Description) device search now.) It is a module zero configuration for - DHCP / APIPA. mbed C + + class library - C of mbed for + + is the CPI. It is simple than that of the C language.
  • DHCP/APIPA - It support zero-cpnfigulation.
  • mbed C++ class library. Almost APIs for Web applications are available.
  • HTTP/1.1 Client

Supported target

  • mbed(mbed LPC1768)
  • LPCXpresso1769

Application

Import programMiMicRemoteMCU-for-Mbed

MiMic RemoteMCU for mbed. This program provides MCU control API over REST API. It can control MCU from Javascript,PHP or any HTTP rest client directly. And, The application has self development environment.

Import programMbedFileServer

The program publishes files at local directory and SD filesystem. It is a full-fledged webServer somewhat.

Sample

Import programMiMicSimpleHttpd

This is a simplest HTTP server made ​​of libMiMic. It will echo back a request path.

Import programUPnPBasicDevice

Simplest UPnP basic device example. This program to run UPnP basic device on the mbed.

Import programWebSocketSample

MiMicSDK Websocket module sample program.

Import programHttpClientSamlpe

A http client sample program.

Import programTcpSocketClientSamlpe

MiMicSDK Tcp client socket sample program.

Import programUdpSocketSamlpe

Udp socket sample program. This program will send back the received packet.

Tutorial

Committer:
nyatla
Date:
Sat Jun 04 06:51:04 2016 +0000
Revision:
114:f6aef16d4e60
Parent:
94:b5eabbb28ae0
include????????; ???????????

Who changed what in which revision?

UserRevisionLine numberNew contents of line
nyatla 91:db8279c869d3 1 /**
nyatla 91:db8279c869d3 2 * @file
nyatla 91:db8279c869d3 3 *K64Fのターゲットテーブルです。
nyatla 91:db8279c869d3 4 */
nyatla 91:db8279c869d3 5 #include "TargetTypes.h"
nyatla 91:db8279c869d3 6 #include "RpcHandlerBase.h"
nyatla 91:db8279c869d3 7 #ifdef TARGET_K64F
nyatla 91:db8279c869d3 8 namespace MiMic
nyatla 91:db8279c869d3 9 {
nyatla 91:db8279c869d3 10
nyatla 94:b5eabbb28ae0 11 #define NS_FRDM_PTA (PINID_FRDM_PTx)
nyatla 94:b5eabbb28ae0 12 #define NS_FRDM_PTB (NS_FRDM_PTA+32)
nyatla 94:b5eabbb28ae0 13 #define NS_FRDM_PTC (NS_FRDM_PTB+32)
nyatla 94:b5eabbb28ae0 14 #define NS_FRDM_PTD (NS_FRDM_PTC+32)
nyatla 94:b5eabbb28ae0 15 #define NS_FRDM_PTE (NS_FRDM_PTD+32)
nyatla 94:b5eabbb28ae0 16
nyatla 94:b5eabbb28ae0 17
nyatla 91:db8279c869d3 18
nyatla 91:db8279c869d3 19
nyatla 91:db8279c869d3 20 const static struct TPinNameMapItem pin_table[]={
nyatla 94:b5eabbb28ae0 21 {PTA0 ,NS_FRDM_PTA + 0}, {PTA1 ,NS_FRDM_PTA + 1}, {PTA2 ,NS_FRDM_PTA + 2}, {PTA3 ,NS_FRDM_PTA + 3},
nyatla 94:b5eabbb28ae0 22 {PTA4 ,NS_FRDM_PTA + 4}, {PTA5 ,NS_FRDM_PTA + 5}, {PTA6 ,NS_FRDM_PTA + 6}, {PTA7 ,NS_FRDM_PTA + 7},
nyatla 94:b5eabbb28ae0 23 {PTA8 ,NS_FRDM_PTA + 8}, {PTA9 ,NS_FRDM_PTA + 9}, {PTA10,NS_FRDM_PTA +10}, {PTA11,NS_FRDM_PTA +11},
nyatla 94:b5eabbb28ae0 24 {PTA12,NS_FRDM_PTA +12}, {PTA13,NS_FRDM_PTA +13}, {PTA14,NS_FRDM_PTA +14}, {PTA15,NS_FRDM_PTA +15},
nyatla 94:b5eabbb28ae0 25 {PTA16,NS_FRDM_PTA +16}, {PTA17,NS_FRDM_PTA +17}, {PTA18,NS_FRDM_PTA +18}, {PTA19,NS_FRDM_PTA +19},
nyatla 94:b5eabbb28ae0 26 {PTA20,NS_FRDM_PTA +20}, {PTA21,NS_FRDM_PTA +21}, {PTA22,NS_FRDM_PTA +22}, {PTA23,NS_FRDM_PTA +23},
nyatla 94:b5eabbb28ae0 27 {PTA24,NS_FRDM_PTA +24}, {PTA25,NS_FRDM_PTA +25}, {PTA26,NS_FRDM_PTA +26}, {PTA27,NS_FRDM_PTA +27},
nyatla 94:b5eabbb28ae0 28 {PTA28,NS_FRDM_PTA +28}, {PTA29,NS_FRDM_PTA +29}, {PTA30,NS_FRDM_PTA +30}, {PTA31,NS_FRDM_PTA +31},
nyatla 91:db8279c869d3 29
nyatla 94:b5eabbb28ae0 30 {PTB0 ,NS_FRDM_PTB + 0}, {PTB1 ,NS_FRDM_PTB + 1}, {PTB2 ,NS_FRDM_PTB + 2}, {PTB3 ,NS_FRDM_PTB + 3},
nyatla 94:b5eabbb28ae0 31 {PTB4 ,NS_FRDM_PTB + 4}, {PTB5 ,NS_FRDM_PTB + 5}, {PTB6 ,NS_FRDM_PTB + 6}, {PTB7 ,NS_FRDM_PTB + 7},
nyatla 94:b5eabbb28ae0 32 {PTB8 ,NS_FRDM_PTB + 8}, {PTB9 ,NS_FRDM_PTB + 9}, {PTB10,NS_FRDM_PTB +10}, {PTB11,NS_FRDM_PTB +11},
nyatla 94:b5eabbb28ae0 33 {PTB12,NS_FRDM_PTB +12}, {PTB13,NS_FRDM_PTB +13}, {PTB14,NS_FRDM_PTB +14}, {PTB15,NS_FRDM_PTB +15},
nyatla 94:b5eabbb28ae0 34 {PTB16,NS_FRDM_PTB +16}, {PTB17,NS_FRDM_PTB +17}, {PTB18,NS_FRDM_PTB +18}, {PTB19,NS_FRDM_PTB +19},
nyatla 94:b5eabbb28ae0 35 {PTB20,NS_FRDM_PTB +20}, {PTB21,NS_FRDM_PTB +21}, {PTB22,NS_FRDM_PTB +22}, {PTB23,NS_FRDM_PTB +23},
nyatla 94:b5eabbb28ae0 36 {PTB24,NS_FRDM_PTB +24}, {PTB25,NS_FRDM_PTB +25}, {PTB26,NS_FRDM_PTB +26}, {PTB27,NS_FRDM_PTB +27},
nyatla 94:b5eabbb28ae0 37 {PTB28,NS_FRDM_PTB +28}, {PTB29,NS_FRDM_PTB +29}, {PTB30,NS_FRDM_PTB +30}, {PTB31,NS_FRDM_PTB +31},
nyatla 94:b5eabbb28ae0 38
nyatla 94:b5eabbb28ae0 39 {PTC0 ,NS_FRDM_PTC + 0}, {PTC1 ,NS_FRDM_PTC + 1}, {PTC2 ,NS_FRDM_PTC + 2}, {PTC3 ,NS_FRDM_PTC + 3},
nyatla 94:b5eabbb28ae0 40 {PTC4 ,NS_FRDM_PTC + 4}, {PTC5 ,NS_FRDM_PTC + 5}, {PTC6 ,NS_FRDM_PTC + 6}, {PTC7 ,NS_FRDM_PTC + 7},
nyatla 94:b5eabbb28ae0 41 {PTC8 ,NS_FRDM_PTC + 8}, {PTC9 ,NS_FRDM_PTC + 9}, {PTC10,NS_FRDM_PTC +10}, {PTC11,NS_FRDM_PTC +11},
nyatla 94:b5eabbb28ae0 42 {PTC12,NS_FRDM_PTC +12}, {PTC13,NS_FRDM_PTC +13}, {PTC14,NS_FRDM_PTC +14}, {PTC15,NS_FRDM_PTC +15},
nyatla 94:b5eabbb28ae0 43 {PTC16,NS_FRDM_PTC +16}, {PTC17,NS_FRDM_PTC +17}, {PTC18,NS_FRDM_PTC +18}, {PTC19,NS_FRDM_PTC +19},
nyatla 94:b5eabbb28ae0 44 {PTC20,NS_FRDM_PTC +20}, {PTC21,NS_FRDM_PTC +21}, {PTC22,NS_FRDM_PTC +22}, {PTC23,NS_FRDM_PTC +23},
nyatla 94:b5eabbb28ae0 45 {PTC24,NS_FRDM_PTC +24}, {PTC25,NS_FRDM_PTC +25}, {PTC26,NS_FRDM_PTC +26}, {PTC27,NS_FRDM_PTC +27},
nyatla 94:b5eabbb28ae0 46 {PTC28,NS_FRDM_PTC +28}, {PTC29,NS_FRDM_PTC +29}, {PTC30,NS_FRDM_PTC +30}, {PTC31,NS_FRDM_PTC +31},
nyatla 94:b5eabbb28ae0 47
nyatla 94:b5eabbb28ae0 48 {PTD0 ,NS_FRDM_PTD + 0}, {PTD1 ,NS_FRDM_PTD + 1}, {PTD2 ,NS_FRDM_PTD + 2}, {PTD3 ,NS_FRDM_PTD + 3},
nyatla 94:b5eabbb28ae0 49 {PTD4 ,NS_FRDM_PTD + 4}, {PTD5 ,NS_FRDM_PTD + 5}, {PTD6 ,NS_FRDM_PTD + 6}, {PTD7 ,NS_FRDM_PTD + 7},
nyatla 94:b5eabbb28ae0 50 {PTD8 ,NS_FRDM_PTD + 8}, {PTD9 ,NS_FRDM_PTD + 9}, {PTD10,NS_FRDM_PTD +10}, {PTD11,NS_FRDM_PTD +11},
nyatla 94:b5eabbb28ae0 51 {PTD12,NS_FRDM_PTD +12}, {PTD13,NS_FRDM_PTD +13}, {PTD14,NS_FRDM_PTD +14}, {PTD15,NS_FRDM_PTD +15},
nyatla 94:b5eabbb28ae0 52 {PTD16,NS_FRDM_PTD +16}, {PTD17,NS_FRDM_PTD +17}, {PTD18,NS_FRDM_PTD +18}, {PTD19,NS_FRDM_PTD +19},
nyatla 94:b5eabbb28ae0 53 {PTD20,NS_FRDM_PTD +20}, {PTD21,NS_FRDM_PTD +21}, {PTD22,NS_FRDM_PTD +22}, {PTD23,NS_FRDM_PTD +23},
nyatla 94:b5eabbb28ae0 54 {PTD24,NS_FRDM_PTD +24}, {PTD25,NS_FRDM_PTD +25}, {PTD26,NS_FRDM_PTD +26}, {PTD27,NS_FRDM_PTD +27},
nyatla 94:b5eabbb28ae0 55 {PTD28,NS_FRDM_PTD +28}, {PTD29,NS_FRDM_PTD +29}, {PTD30,NS_FRDM_PTD +30}, {PTD31,NS_FRDM_PTD +31},
nyatla 94:b5eabbb28ae0 56
nyatla 94:b5eabbb28ae0 57 {PTE0 ,NS_FRDM_PTE + 0}, {PTE1 ,NS_FRDM_PTE + 1}, {PTE2 ,NS_FRDM_PTE + 2}, {PTE3 ,NS_FRDM_PTE + 3},
nyatla 94:b5eabbb28ae0 58 {PTE4 ,NS_FRDM_PTE + 4}, {PTE5 ,NS_FRDM_PTE + 5}, {PTE6 ,NS_FRDM_PTE + 6}, {PTE7 ,NS_FRDM_PTE + 7},
nyatla 94:b5eabbb28ae0 59 {PTE8 ,NS_FRDM_PTE + 8}, {PTE9 ,NS_FRDM_PTE + 9}, {PTE10,NS_FRDM_PTE +10}, {PTE11,NS_FRDM_PTE +11},
nyatla 94:b5eabbb28ae0 60 {PTE12,NS_FRDM_PTE +12}, {PTE13,NS_FRDM_PTE +13}, {PTE14,NS_FRDM_PTE +14}, {PTE15,NS_FRDM_PTE +15},
nyatla 94:b5eabbb28ae0 61 {PTE16,NS_FRDM_PTE +16}, {PTE17,NS_FRDM_PTE +17}, {PTE18,NS_FRDM_PTE +18}, {PTE19,NS_FRDM_PTE +19},
nyatla 94:b5eabbb28ae0 62 {PTE20,NS_FRDM_PTE +20}, {PTE21,NS_FRDM_PTE +21}, {PTE22,NS_FRDM_PTE +22}, {PTE23,NS_FRDM_PTE +23},
nyatla 94:b5eabbb28ae0 63 {PTE24,NS_FRDM_PTE +24}, {PTE25,NS_FRDM_PTE +25}, {PTE26,NS_FRDM_PTE +26}, {PTE27,NS_FRDM_PTE +27},
nyatla 94:b5eabbb28ae0 64 {PTE28,NS_FRDM_PTE +28}, {PTE29,NS_FRDM_PTE +29}, {PTE30,NS_FRDM_PTE +30}, {PTE31,NS_FRDM_PTE +31},
nyatla 94:b5eabbb28ae0 65
nyatla 94:b5eabbb28ae0 66 //LED
nyatla 94:b5eabbb28ae0 67 {LED_RED,PINID_FRDM_OTHER_LEDx+0},{LED_GREEN,PINID_FRDM_OTHER_LEDx+1},{LED_BLUE,PINID_FRDM_OTHER_LEDx+2},
nyatla 94:b5eabbb28ae0 68 //Push buttons
nyatla 94:b5eabbb28ae0 69 {SW2,PINID_FRDM_OTHER_SWx+2},{SW3,PINID_FRDM_OTHER_SWx+3},
nyatla 94:b5eabbb28ae0 70
nyatla 91:db8279c869d3 71 // Other mbed Pin Names
nyatla 91:db8279c869d3 72 {LED1 ,PINID_OTHER_MBED_LEDx+0}, {LED2 ,PINID_OTHER_MBED_LEDx+1}, {LED3 ,PINID_OTHER_MBED_LEDx+2}, {LED4 ,PINID_OTHER_MBED_LEDx+3},
nyatla 91:db8279c869d3 73
nyatla 91:db8279c869d3 74 {USBTX,PINID_OTHER_MBED_USBx+0},{USBRX,PINID_OTHER_MBED_USBx+1},
nyatla 91:db8279c869d3 75
nyatla 91:db8279c869d3 76 // Arch Pro Pin Names(Arudino)
nyatla 91:db8279c869d3 77 {D0 ,PINID_ARCH_PRO_Dx+0}, {D1 ,PINID_ARCH_PRO_Dx+1}, {D2,PINID_ARCH_PRO_Dx+2}, {D3,PINID_ARCH_PRO_Dx+3},
nyatla 91:db8279c869d3 78 {D4 ,PINID_ARCH_PRO_Dx+4}, {D5 ,PINID_ARCH_PRO_Dx+5}, {D6,PINID_ARCH_PRO_Dx+6}, {D7,PINID_ARCH_PRO_Dx+7},
nyatla 91:db8279c869d3 79 {D8 ,PINID_ARCH_PRO_Dx+8}, {D9 ,PINID_ARCH_PRO_Dx+9}, {D10,PINID_ARCH_PRO_Dx+10},{D11,PINID_ARCH_PRO_Dx+11},
nyatla 91:db8279c869d3 80 {D12,PINID_ARCH_PRO_Dx+12}, {D13,PINID_ARCH_PRO_Dx+13}, {D14,PINID_ARCH_PRO_Dx+14},{D15,PINID_ARCH_PRO_Dx+15},
nyatla 91:db8279c869d3 81
nyatla 91:db8279c869d3 82 {A0,PINID_ARCH_PRO_Ax+0}, {A1,PINID_ARCH_PRO_Ax+1}, {A2,PINID_ARCH_PRO_Ax+2}, {A3,PINID_ARCH_PRO_Ax+3},
nyatla 91:db8279c869d3 83 {A4,PINID_ARCH_PRO_Ax+4}, {A5,PINID_ARCH_PRO_Ax+5},
nyatla 91:db8279c869d3 84
nyatla 91:db8279c869d3 85 {NC,PINID_NC}
nyatla 91:db8279c869d3 86 };
nyatla 91:db8279c869d3 87
nyatla 91:db8279c869d3 88 #define NUMBER_OF_PINMODE 4
nyatla 91:db8279c869d3 89 const static struct TPinModeMapItem pinmode_table[]=
nyatla 91:db8279c869d3 90 {
nyatla 91:db8279c869d3 91 {PullUp ,PINMODEID+0},
nyatla 91:db8279c869d3 92 {PullDown ,PINMODEID+1},
nyatla 91:db8279c869d3 93 {PullNone ,PINMODEID+2},
nyatla 91:db8279c869d3 94 {PullDefault,PINMODEID+1}
nyatla 91:db8279c869d3 95 };
nyatla 91:db8279c869d3 96 #define NUMBER_OF_PORT_NAME 5
nyatla 91:db8279c869d3 97 const static struct TPortNameMapItem portname_table[]=
nyatla 91:db8279c869d3 98 {
nyatla 91:db8279c869d3 99 {PortA ,PORTID+0},
nyatla 91:db8279c869d3 100 {PortB ,PORTID+1},
nyatla 91:db8279c869d3 101 {PortC ,PORTID+2},
nyatla 91:db8279c869d3 102 {PortD ,PORTID+3},
nyatla 91:db8279c869d3 103 {PortE ,PORTID+4},
nyatla 91:db8279c869d3 104 };
nyatla 91:db8279c869d3 105
nyatla 91:db8279c869d3 106 PinName RpcHandlerBase::pinId2PinName(unsigned int i_id)
nyatla 91:db8279c869d3 107 {
nyatla 91:db8279c869d3 108 for(int i=0;pin_table[i].name!=NC;i++){
nyatla 91:db8279c869d3 109 if(i_id==pin_table[i].id){
nyatla 91:db8279c869d3 110 return pin_table[i].name;
nyatla 91:db8279c869d3 111 }
nyatla 91:db8279c869d3 112 }
nyatla 91:db8279c869d3 113 return NC;
nyatla 91:db8279c869d3 114 }
nyatla 91:db8279c869d3 115
nyatla 91:db8279c869d3 116 PinMode RpcHandlerBase::pinmodeId2PinMode(unsigned int i_id)
nyatla 91:db8279c869d3 117 {
nyatla 91:db8279c869d3 118 for(int i=0;i<NUMBER_OF_PINMODE;i++){
nyatla 91:db8279c869d3 119 if(i_id==pinmode_table[i].id){
nyatla 91:db8279c869d3 120 return pinmode_table[i].mode;
nyatla 91:db8279c869d3 121 }
nyatla 91:db8279c869d3 122 }
nyatla 91:db8279c869d3 123 return PullDefault;
nyatla 91:db8279c869d3 124 }
nyatla 91:db8279c869d3 125 PortName RpcHandlerBase::portId2PortName(unsigned int i_id)
nyatla 91:db8279c869d3 126 {
nyatla 91:db8279c869d3 127 for(int i=0;i<NUMBER_OF_PORT_NAME;i++){
nyatla 91:db8279c869d3 128 if(i_id==portname_table[i].id){
nyatla 91:db8279c869d3 129 return portname_table[i].port;
nyatla 91:db8279c869d3 130 }
nyatla 91:db8279c869d3 131 }
nyatla 91:db8279c869d3 132 return PortA;
nyatla 91:db8279c869d3 133 }
nyatla 91:db8279c869d3 134
nyatla 91:db8279c869d3 135 }
nyatla 91:db8279c869d3 136 #endif
nyatla 91:db8279c869d3 137