mbed Advent Calendar 2014 day 8 (http://www.adventar.org/calendars/523)

Dependencies:   USBDevice mbed

Committer:
hsgw
Date:
Mon Dec 08 12:31:18 2014 +0000
Revision:
0:23d012049941
1st commit

Who changed what in which revision?

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