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/th_rtz.h@53:004a9674e922, 2019-03-14 (annotated)
- Committer:
- mfwic
- Date:
- Thu Mar 14 03:22:23 2019 +0000
- Revision:
- 53:004a9674e922
- Parent:
- 52:2b3b194144da
Changed slowClk.attach to slowClk.attach_us, also fastClk.
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
Slord2142 | 51:abe8a392d50b | 1 | //------------------------------------------------------------------------------- |
Slord2142 | 51:abe8a392d50b | 2 | // |
Slord2142 | 51:abe8a392d50b | 3 | // Treehouse Designs Inc. |
Slord2142 | 51:abe8a392d50b | 4 | // Colorado Springs, Colorado |
Slord2142 | 51:abe8a392d50b | 5 | // |
Slord2142 | 51:abe8a392d50b | 6 | // Copyright (c) 2016 by Treehouse Designs Inc. |
Slord2142 | 51:abe8a392d50b | 7 | // Copyright (c) 2018 by Agility Power Systems Inc. |
Slord2142 | 51:abe8a392d50b | 8 | // |
Slord2142 | 51:abe8a392d50b | 9 | // This code is the property of Treehouse Designs, Inc. (Treehouse) and |
Slord2142 | 51:abe8a392d50b | 10 | // Agility Power Systems Inc. (Agility) and may not be redistributed |
Slord2142 | 51:abe8a392d50b | 11 | // in any form without prior written permission from |
Slord2142 | 51:abe8a392d50b | 12 | // both copyright holders, Treehouse and Agility. |
Slord2142 | 51:abe8a392d50b | 13 | // |
Slord2142 | 51:abe8a392d50b | 14 | // The above copyright notice and this permission notice shall be included in |
Slord2142 | 51:abe8a392d50b | 15 | // all copies or substantial portions of the Software. |
Slord2142 | 51:abe8a392d50b | 16 | // |
Slord2142 | 51:abe8a392d50b | 17 | // |
Slord2142 | 51:abe8a392d50b | 18 | //------------------------------------------------------------------------------- |
Slord2142 | 51:abe8a392d50b | 19 | // |
Slord2142 | 51:abe8a392d50b | 20 | // REVISION HISTORY: |
Slord2142 | 51:abe8a392d50b | 21 | // |
Slord2142 | 51:abe8a392d50b | 22 | // $Author: $ |
Slord2142 | 51:abe8a392d50b | 23 | // $Rev: $ |
Slord2142 | 51:abe8a392d50b | 24 | // $Date: $ |
Slord2142 | 51:abe8a392d50b | 25 | // $URL: $ |
Slord2142 | 51:abe8a392d50b | 26 | // |
Slord2142 | 51:abe8a392d50b | 27 | //------------------------------------------------------------------------------- |
Slord2142 | 51:abe8a392d50b | 28 | |
Slord2142 | 51:abe8a392d50b | 29 | #ifndef OCL_H_ // Include guards |
Slord2142 | 51:abe8a392d50b | 30 | #define OCL_H_ |
Slord2142 | 51:abe8a392d50b | 31 | |
Slord2142 | 51:abe8a392d50b | 32 | #include <string> |
Slord2142 | 51:abe8a392d50b | 33 | |
mfwic | 52:2b3b194144da | 34 | extern volatile bool pulseReady; |
Slord2142 | 51:abe8a392d50b | 35 | |
mfwic | 52:2b3b194144da | 36 | extern bool slave1; //New for 1U5 |
mfwic | 52:2b3b194144da | 37 | extern bool slave2; //New for 1U5 |
mfwic | 52:2b3b194144da | 38 | |
mfwic | 52:2b3b194144da | 39 | #define RX_TIMEOUT 1000 |
Slord2142 | 51:abe8a392d50b | 40 | |
mfwic | 52:2b3b194144da | 41 | void Slave_Init(void); |
mfwic | 52:2b3b194144da | 42 | |
mfwic | 52:2b3b194144da | 43 | void Slave_Rx_riseIRQ(void); |
Slord2142 | 51:abe8a392d50b | 44 | |
mfwic | 52:2b3b194144da | 45 | void Slave_Rx_fallIRQ(void); |
mfwic | 52:2b3b194144da | 46 | |
mfwic | 52:2b3b194144da | 47 | unsigned short Slave_RXstr(void); |
Slord2142 | 51:abe8a392d50b | 48 | |
Slord2142 | 51:abe8a392d50b | 49 | void sendPreamble(void); |
Slord2142 | 51:abe8a392d50b | 50 | |
mfwic | 52:2b3b194144da | 51 | void sendMstr_one(unsigned short); |
Slord2142 | 51:abe8a392d50b | 52 | |
mfwic | 52:2b3b194144da | 53 | void sendMstr_zero(unsigned short); |
Slord2142 | 51:abe8a392d50b | 54 | |
Slord2142 | 51:abe8a392d50b | 55 | void sendByte(unsigned short slaveNum, char data_byte); |
Slord2142 | 51:abe8a392d50b | 56 | |
Slord2142 | 51:abe8a392d50b | 57 | #endif // OCL_H_ |