cc3000 UDP server demo

Dependencies:   NVIC_set_all_priorities cc3000_hostdriver_mbedsocket mbed

Committer:
Kojto
Date:
Sun Oct 06 10:45:48 2013 +0000
Revision:
0:c338c4b7ca0a
Child:
2:6079591c6683
initial version

Who changed what in which revision?

UserRevisionLine numberNew contents of line
Kojto 0:c338c4b7ca0a 1 /* mbed Microcontroller Library
Kojto 0:c338c4b7ca0a 2 * Copyright (c) 2006-2013 ARM Limited
Kojto 0:c338c4b7ca0a 3 *
Kojto 0:c338c4b7ca0a 4 * Licensed under the Apache License, Version 2.0 (the "License");
Kojto 0:c338c4b7ca0a 5 * you may not use this file except in compliance with the License.
Kojto 0:c338c4b7ca0a 6 * You may obtain a copy of the License at
Kojto 0:c338c4b7ca0a 7 *
Kojto 0:c338c4b7ca0a 8 * http://www.apache.org/licenses/LICENSE-2.0
Kojto 0:c338c4b7ca0a 9 *
Kojto 0:c338c4b7ca0a 10 * Unless required by applicable law or agreed to in writing, software
Kojto 0:c338c4b7ca0a 11 * distributed under the License is distributed on an "AS IS" BASIS,
Kojto 0:c338c4b7ca0a 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
Kojto 0:c338c4b7ca0a 13 * See the License for the specific language governing permissions and
Kojto 0:c338c4b7ca0a 14 * limitations under the License.
Kojto 0:c338c4b7ca0a 15 */
Kojto 0:c338c4b7ca0a 16 #ifndef MAIN_H
Kojto 0:c338c4b7ca0a 17 #define MAIN_H
Kojto 0:c338c4b7ca0a 18
Kojto 0:c338c4b7ca0a 19 #define WIGO 1
Kojto 0:c338c4b7ca0a 20 #define WIFI_DIPCORTEX 2
Kojto 0:c338c4b7ca0a 21 #define UNDEFINED 3
Kojto 0:c338c4b7ca0a 22
Kojto 0:c338c4b7ca0a 23 #define MY_BOARD WIGO
Kojto 0:c338c4b7ca0a 24
Kojto 0:c338c4b7ca0a 25 // use this defines in AP_SECURITY
Kojto 0:c338c4b7ca0a 26 #define NONE 0
Kojto 0:c338c4b7ca0a 27 #define WEP 1
Kojto 0:c338c4b7ca0a 28 #define WPA 2
Kojto 0:c338c4b7ca0a 29 #define WPA2 3
Kojto 0:c338c4b7ca0a 30
Kojto 0:c338c4b7ca0a 31 // use smart config
Kojto 0:c338c4b7ca0a 32 #define USE_SMART_CONFIG 0
Kojto 0:c338c4b7ca0a 33
Kojto 0:c338c4b7ca0a 34 // Default SSID Settings
Kojto 0:c338c4b7ca0a 35 #define AP_KEY "test"
Kojto 0:c338c4b7ca0a 36 #define AP_SECURITY WPA2 // WPA2 must be enabled for use with iPhone or Android phone hotspot!
Kojto 0:c338c4b7ca0a 37 #define SSID "test"
Kojto 0:c338c4b7ca0a 38
Kojto 0:c338c4b7ca0a 39 void init();
Kojto 0:c338c4b7ca0a 40
Kojto 0:c338c4b7ca0a 41 #endif