Host software for the MAX30001 ECG, PACE, biopotential, bioimpedance, R-to-R peak sensor. Hosted on the MAX32630FTHR.
Dependencies: SDFileSystem USBDevice max32630fthr
Fork of MAX30001-MAX32630FTHR-ECG-EVKIT by
HSP/System/Peripherals.cpp@11:1dde68750ed1, 2018-07-24 (annotated)
- Committer:
- Emre.Eken
- Date:
- Tue Jul 24 15:15:22 2018 +0300
- Revision:
- 11:1dde68750ed1
Files' hierarchy is changed.
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
Emre.Eken | 11:1dde68750ed1 | 1 | /******************************************************************************* |
Emre.Eken | 11:1dde68750ed1 | 2 | * Copyright (C) 2016 Maxim Integrated Products, Inc., All Rights Reserved. |
Emre.Eken | 11:1dde68750ed1 | 3 | * |
Emre.Eken | 11:1dde68750ed1 | 4 | * Permission is hereby granted, free of charge, to any person obtaining a |
Emre.Eken | 11:1dde68750ed1 | 5 | * copy of this software and associated documentation files (the "Software"), |
Emre.Eken | 11:1dde68750ed1 | 6 | * to deal in the Software without restriction, including without limitation |
Emre.Eken | 11:1dde68750ed1 | 7 | * the rights to use, copy, modify, merge, publish, distribute, sublicense, |
Emre.Eken | 11:1dde68750ed1 | 8 | * and/or sell copies of the Software, and to permit persons to whom the |
Emre.Eken | 11:1dde68750ed1 | 9 | * Software is furnished to do so, subject to the following conditions: |
Emre.Eken | 11:1dde68750ed1 | 10 | * |
Emre.Eken | 11:1dde68750ed1 | 11 | * The above copyright notice and this permission notice shall be included |
Emre.Eken | 11:1dde68750ed1 | 12 | * in all copies or substantial portions of the Software. |
Emre.Eken | 11:1dde68750ed1 | 13 | * |
Emre.Eken | 11:1dde68750ed1 | 14 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS |
Emre.Eken | 11:1dde68750ed1 | 15 | * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF |
Emre.Eken | 11:1dde68750ed1 | 16 | * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. |
Emre.Eken | 11:1dde68750ed1 | 17 | * IN NO EVENT SHALL MAXIM INTEGRATED BE LIABLE FOR ANY CLAIM, DAMAGES |
Emre.Eken | 11:1dde68750ed1 | 18 | * OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, |
Emre.Eken | 11:1dde68750ed1 | 19 | * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR |
Emre.Eken | 11:1dde68750ed1 | 20 | * OTHER DEALINGS IN THE SOFTWARE. |
Emre.Eken | 11:1dde68750ed1 | 21 | * |
Emre.Eken | 11:1dde68750ed1 | 22 | * Except as contained in this notice, the name of Maxim Integrated |
Emre.Eken | 11:1dde68750ed1 | 23 | * Products, Inc. shall not be used except as stated in the Maxim Integrated |
Emre.Eken | 11:1dde68750ed1 | 24 | * Products, Inc. Branding Policy. |
Emre.Eken | 11:1dde68750ed1 | 25 | * |
Emre.Eken | 11:1dde68750ed1 | 26 | * The mere transfer of this software does not imply any licenses |
Emre.Eken | 11:1dde68750ed1 | 27 | * of trade secrets, proprietary technology, copyrights, patents, |
Emre.Eken | 11:1dde68750ed1 | 28 | * trademarks, maskwork rights, or any other form of intellectual |
Emre.Eken | 11:1dde68750ed1 | 29 | * property whatsoever. Maxim Integrated Products, Inc. retains all |
Emre.Eken | 11:1dde68750ed1 | 30 | * ownership rights. |
Emre.Eken | 11:1dde68750ed1 | 31 | ******************************************************************************* |
Emre.Eken | 11:1dde68750ed1 | 32 | */ |
Emre.Eken | 11:1dde68750ed1 | 33 | #include "Peripherals.h" |
Emre.Eken | 11:1dde68750ed1 | 34 | |
Emre.Eken | 11:1dde68750ed1 | 35 | USBSerial *Peripherals::mUSBSerial = NULL; |
Emre.Eken | 11:1dde68750ed1 | 36 | MAX30001 *Peripherals::mMAX30001 = NULL; |
Emre.Eken | 11:1dde68750ed1 | 37 | HspLed *Peripherals::mHspLed = NULL; |
Emre.Eken | 11:1dde68750ed1 | 38 | Timer *Peripherals::mTimestampTimer = NULL; |
Emre.Eken | 11:1dde68750ed1 | 39 | S25FS512 *Peripherals::mS25FS512 = NULL; |
Emre.Eken | 11:1dde68750ed1 | 40 | PushButton *Peripherals::mPushButton = NULL; |
Emre.Eken | 11:1dde68750ed1 | 41 | SDFileSystem *Peripherals::mSD = NULL; |
Emre.Eken | 11:1dde68750ed1 | 42 | DigitalIn *Peripherals::mSDDetect = NULL; |