MAX3100, an external serial device to add additional serial ports via SPI

Dependents:   FLIGHT_CONTROL_AND_COMMUNICATIONS_SYSTEM

Committer:
AjK
Date:
Fri Aug 03 12:28:27 2012 +0000
Revision:
2:2a49171453d5
Parent:
1:46c8c60e744a
Add example4.h and ISR user callback code

Who changed what in which revision?

UserRevisionLine numberNew contents of line
AjK 1:46c8c60e744a 1 /*
AjK 1:46c8c60e744a 2 Copyright (c) 2011 Andy Kirkham
AjK 1:46c8c60e744a 3
AjK 1:46c8c60e744a 4 Permission is hereby granted, free of charge, to any person obtaining a copy
AjK 1:46c8c60e744a 5 of this software and associated documentation files (the "Software"), to deal
AjK 1:46c8c60e744a 6 in the Software without restriction, including without limitation the rights
AjK 1:46c8c60e744a 7 to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
AjK 1:46c8c60e744a 8 copies of the Software, and to permit persons to whom the Software is
AjK 1:46c8c60e744a 9 furnished to do so, subject to the following conditions:
AjK 1:46c8c60e744a 10
AjK 1:46c8c60e744a 11 The above copyright notice and this permission notice shall be included in
AjK 1:46c8c60e744a 12 all copies or substantial portions of the Software.
AjK 1:46c8c60e744a 13
AjK 1:46c8c60e744a 14 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
AjK 1:46c8c60e744a 15 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
AjK 1:46c8c60e744a 16 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AjK 1:46c8c60e744a 17 AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
AjK 1:46c8c60e744a 18 LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
AjK 1:46c8c60e744a 19 OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
AjK 1:46c8c60e744a 20 THE SOFTWARE.
AjK 1:46c8c60e744a 21 */
AjK 1:46c8c60e744a 22
AjK 1:46c8c60e744a 23 /*
AjK 1:46c8c60e744a 24
AjK 2:2a49171453d5 25 1.2 03/08/2012
AjK 2:2a49171453d5 26 Added ability to make a user callback when an IRQ is fired.
AjK 2:2a49171453d5 27
AjK 1:46c8c60e744a 28 1.1 17/01/2011
AjK 1:46c8c60e744a 29 Added this file.
AjK 1:46c8c60e744a 30 Altered the way interrupts are disabled. Previously __disable_irq()/__enable_irq()
AjK 1:46c8c60e744a 31 was used. However, this is somewhat "heavy handed". So we added in an _irqMask
AjK 1:46c8c60e744a 32 property which allows us to just enable/disable the specific InterruptIn used.
AjK 1:46c8c60e744a 33
AjK 1:46c8c60e744a 34 1.0 16/01/2011
AjK 1:46c8c60e744a 35 Initial release.
AjK 1:46c8c60e744a 36
AjK 1:46c8c60e744a 37 /*