Serial_HelloWorld Example for WIZwiki-W7500

Dependencies:   mbed

Fork of Serial_HelloWorld_Mbed by mbed official

Prerequisite

This example is to check a serial communication with a PC

To implement this function, you need a Platform board.

Below are what we used.

  • WIZwiki-W7500 from WIZnet (Platform board)

Hardware Configuration

WIZwiki-W7500 Pin map

pin map

Software

main.cpp

#include "mbed.h"
 
Serial pc(USBTX, USBRX); // tx, rx
 
int main() {
    pc.printf("Hello World!\n\r");
    while(1) {
        pc.putc(pc.getc() + 1); // echo input back to terminal
    }
}

Committer:
justinkim
Date:
Mon Jun 29 04:02:22 2015 +0000
Revision:
3:14276e409985
Parent:
2:033eefd2904e
fix

Who changed what in which revision?

UserRevisionLine numberNew contents of line
mbedAustin 2:033eefd2904e 1 /* mbed Example Program
mbedAustin 2:033eefd2904e 2 * Copyright (c) 2006-2014 ARM Limited
mbedAustin 2:033eefd2904e 3 *
mbedAustin 2:033eefd2904e 4 * Licensed under the Apache License, Version 2.0 (the "License");
mbedAustin 2:033eefd2904e 5 * you may not use this file except in compliance with the License.
mbedAustin 2:033eefd2904e 6 * You may obtain a copy of the License at
mbedAustin 2:033eefd2904e 7 *
mbedAustin 2:033eefd2904e 8 * http://www.apache.org/licenses/LICENSE-2.0
mbedAustin 2:033eefd2904e 9 *
mbedAustin 2:033eefd2904e 10 * Unless required by applicable law or agreed to in writing, software
mbedAustin 2:033eefd2904e 11 * distributed under the License is distributed on an "AS IS" BASIS,
mbedAustin 2:033eefd2904e 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
mbedAustin 2:033eefd2904e 13 * See the License for the specific language governing permissions and
mbedAustin 2:033eefd2904e 14 * limitations under the License.
mbedAustin 2:033eefd2904e 15 */
mbed_official 0:879aa9d0247b 16 #include "mbed.h"
mbed_official 0:879aa9d0247b 17
mbed_official 0:879aa9d0247b 18 Serial pc(USBTX, USBRX); // tx, rx
mbed_official 0:879aa9d0247b 19
mbed_official 0:879aa9d0247b 20 int main() {
mbedAustin 1:560b8ced44df 21 pc.printf("Hello World!\n\r");
mbed_official 0:879aa9d0247b 22 while(1) {
mbedAustin 1:560b8ced44df 23 pc.putc(pc.getc() + 1); // echo input back to terminal
mbed_official 0:879aa9d0247b 24 }
mbed_official 0:879aa9d0247b 25 }