demonstration software for mbedRail24v board (mbed LPC1768)
Dependencies: EthernetInterface Tiny-HTTPD mbed-rtos mbed
Revision 1:d4107c3853a6, committed 2014-08-01
- Comitter:
- kbed
- Date:
- Fri Aug 01 11:15:18 2014 +0000
- Parent:
- 0:7b5e68d593c6
- Commit message:
- updated comments, debug information and license information
Changed in this revision
demo.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/demo.cpp Fri Aug 01 10:04:07 2014 +0000 +++ b/demo.cpp Fri Aug 01 11:15:18 2014 +0000 @@ -1,3 +1,19 @@ +/* +Copyright 2014 ELZET80 Mikrocomputer GmbH&Co., KG + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + /*---------------------------------------------------------------------------* * mbed RAIL24V demo application *---------------------------------------------------------------------------* @@ -470,7 +486,7 @@ /*---------------------------------------------------------------------------* - * Routine: dynamic_website_handler + * Routine: index_website_handler *---------------------------------------------------------------------------* * Description: * Website hander for handling requests of "http://mbed.ip/ *** ". @@ -773,7 +789,7 @@ if (port_val > 1) return 0; //no analog/pwm signal output yet, only 0 and 1 #if defined debug - printf("write Port %c Value %i \r\n",port_name, port_val); + printf("function write_portval: port %c value %i \r\n",port_name, port_val); #endif switch (port_name){ @@ -804,7 +820,7 @@ *---------------------------------------------------------------------------*/ int toggle_port(char port_name){ #if defined debug - printf("toggle Port %c \r\n",port_name); + printf("function toggle_port: toggle port %c \r\n",port_name); #endif switch (port_name){ case (ASCII_out + 1): out1 = !out1; return out1;