Charles Tritt / Mbed 2 deprecated HeaderTest

Dependencies:   mbed

Committer:
CSTritt
Date:
Thu Oct 19 21:05:11 2017 +0000
Revision:
0:cc014c610423
Initial version. Demonstrates use of header files and compilation units (files) for each function.

Who changed what in which revision?

UserRevisionLine numberNew contents of line
CSTritt 0:cc014c610423 1 /*
CSTritt 0:cc014c610423 2 Project: HeaderTest
CSTritt 0:cc014c610423 3 File: myProj.h
CSTritt 0:cc014c610423 4 Last revised by: Dr. C. S. Tritt
CSTritt 0:cc014c610423 5 Last revision on: 10/19/17 (v. 1.0)
CSTritt 0:cc014c610423 6
CSTritt 0:cc014c610423 7 This is the header files for the HeaderTest project. It declares stuff that
CSTritt 0:cc014c610423 8 will be used in/by multiple cpp files.
CSTritt 0:cc014c610423 9 */
CSTritt 0:cc014c610423 10 // Declare mbed objects. The extern indicates it is defined elsewhere (main.cpp
CSTritt 0:cc014c610423 11 // in this case).
CSTritt 0:cc014c610423 12 extern DigitalOut board_LED;
CSTritt 0:cc014c610423 13 // Declare global variables (extern required to avoid errors).
CSTritt 0:cc014c610423 14 extern const float BASE_WAIT; // Defined in main.cpp.
CSTritt 0:cc014c610423 15 extern int cycles; // Defined in main.cpp.
CSTritt 0:cc014c610423 16 // Declare your function(s.
CSTritt 0:cc014c610423 17 void myStuff(void); // Defined in myStuff.cpp.