Modify the file main.cpp for M487

Committer:
shliu1
Date:
Fri Sep 29 05:44:02 2017 +0000
Revision:
0:a67fc999dd68
main.cpp adds the setting of TARGET_NUMAKER_PFM_M487 for M487

Who changed what in which revision?

UserRevisionLine numberNew contents of line
shliu1 0:a67fc999dd68 1 /* mbed Microcontroller Library
shliu1 0:a67fc999dd68 2 * Copyright (c) 2016 ARM Limited
shliu1 0:a67fc999dd68 3 *
shliu1 0:a67fc999dd68 4 * Licensed under the Apache License, Version 2.0 (the "License");
shliu1 0:a67fc999dd68 5 * you may not use this file except in compliance with the License.
shliu1 0:a67fc999dd68 6 * You may obtain a copy of the License at
shliu1 0:a67fc999dd68 7 *
shliu1 0:a67fc999dd68 8 * http://www.apache.org/licenses/LICENSE-2.0
shliu1 0:a67fc999dd68 9 *
shliu1 0:a67fc999dd68 10 * Unless required by applicable law or agreed to in writing, software
shliu1 0:a67fc999dd68 11 * distributed under the License is distributed on an "AS IS" BASIS,
shliu1 0:a67fc999dd68 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
shliu1 0:a67fc999dd68 13 * See the License for the specific language governing permissions and
shliu1 0:a67fc999dd68 14 * limitations under the License.
shliu1 0:a67fc999dd68 15 */
shliu1 0:a67fc999dd68 16 #ifndef NUBRICK_MASTER_KEYS_H
shliu1 0:a67fc999dd68 17 #define NUBRICK_MASTER_KEYS_H
shliu1 0:a67fc999dd68 18
shliu1 0:a67fc999dd68 19 #include "mbed.h"
shliu1 0:a67fc999dd68 20 #include "NuBrickMaster.h"
shliu1 0:a67fc999dd68 21
shliu1 0:a67fc999dd68 22
shliu1 0:a67fc999dd68 23 /** A NuMaker Brick I2C master, used for communicating with NuMaker Brick I2C slave module Keys
shliu1 0:a67fc999dd68 24 *
shliu1 0:a67fc999dd68 25 * @Note Synchronization level: Thread safe
shliu1 0:a67fc999dd68 26 *
shliu1 0:a67fc999dd68 27 * @details Support fields for access through [] operator:
shliu1 0:a67fc999dd68 28 * - feature.sleep_period
shliu1 0:a67fc999dd68 29 * - input.key_state
shliu1 0:a67fc999dd68 30 */
shliu1 0:a67fc999dd68 31 class NuBrickMasterKeys : public NuBrickMaster {
shliu1 0:a67fc999dd68 32
shliu1 0:a67fc999dd68 33 public:
shliu1 0:a67fc999dd68 34
shliu1 0:a67fc999dd68 35 /** Create an I2C interface, connected to the specified pins
shliu1 0:a67fc999dd68 36 *
shliu1 0:a67fc999dd68 37 * @param i2c I2C object
shliu1 0:a67fc999dd68 38 */
shliu1 0:a67fc999dd68 39 NuBrickMasterKeys(I2C &i2c, bool debug);
shliu1 0:a67fc999dd68 40
shliu1 0:a67fc999dd68 41 virtual ~NuBrickMasterKeys() {
shliu1 0:a67fc999dd68 42 // Do nothing
shliu1 0:a67fc999dd68 43 }
shliu1 0:a67fc999dd68 44 };
shliu1 0:a67fc999dd68 45
shliu1 0:a67fc999dd68 46 #endif