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.
Dependencies: IAP NTPClient RTC mbed-rtos mbed Socket lwip-sys lwip BurstSPI
Fork of LPC1768_Mini-DK by
settings.h@15:688b3e3958fd, 2013-08-23 (annotated)
- Committer:
- jakeb
- Date:
- Fri Aug 23 21:45:08 2013 +0000
- Revision:
- 15:688b3e3958fd
Initial commit of software v0.2;
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| jakeb | 15:688b3e3958fd | 1 | // Copyright (c) 2013, jake (at) allaboutjake (dot) com |
| jakeb | 15:688b3e3958fd | 2 | // All rights reserved. |
| jakeb | 15:688b3e3958fd | 3 | // |
| jakeb | 15:688b3e3958fd | 4 | // Redistribution and use in source and binary forms, with or without |
| jakeb | 15:688b3e3958fd | 5 | // modification, are permitted provided that the following conditions are met: |
| jakeb | 15:688b3e3958fd | 6 | // * Redistributions of source code must retain the above copyright |
| jakeb | 15:688b3e3958fd | 7 | // notice, this list of conditions and the following disclaimer. |
| jakeb | 15:688b3e3958fd | 8 | // * Redistributions in binary form must reproduce the above copyright |
| jakeb | 15:688b3e3958fd | 9 | // notice, this list of conditions and the following disclaimer in the |
| jakeb | 15:688b3e3958fd | 10 | // documentation and/or other materials provided with the distribution. |
| jakeb | 15:688b3e3958fd | 11 | // * The name of the author and/or copyright holder nor the |
| jakeb | 15:688b3e3958fd | 12 | // names of its contributors may be used to endorse or promote products |
| jakeb | 15:688b3e3958fd | 13 | // derived from this software without specific prior written permission. |
| jakeb | 15:688b3e3958fd | 14 | // |
| jakeb | 15:688b3e3958fd | 15 | // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND |
| jakeb | 15:688b3e3958fd | 16 | // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED |
| jakeb | 15:688b3e3958fd | 17 | // WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE |
| jakeb | 15:688b3e3958fd | 18 | // DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER, AUTHOR, OR ANY CONTRIBUTORS |
| jakeb | 15:688b3e3958fd | 19 | // BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR |
| jakeb | 15:688b3e3958fd | 20 | // CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE |
| jakeb | 15:688b3e3958fd | 21 | // GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) |
| jakeb | 15:688b3e3958fd | 22 | // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT |
| jakeb | 15:688b3e3958fd | 23 | // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT |
| jakeb | 15:688b3e3958fd | 24 | // OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| jakeb | 15:688b3e3958fd | 25 | |
| jakeb | 15:688b3e3958fd | 26 | // DESCRIPTION OF FILE: |
| jakeb | 15:688b3e3958fd | 27 | // |
| jakeb | 15:688b3e3958fd | 28 | // This header file contains the declarations of the settings getter/setters. |
| jakeb | 15:688b3e3958fd | 29 | // currently the only setting is the authenticaiton username/password. |
| jakeb | 15:688b3e3958fd | 30 | // |
| jakeb | 15:688b3e3958fd | 31 | |
| jakeb | 15:688b3e3958fd | 32 | #ifndef __SETTINGS_H__ |
| jakeb | 15:688b3e3958fd | 33 | #define __SETTINGS_H__ |
| jakeb | 15:688b3e3958fd | 34 | |
| jakeb | 15:688b3e3958fd | 35 | #include "IAP.h" |
| jakeb | 15:688b3e3958fd | 36 | |
| jakeb | 15:688b3e3958fd | 37 | #define IAP_MEM_SIZE 256 |
| jakeb | 15:688b3e3958fd | 38 | |
| jakeb | 15:688b3e3958fd | 39 | #if defined(TARGET_LPC1768) |
| jakeb | 15:688b3e3958fd | 40 | #define TARGET_SECTOR 29 // use sector 29 as target sector if it is on LPC1768 |
| jakeb | 15:688b3e3958fd | 41 | #endif |
| jakeb | 15:688b3e3958fd | 42 | |
| jakeb | 15:688b3e3958fd | 43 | void setAuthenticationToken(char* token, int length); |
| jakeb | 15:688b3e3958fd | 44 | char* getAuthenticationToken(); |
| jakeb | 15:688b3e3958fd | 45 | |
| jakeb | 15:688b3e3958fd | 46 | #endif |
