SMS Scheduler that will automatically send and receive text messages using the Enfora 1308 GSM Modem. Please note that it uses a modified NetServices library and to set the baud rate for the GSM Modem to 19.2K.

Dependencies:   mbed

Committer:
mafischl
Date:
Thu Oct 13 18:01:31 2011 +0000
Revision:
1:5a7cce9994a3
Parent:
0:d9266031f832

        

Who changed what in which revision?

UserRevisionLine numberNew contents of line
mafischl 0:d9266031f832 1
mafischl 0:d9266031f832 2 /*
mafischl 0:d9266031f832 3 Copyright (c) 2010 Donatien Garnier (donatiengar [at] gmail [dot] com)
mafischl 0:d9266031f832 4
mafischl 0:d9266031f832 5 Permission is hereby granted, free of charge, to any person obtaining a copy
mafischl 0:d9266031f832 6 of this software and associated documentation files (the "Software"), to deal
mafischl 0:d9266031f832 7 in the Software without restriction, including without limitation the rights
mafischl 0:d9266031f832 8 to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
mafischl 0:d9266031f832 9 copies of the Software, and to permit persons to whom the Software is
mafischl 0:d9266031f832 10 furnished to do so, subject to the following conditions:
mafischl 0:d9266031f832 11
mafischl 0:d9266031f832 12 The above copyright notice and this permission notice shall be included in
mafischl 0:d9266031f832 13 all copies or substantial portions of the Software.
mafischl 0:d9266031f832 14
mafischl 0:d9266031f832 15 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
mafischl 0:d9266031f832 16 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
mafischl 0:d9266031f832 17 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
mafischl 0:d9266031f832 18 AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
mafischl 0:d9266031f832 19 LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
mafischl 0:d9266031f832 20 OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
mafischl 0:d9266031f832 21 THE SOFTWARE.
mafischl 0:d9266031f832 22 */
mafischl 0:d9266031f832 23 #if 0 //Dep
mafischl 0:d9266031f832 24
mafischl 0:d9266031f832 25 #include "sioMgr.h"
mafischl 0:d9266031f832 26
mafischl 0:d9266031f832 27
mafischl 0:d9266031f832 28 u8_t SioMgr::m_count=0;
mafischl 0:d9266031f832 29 SerialBuf* SioMgr::m_pSerialBufList[MAX_SERIAL_PORTS] = {NULL};
mafischl 0:d9266031f832 30
mafischl 0:d9266031f832 31 u8_t SioMgr::registerSerialIf(SerialBuf* pIf)
mafischl 0:d9266031f832 32 {
mafischl 0:d9266031f832 33 if(m_count==MAX_SERIAL_PORTS)
mafischl 0:d9266031f832 34 return 0;
mafischl 0:d9266031f832 35
mafischl 0:d9266031f832 36 m_pSerialBufList[m_count] = pIf;
mafischl 0:d9266031f832 37 m_count++;
mafischl 0:d9266031f832 38
mafischl 0:d9266031f832 39 return m_count; //We do not want a fd to be NULL, so return value is p+1
mafischl 0:d9266031f832 40 }
mafischl 0:d9266031f832 41
mafischl 0:d9266031f832 42 SerialBuf* SioMgr::getIf(u8_t item)
mafischl 0:d9266031f832 43 {
mafischl 0:d9266031f832 44 if (!item || item > m_count)
mafischl 0:d9266031f832 45 return NULL;
mafischl 0:d9266031f832 46
mafischl 0:d9266031f832 47 return m_pSerialBufList[item-1];
mafischl 0:d9266031f832 48 }
mafischl 0:d9266031f832 49 #endif