Mbed OS 5

Fork of PinDetect by Arturo Alvarado

Rewritten to Mbed OS 5 and their callback mechanism

Committer:
pilotak
Date:
Thu Jun 28 14:02:22 2018 +0200
Revision:
5:2b0afd293d1d
Parent:
4:bacc386fe2ad
Callback fix for Mbed OS 5.9

Who changed what in which revision?

UserRevisionLine numberNew contents of line
AjK 0:4f4ccb203a70 1 /*
AjK 0:4f4ccb203a70 2 Copyright (c) 2010 Andy Kirkham
AjK 0:4f4ccb203a70 3
AjK 0:4f4ccb203a70 4 Permission is hereby granted, free of charge, to any person obtaining a copy
AjK 0:4f4ccb203a70 5 of this software and associated documentation files (the "Software"), to deal
AjK 0:4f4ccb203a70 6 in the Software without restriction, including without limitation the rights
AjK 0:4f4ccb203a70 7 to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
AjK 0:4f4ccb203a70 8 copies of the Software, and to permit persons to whom the Software is
AjK 0:4f4ccb203a70 9 furnished to do so, subject to the following conditions:
AjK 0:4f4ccb203a70 10
AjK 0:4f4ccb203a70 11 The above copyright notice and this permission notice shall be included in
AjK 0:4f4ccb203a70 12 all copies or substantial portions of the Software.
AjK 0:4f4ccb203a70 13
AjK 0:4f4ccb203a70 14 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
AjK 0:4f4ccb203a70 15 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
AjK 0:4f4ccb203a70 16 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AjK 0:4f4ccb203a70 17 AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
AjK 0:4f4ccb203a70 18 LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
AjK 0:4f4ccb203a70 19 OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
AjK 0:4f4ccb203a70 20 THE SOFTWARE.
pilotak 4:bacc386fe2ad 21
pilotak 5:2b0afd293d1d 22 1.7 28 Jun 2018 - Callback fix for Mbed OS 5.9
pilotak 5:2b0afd293d1d 23
pilotak 4:bacc386fe2ad 24 1.6 17 Nov 2016 - Rewritten to Mbed OS 5.2
AjK 0:4f4ccb203a70 25
AjK 2:cb3afc45028b 26 1.5 13 Jan 2011 - Made the isr() protected and made the class a friend of Ticker.
AjK 2:cb3afc45028b 27 Read the previous state and store when the sample frequency is
AjK 2:cb3afc45028b 28 set so that initial assert_deassert_held() isn't called at startup.
AjK 2:cb3afc45028b 29
AjK 1:611a8f5ac65c 30 1.4 13 Jan 2011 - Added an extra overloaded constructor that allows
AjK 1:611a8f5ac65c 31 the DigitalIn PinMode to be passed when the the class
AjK 1:611a8f5ac65c 32 is declared. So mode() isn't really needed but is left
AjK 1:611a8f5ac65c 33 in for completeness.
AjK 1:611a8f5ac65c 34
AjK 0:4f4ccb203a70 35 1.3 13 Jan 2011 - Updated some doxygen comments.
AjK 0:4f4ccb203a70 36
AjK 0:4f4ccb203a70 37 1.2 13 Jan 2011 - Added ChangeLog.h file.
AjK 0:4f4ccb203a70 38
AjK 0:4f4ccb203a70 39 1.1 13 Jan 2011 - Fixed some typos.
AjK 0:4f4ccb203a70 40
AjK 0:4f4ccb203a70 41 1.0 13 Jan 2011 - Initial release.
AjK 0:4f4ccb203a70 42
AjK 0:4f4ccb203a70 43 */