max32630fthr quad spi , unexpected spi behavior

Committer:
boonshen
Date:
Tue Mar 13 21:12:00 2018 +0000
Revision:
0:a35c40f49345
MAX32630FTHR QuadSPI test

Who changed what in which revision?

UserRevisionLine numberNew contents of line
boonshen 0:a35c40f49345 1 /* mbed Microcontroller Library
boonshen 0:a35c40f49345 2 * Copyright (c) 2006-2013 ARM Limited
boonshen 0:a35c40f49345 3 *
boonshen 0:a35c40f49345 4 * Licensed under the Apache License, Version 2.0 (the "License");
boonshen 0:a35c40f49345 5 * you may not use this file except in compliance with the License.
boonshen 0:a35c40f49345 6 * You may obtain a copy of the License at
boonshen 0:a35c40f49345 7 *
boonshen 0:a35c40f49345 8 * http://www.apache.org/licenses/LICENSE-2.0
boonshen 0:a35c40f49345 9 *
boonshen 0:a35c40f49345 10 * Unless required by applicable law or agreed to in writing, software
boonshen 0:a35c40f49345 11 * distributed under the License is distributed on an "AS IS" BASIS,
boonshen 0:a35c40f49345 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
boonshen 0:a35c40f49345 13 * See the License for the specific language governing permissions and
boonshen 0:a35c40f49345 14 * limitations under the License.
boonshen 0:a35c40f49345 15 */
boonshen 0:a35c40f49345 16 #ifndef MBED_H
boonshen 0:a35c40f49345 17 #define MBED_H
boonshen 0:a35c40f49345 18
boonshen 0:a35c40f49345 19 #define MBED_LIBRARY_VERSION 155
boonshen 0:a35c40f49345 20
boonshen 0:a35c40f49345 21 #if MBED_CONF_RTOS_PRESENT
boonshen 0:a35c40f49345 22 // RTOS present, this is valid only for mbed OS 5
boonshen 0:a35c40f49345 23 #define MBED_MAJOR_VERSION 5
boonshen 0:a35c40f49345 24 #define MBED_MINOR_VERSION 6
boonshen 0:a35c40f49345 25 #define MBED_PATCH_VERSION 4
boonshen 0:a35c40f49345 26
boonshen 0:a35c40f49345 27 #else
boonshen 0:a35c40f49345 28 // mbed 2
boonshen 0:a35c40f49345 29 #define MBED_MAJOR_VERSION 2
boonshen 0:a35c40f49345 30 #define MBED_MINOR_VERSION 0
boonshen 0:a35c40f49345 31 #define MBED_PATCH_VERSION MBED_LIBRARY_VERSION
boonshen 0:a35c40f49345 32 #endif
boonshen 0:a35c40f49345 33
boonshen 0:a35c40f49345 34 #define MBED_ENCODE_VERSION(major, minor, patch) ((major)*10000 + (minor)*100 + (patch))
boonshen 0:a35c40f49345 35 #define MBED_VERSION MBED_ENCODE_VERSION(MBED_MAJOR_VERSION, MBED_MINOR_VERSION, MBED_PATCH_VERSION)
boonshen 0:a35c40f49345 36
boonshen 0:a35c40f49345 37 #if MBED_CONF_RTOS_PRESENT
boonshen 0:a35c40f49345 38 #include "rtos/rtos.h"
boonshen 0:a35c40f49345 39 #endif
boonshen 0:a35c40f49345 40
boonshen 0:a35c40f49345 41 #if MBED_CONF_NSAPI_PRESENT
boonshen 0:a35c40f49345 42 #include "netsocket/nsapi.h"
boonshen 0:a35c40f49345 43 #include "netsocket/nsapi_ppp.h"
boonshen 0:a35c40f49345 44 #endif
boonshen 0:a35c40f49345 45
boonshen 0:a35c40f49345 46 #if MBED_CONF_EVENTS_PRESENT
boonshen 0:a35c40f49345 47 #include "events/mbed_events.h"
boonshen 0:a35c40f49345 48 #endif
boonshen 0:a35c40f49345 49
boonshen 0:a35c40f49345 50 #if MBED_CONF_FILESYSTEM_PRESENT
boonshen 0:a35c40f49345 51 #include "filesystem/mbed_filesystem.h"
boonshen 0:a35c40f49345 52 #endif
boonshen 0:a35c40f49345 53
boonshen 0:a35c40f49345 54 #include "platform/mbed_toolchain.h"
boonshen 0:a35c40f49345 55 #include "platform/platform.h"
boonshen 0:a35c40f49345 56 #include "platform/mbed_application.h"
boonshen 0:a35c40f49345 57
boonshen 0:a35c40f49345 58 // Useful C libraries
boonshen 0:a35c40f49345 59 #include <math.h>
boonshen 0:a35c40f49345 60 #include <time.h>
boonshen 0:a35c40f49345 61
boonshen 0:a35c40f49345 62 // mbed Debug libraries
boonshen 0:a35c40f49345 63 #include "platform/mbed_error.h"
boonshen 0:a35c40f49345 64 #include "platform/mbed_interface.h"
boonshen 0:a35c40f49345 65 #include "platform/mbed_assert.h"
boonshen 0:a35c40f49345 66 #include "platform/mbed_debug.h"
boonshen 0:a35c40f49345 67
boonshen 0:a35c40f49345 68 // mbed Peripheral components
boonshen 0:a35c40f49345 69 #include "drivers/DigitalIn.h"
boonshen 0:a35c40f49345 70 #include "drivers/DigitalOut.h"
boonshen 0:a35c40f49345 71 #include "drivers/DigitalInOut.h"
boonshen 0:a35c40f49345 72 #include "drivers/BusIn.h"
boonshen 0:a35c40f49345 73 #include "drivers/BusOut.h"
boonshen 0:a35c40f49345 74 #include "drivers/BusInOut.h"
boonshen 0:a35c40f49345 75 #include "drivers/PortIn.h"
boonshen 0:a35c40f49345 76 #include "drivers/PortInOut.h"
boonshen 0:a35c40f49345 77 #include "drivers/PortOut.h"
boonshen 0:a35c40f49345 78 #include "drivers/AnalogIn.h"
boonshen 0:a35c40f49345 79 #include "drivers/AnalogOut.h"
boonshen 0:a35c40f49345 80 #include "drivers/PwmOut.h"
boonshen 0:a35c40f49345 81 #include "drivers/Serial.h"
boonshen 0:a35c40f49345 82 #include "drivers/SPI.h"
boonshen 0:a35c40f49345 83 #include "drivers/SPISlave.h"
boonshen 0:a35c40f49345 84 #include "drivers/I2C.h"
boonshen 0:a35c40f49345 85 #include "drivers/I2CSlave.h"
boonshen 0:a35c40f49345 86 #include "drivers/Ethernet.h"
boonshen 0:a35c40f49345 87 #include "drivers/CAN.h"
boonshen 0:a35c40f49345 88 #include "drivers/RawSerial.h"
boonshen 0:a35c40f49345 89 #include "drivers/UARTSerial.h"
boonshen 0:a35c40f49345 90 #include "drivers/FlashIAP.h"
boonshen 0:a35c40f49345 91
boonshen 0:a35c40f49345 92 // mbed Internal components
boonshen 0:a35c40f49345 93 #include "drivers/Timer.h"
boonshen 0:a35c40f49345 94 #include "drivers/Ticker.h"
boonshen 0:a35c40f49345 95 #include "drivers/Timeout.h"
boonshen 0:a35c40f49345 96 #include "drivers/LowPowerTimeout.h"
boonshen 0:a35c40f49345 97 #include "drivers/LowPowerTicker.h"
boonshen 0:a35c40f49345 98 #include "drivers/LowPowerTimer.h"
boonshen 0:a35c40f49345 99 #include "platform/LocalFileSystem.h"
boonshen 0:a35c40f49345 100 #include "drivers/InterruptIn.h"
boonshen 0:a35c40f49345 101 #include "platform/mbed_wait_api.h"
boonshen 0:a35c40f49345 102 #include "hal/sleep_api.h"
boonshen 0:a35c40f49345 103 #include "platform/mbed_sleep.h"
boonshen 0:a35c40f49345 104 #include "platform/mbed_rtc_time.h"
boonshen 0:a35c40f49345 105 #include "platform/mbed_poll.h"
boonshen 0:a35c40f49345 106 #include "platform/ATCmdParser.h"
boonshen 0:a35c40f49345 107 #include "platform/FileSystemHandle.h"
boonshen 0:a35c40f49345 108 #include "platform/FileHandle.h"
boonshen 0:a35c40f49345 109 #include "platform/DirHandle.h"
boonshen 0:a35c40f49345 110 #include "platform/CriticalSectionLock.h"
boonshen 0:a35c40f49345 111 #include "platform/DeepSleepLock.h"
boonshen 0:a35c40f49345 112
boonshen 0:a35c40f49345 113 // mbed Non-hardware components
boonshen 0:a35c40f49345 114 #include "platform/Callback.h"
boonshen 0:a35c40f49345 115 #include "platform/FunctionPointer.h"
boonshen 0:a35c40f49345 116
boonshen 0:a35c40f49345 117 using namespace mbed;
boonshen 0:a35c40f49345 118 using namespace std;
boonshen 0:a35c40f49345 119
boonshen 0:a35c40f49345 120 #endif