Fork of KL46Z Wifi version. Moved to KL25Z as umbrella stand now requires 2 SPIs, thus requires 46z.

Dependencies:   WIZnet_Library_ASE mbed nanoservice_client_1_12

Fork of Trenton_Doormat_FRDM-KL25Z_ETH by Eric Gowland

Committer:
Kojto
Date:
Thu Oct 03 21:26:22 2013 +0200
Revision:
5:12ea15b9c2f4
Parent:
1:99076f2d9408
Child:
6:6eaae34586b8
Initial version for new host driver

- not fully working

Who changed what in which revision?

UserRevisionLine numberNew contents of line
Kojto 1:99076f2d9408 1 /* mbed Microcontroller Library
Kojto 1:99076f2d9408 2 * Copyright (c) 2006-2013 ARM Limited
Kojto 1:99076f2d9408 3 *
Kojto 1:99076f2d9408 4 * Licensed under the Apache License, Version 2.0 (the "License");
Kojto 1:99076f2d9408 5 * you may not use this file except in compliance with the License.
Kojto 1:99076f2d9408 6 * You may obtain a copy of the License at
Kojto 1:99076f2d9408 7 *
Kojto 1:99076f2d9408 8 * http://www.apache.org/licenses/LICENSE-2.0
Kojto 1:99076f2d9408 9 *
Kojto 1:99076f2d9408 10 * Unless required by applicable law or agreed to in writing, software
Kojto 1:99076f2d9408 11 * distributed under the License is distributed on an "AS IS" BASIS,
Kojto 1:99076f2d9408 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
Kojto 1:99076f2d9408 13 * See the License for the specific language governing permissions and
Kojto 1:99076f2d9408 14 * limitations under the License.
Kojto 1:99076f2d9408 15 */
Kojto 0:ce33c63eefe5 16 #ifndef MAIN_H
Kojto 0:ce33c63eefe5 17 #define MAIN_H
Kojto 0:ce33c63eefe5 18
Kojto 5:12ea15b9c2f4 19 #define WIGO 1
Kojto 5:12ea15b9c2f4 20 #define WIFI_DIPCORTEX 2
Kojto 5:12ea15b9c2f4 21 #define UNDEFINED 3
Kojto 1:99076f2d9408 22
Kojto 5:12ea15b9c2f4 23 #define MY_BOARD WIGO
Kojto 0:ce33c63eefe5 24
Kojto 5:12ea15b9c2f4 25 // use this defines in AP_SECURITY
Kojto 5:12ea15b9c2f4 26 #define NONE 0
Kojto 5:12ea15b9c2f4 27 #define WEP 1
Kojto 5:12ea15b9c2f4 28 #define WPA 2
Kojto 5:12ea15b9c2f4 29 #define WPA2 3
Kojto 0:ce33c63eefe5 30
Kojto 5:12ea15b9c2f4 31 // use smart config
Kojto 5:12ea15b9c2f4 32 #define USE_SMART_CONFIG 0
Kojto 1:99076f2d9408 33
Kojto 5:12ea15b9c2f4 34 // Default SSID Settings
Kojto 5:12ea15b9c2f4 35 #define AP_KEY "zxcvbnm,./"
Kojto 5:12ea15b9c2f4 36 #define AP_SECURITY WPA2 // WPA2 must be enabled for use with iPhone or Android phone hotspot!
Kojto 5:12ea15b9c2f4 37 #define SSID "SSID"
Kojto 1:99076f2d9408 38
Kojto 5:12ea15b9c2f4 39 #define USE_DHCP 1
Kojto 5:12ea15b9c2f4 40 #define USE_STATIC_IP 2
Kojto 1:99076f2d9408 41
Kojto 5:12ea15b9c2f4 42 // Modify the following settings as necessary for your Wi-Fi Network setup:
Kojto 5:12ea15b9c2f4 43 #define IP_ALLOC_METHOD USE_DHCP // for DHCP assigned IP address
Kojto 5:12ea15b9c2f4 44 //#define IP_ALLOC_METHOD USE_STATIC_IP // for static IP address
Kojto 1:99076f2d9408 45
Kojto 5:12ea15b9c2f4 46 #define STATIC_IP_OCT1 192
Kojto 5:12ea15b9c2f4 47 #define STATIC_IP_OCT2 168
Kojto 5:12ea15b9c2f4 48 #define STATIC_IP_OCT3 0
Kojto 5:12ea15b9c2f4 49 #define STATIC_IP_OCT4 103
Kojto 1:99076f2d9408 50
Kojto 5:12ea15b9c2f4 51 #define STATIC_GW_OCT4 1 // Static Gateway address = STATIC_IP_OCT1.STATIC_IP_OCT2.STATIC_IP_OCT3.STATIC_GW_OCT4
Kojto 5:12ea15b9c2f4 52
Kojto 5:12ea15b9c2f4 53
Kojto 5:12ea15b9c2f4 54 void init();
Kojto 1:99076f2d9408 55
Kojto 0:ce33c63eefe5 56 #endif