Simple training demonstration to show the use of union
Fork of TypedefExample by
main.cpp
- Committer:
- jf1452
- Date:
- 2013-11-26
- Revision:
- 7:4753526f342a
- Parent:
- 6:5f4be4b8db14
- Child:
- 8:c0d351fc572f
File content as of revision 7:4753526f342a:
/******************************************************************************* * This program demonstrates the use of structures * * * * Jon Fuge * * V1.0 25/11/2013 First issue of code * *******************************************************************************/ #include "mbed.h" typedef unsigned short myword; int main() { myword mwAddress; // Declare variables with the new type mwAddress = 600; for(;;) {} // Loop forever }