Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: mbed
inc/clocks.h@53:004a9674e922, 2019-03-14 (annotated)
- Committer:
- mfwic
- Date:
- Thu Mar 14 03:22:23 2019 +0000
- Revision:
- 53:004a9674e922
- Parent:
- 49:65c714a5def2
Changed slowClk.attach to slowClk.attach_us, also fastClk.
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
mfwic | 42:3ae73b61f657 | 1 | //------------------------------------------------------------------------------- |
mfwic | 42:3ae73b61f657 | 2 | // |
mfwic | 42:3ae73b61f657 | 3 | // Treehouse Designs Inc. |
mfwic | 42:3ae73b61f657 | 4 | // Colorado Springs, Colorado |
mfwic | 42:3ae73b61f657 | 5 | // |
mfwic | 42:3ae73b61f657 | 6 | // Copyright (c) 2016 by Treehouse Designs Inc. |
mfwic | 42:3ae73b61f657 | 7 | // Copyright (c) 2018 by Agility Power Systems Inc. |
mfwic | 42:3ae73b61f657 | 8 | // |
mfwic | 42:3ae73b61f657 | 9 | // This code is the property of Treehouse Designs, Inc. (Treehouse) and |
mfwic | 42:3ae73b61f657 | 10 | // Agility Power Systems Inc. (Agility) and may not be redistributed |
mfwic | 42:3ae73b61f657 | 11 | // in any form without prior written permission from |
mfwic | 42:3ae73b61f657 | 12 | // both copyright holders, Treehouse and Agility. |
mfwic | 42:3ae73b61f657 | 13 | // |
mfwic | 42:3ae73b61f657 | 14 | // The above copyright notice and this permission notice shall be included in |
mfwic | 42:3ae73b61f657 | 15 | // all copies or substantial portions of the Software. |
mfwic | 42:3ae73b61f657 | 16 | // |
mfwic | 42:3ae73b61f657 | 17 | // |
mfwic | 42:3ae73b61f657 | 18 | //------------------------------------------------------------------------------- |
mfwic | 42:3ae73b61f657 | 19 | // |
mfwic | 42:3ae73b61f657 | 20 | // REVISION HISTORY: |
mfwic | 42:3ae73b61f657 | 21 | // |
mfwic | 42:3ae73b61f657 | 22 | // $Author: $ |
mfwic | 42:3ae73b61f657 | 23 | // $Rev: $ |
mfwic | 42:3ae73b61f657 | 24 | // $Date: $ |
mfwic | 42:3ae73b61f657 | 25 | // $URL: $ |
mfwic | 42:3ae73b61f657 | 26 | // |
mfwic | 42:3ae73b61f657 | 27 | //------------------------------------------------------------------------------- |
mfwic | 42:3ae73b61f657 | 28 | |
mfwic | 42:3ae73b61f657 | 29 | #ifndef clocks_H |
mfwic | 42:3ae73b61f657 | 30 | #define clocks_H |
mfwic | 42:3ae73b61f657 | 31 | |
mfwic | 42:3ae73b61f657 | 32 | #include "globals.h" |
mfwic | 42:3ae73b61f657 | 33 | #include "mbed.h" |
mfwic | 42:3ae73b61f657 | 34 | |
mfwic | 53:004a9674e922 | 35 | const float CLK_SLOW = 330; |
mfwic | 53:004a9674e922 | 36 | const float CLK_FAST = 10; |
mfwic | 53:004a9674e922 | 37 | |
mfwic | 42:3ae73b61f657 | 38 | void initOut(void); |
mfwic | 42:3ae73b61f657 | 39 | void flipSlow(void); |
mfwic | 42:3ae73b61f657 | 40 | void flipFast(void); |
mfwic | 42:3ae73b61f657 | 41 | void checkFlip(void); |
Slord2142 | 47:d10bf65cb7dc | 42 | void slowFlip(); |
Slord2142 | 47:d10bf65cb7dc | 43 | void fastFlip(); |
Slord2142 | 49:65c714a5def2 | 44 | void ILR(); |
mfwic | 42:3ae73b61f657 | 45 | |
Slord2142 | 49:65c714a5def2 | 46 | extern unsigned short numFast; |
mfwic | 42:3ae73b61f657 | 47 | extern volatile bool dosFlip; |
mfwic | 42:3ae73b61f657 | 48 | extern volatile bool dofFlip; |
Slord2142 | 49:65c714a5def2 | 49 | extern volatile bool enable; |
mfwic | 42:3ae73b61f657 | 50 | |
mfwic | 42:3ae73b61f657 | 51 | #endif |