Web Camera for mbed-os. When you use this program, we judge you have agreed to the following contents. https://developer.mbed.org/teams/Renesas/wiki/About-LICENSE

Dependencies:   HttpServer_snapshot_mbed-os LWIPBP3595Interface_STA_for_mbed-os RomRamBlockDevice mbed-rpc

Fork of GR-Boards_WebCamera by Renesas

このサンプルは 「GR-LYCHEE」ではじめる電子工作 で紹介しています。
出版時と内容が異ならないよう、各ライブラリはアップデートせずに使用してください。

このサンプルの最新バージョンは下記から入手できます。最新バージョンは本の内容と一部処理が異なります。
https://github.com/d-kato/GR-Boards_WebCamera

Committer:
1050186
Date:
Fri Oct 23 11:03:49 2015 +0000
Revision:
5:34d84609dd60
Child:
7:c45ecff1b44d
Update functions.

Who changed what in which revision?

UserRevisionLine numberNew contents of line
1050186 5:34d84609dd60 1 /*
1050186 5:34d84609dd60 2 Permission is hereby granted, free of charge, to any person obtaining a copy
1050186 5:34d84609dd60 3 of this software and associated documentation files (the "Software"), to deal
1050186 5:34d84609dd60 4 in the Software without restriction, including without limitation the rights
1050186 5:34d84609dd60 5 to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
1050186 5:34d84609dd60 6 copies of the Software, and to permit persons to whom the Software is
1050186 5:34d84609dd60 7 furnished to do so, subject to the following conditions:
1050186 5:34d84609dd60 8
1050186 5:34d84609dd60 9 The above copyright notice and this permission notice shall be included in
1050186 5:34d84609dd60 10 all copies or substantial portions of the Software.
1050186 5:34d84609dd60 11
1050186 5:34d84609dd60 12 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
1050186 5:34d84609dd60 13 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
1050186 5:34d84609dd60 14 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
1050186 5:34d84609dd60 15 AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
1050186 5:34d84609dd60 16 LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
1050186 5:34d84609dd60 17 OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
1050186 5:34d84609dd60 18 THE SOFTWARE.
1050186 5:34d84609dd60 19 */
1050186 5:34d84609dd60 20
1050186 5:34d84609dd60 21 #ifndef I2C_SETTING_H
1050186 5:34d84609dd60 22 #define I2C_SETTING_H
1050186 5:34d84609dd60 23
1050186 5:34d84609dd60 24 //#define DEBUGPRINT_CFG
1050186 5:34d84609dd60 25
1050186 5:34d84609dd60 26 #ifdef DEBUGPRINT_CFG
1050186 5:34d84609dd60 27 #define DEBUGPRINT printf
1050186 5:34d84609dd60 28 #else
1050186 5:34d84609dd60 29 #define DEBUGPRINT
1050186 5:34d84609dd60 30 #endif
1050186 5:34d84609dd60 31
1050186 5:34d84609dd60 32
1050186 5:34d84609dd60 33 #define RECV_BUF_SIZE (1024)
1050186 5:34d84609dd60 34 #define DATA_ANALY_ERROR (-1)
1050186 5:34d84609dd60 35 #define REG_REQ_BUF_SIZE (7)
1050186 5:34d84609dd60 36 #define DATA_MAX_SIZE (32)
1050186 5:34d84609dd60 37 #define ARG_MAX_NUM (DATA_MAX_SIZE + 2) // I2C addr, len, data1, data2, data3, ...
1050186 5:34d84609dd60 38 #define ARG_MAX_SIZE (2) // upper bit + lower bit
1050186 5:34d84609dd60 39 #define NULL_SIZE (1)
1050186 5:34d84609dd60 40 #define CODE_NULL (0x00)
1050186 5:34d84609dd60 41 #define NUM_STR_TO_HEX (0x30)
1050186 5:34d84609dd60 42 #define BIG_STR_TO_HEX (0x37)
1050186 5:34d84609dd60 43 #define SMA_STR_TO_HEX (0x57)
1050186 5:34d84609dd60 44 #define MASK_HEX10 (0x10)
1050186 5:34d84609dd60 45
1050186 5:34d84609dd60 46 extern void analy_and_exe(char * buf);
1050186 5:34d84609dd60 47 extern void SetI2CfromTerm(void const *argument);
1050186 5:34d84609dd60 48
1050186 5:34d84609dd60 49 #endif