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.
Dependents: IM920_sample IM920_SDlog IM920_sample IM920_sample3 ... more
Revision 1:81b2fd407327, committed 2014-12-26
- Comitter:
- okini3939
- Date:
- Fri Dec 26 15:51:37 2014 +0000
- Parent:
- 0:d3ab05ed8142
- Child:
- 2:0b47f6b25cc4
- Commit message:
- delete debug potion;
Changed in this revision
--- a/CBuffer.h Fri Dec 26 15:35:20 2014 +0000 +++ b/CBuffer.h Fri Dec 26 15:51:37 2014 +0000 @@ -15,6 +15,9 @@ * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ +/* + * Modifyed by Suga + */ #ifndef CIRCBUFFER_H_ #define CIRCBUFFER_H_
--- a/IM920.cpp Fri Dec 26 15:35:20 2014 +0000
+++ b/IM920.cpp Fri Dec 26 15:51:37 2014 +0000
@@ -1,3 +1,20 @@
+/* Copyright (C) 2014 Suga, MIT License
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a copy of this software
+ * and associated documentation files (the "Software"), to deal in the Software without restriction,
+ * including without limitation the rights to use, copy, modify, merge, publish, distribute,
+ * sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is
+ * furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in all copies or
+ * substantial portions of the Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING
+ * BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+ * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
+ * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+ */
#include "IM920.h"
IM920::IM920 (PinName tx, PinName rx, PinName busy, PinName reset, int baud) : _im(tx, rx) {
--- a/IM920.h Fri Dec 26 15:35:20 2014 +0000
+++ b/IM920.h Fri Dec 26 15:51:37 2014 +0000
@@ -1,3 +1,20 @@
+/* Copyright (C) 2014 Suga, MIT License
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a copy of this software
+ * and associated documentation files (the "Software"), to deal in the Software without restriction,
+ * including without limitation the rights to use, copy, modify, merge, publish, distribute,
+ * sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is
+ * furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in all copies or
+ * substantial portions of the Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING
+ * BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+ * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
+ * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+ */
#ifndef _IM920_h_
#define _IM920_h_
@@ -55,7 +72,7 @@
int sleep ();
int wakeup ();
- // ----- GSwifi_cmd.cpp -----
+ // ----- IM920_cmd.cpp -----
int sendCommand(const char * cmd, Response res = RES_NULL, int timeout = DEFAULT_WAIT_RESP_TIMEOUT);
int sendData(const char * data, int len, int timeout = CFG_TIMEOUT);
@@ -82,11 +99,11 @@
void(*func)();
} _state;
- // ----- GSwifi_util.cpp -----
+ // ----- IM920_util.cpp -----
int x2i (char c);
char i2x (int i);
- // ----- GSwifi_msg.cpp -----
+ // ----- IM920_msg.cpp -----
void recvData (char c);
int parseMessage ();
void msgOk (const char*);
@@ -96,7 +113,7 @@
void resRDNN (const char *buf);
void resRDRS (const char *buf);
- // ----- GSwifi_cmd.cpp -----
+ // ----- IM920_cmd.cpp -----
void clearFlags ();
int cmdENWR ();
int cmdDSWR ();
@@ -113,7 +130,7 @@
int cmdDSRX ();
int cmdENRX ();
- // ----- GSwifi_hal.cpp -----
+ // ----- IM920_hal.cpp -----
void setReset (bool flg);
void isrUart ();
int getUart ();
--- a/IM920_conf.h Fri Dec 26 15:35:20 2014 +0000 +++ b/IM920_conf.h Fri Dec 26 15:51:37 2014 +0000 @@ -1,8 +1,8 @@ #ifndef _IM920_conf_h_ #define _IM920_conf_h_ -#define DEBUG -#define DEBUG_DUMP +//#define DEBUG +//#define DEBUG_DUMP #define IM920_BAUD 19200