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) 2015 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_LOWPOWERTIMER_H
boonshen 0:a35c40f49345 17 #define MBED_LOWPOWERTIMER_H
boonshen 0:a35c40f49345 18
boonshen 0:a35c40f49345 19 #include "platform/platform.h"
boonshen 0:a35c40f49345 20 #include "drivers/Timer.h"
boonshen 0:a35c40f49345 21 #include "platform/NonCopyable.h"
boonshen 0:a35c40f49345 22
boonshen 0:a35c40f49345 23 #if defined (DEVICE_LOWPOWERTIMER) || defined(DOXYGEN_ONLY)
boonshen 0:a35c40f49345 24
boonshen 0:a35c40f49345 25 #include "hal/lp_ticker_api.h"
boonshen 0:a35c40f49345 26
boonshen 0:a35c40f49345 27 namespace mbed {
boonshen 0:a35c40f49345 28 /** \addtogroup drivers */
boonshen 0:a35c40f49345 29
boonshen 0:a35c40f49345 30 /** Low power timer
boonshen 0:a35c40f49345 31 *
boonshen 0:a35c40f49345 32 * @note Synchronization level: Interrupt safe
boonshen 0:a35c40f49345 33 * @ingroup drivers
boonshen 0:a35c40f49345 34 */
boonshen 0:a35c40f49345 35 class LowPowerTimer : public Timer, private NonCopyable<LowPowerTimer> {
boonshen 0:a35c40f49345 36
boonshen 0:a35c40f49345 37 public:
boonshen 0:a35c40f49345 38 LowPowerTimer() : Timer(get_lp_ticker_data()) {
boonshen 0:a35c40f49345 39 }
boonshen 0:a35c40f49345 40
boonshen 0:a35c40f49345 41 };
boonshen 0:a35c40f49345 42
boonshen 0:a35c40f49345 43 } // namespace mbed
boonshen 0:a35c40f49345 44
boonshen 0:a35c40f49345 45 #endif
boonshen 0:a35c40f49345 46
boonshen 0:a35c40f49345 47 #endif