fft

Dependencies:   BSP_DISCO_F746NG SDFileSystem_Warning_Fixed

Committer:
MikamiUitOpen
Date:
Sun Oct 09 10:11:14 2016 +0000
Revision:
0:3e46577dc273
1

Who changed what in which revision?

UserRevisionLine numberNew contents of line
MikamiUitOpen 0:3e46577dc273 1 /* mbed Microcontroller Library
MikamiUitOpen 0:3e46577dc273 2 * Copyright (c) 2006-2013 ARM Limited
MikamiUitOpen 0:3e46577dc273 3 *
MikamiUitOpen 0:3e46577dc273 4 * Licensed under the Apache License, Version 2.0 (the "License");
MikamiUitOpen 0:3e46577dc273 5 * you may not use this file except in compliance with the License.
MikamiUitOpen 0:3e46577dc273 6 * You may obtain a copy of the License at
MikamiUitOpen 0:3e46577dc273 7 *
MikamiUitOpen 0:3e46577dc273 8 * http://www.apache.org/licenses/LICENSE-2.0
MikamiUitOpen 0:3e46577dc273 9 *
MikamiUitOpen 0:3e46577dc273 10 * Unless required by applicable law or agreed to in writing, software
MikamiUitOpen 0:3e46577dc273 11 * distributed under the License is distributed on an "AS IS" BASIS,
MikamiUitOpen 0:3e46577dc273 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
MikamiUitOpen 0:3e46577dc273 13 * See the License for the specific language governing permissions and
MikamiUitOpen 0:3e46577dc273 14 * limitations under the License.
MikamiUitOpen 0:3e46577dc273 15 */
MikamiUitOpen 0:3e46577dc273 16 #ifndef MBED_INTERFACE_H
MikamiUitOpen 0:3e46577dc273 17 #define MBED_INTERFACE_H
MikamiUitOpen 0:3e46577dc273 18
MikamiUitOpen 0:3e46577dc273 19 #include "device.h"
MikamiUitOpen 0:3e46577dc273 20
MikamiUitOpen 0:3e46577dc273 21 /* Mbed interface mac address
MikamiUitOpen 0:3e46577dc273 22 * if MBED_MAC_ADD_x are zero, interface uid sets mac address,
MikamiUitOpen 0:3e46577dc273 23 * otherwise MAC_ADD_x are used.
MikamiUitOpen 0:3e46577dc273 24 */
MikamiUitOpen 0:3e46577dc273 25 #define MBED_MAC_ADDR_INTERFACE 0x00
MikamiUitOpen 0:3e46577dc273 26 #define MBED_MAC_ADDR_0 MBED_MAC_ADDR_INTERFACE
MikamiUitOpen 0:3e46577dc273 27 #define MBED_MAC_ADDR_1 MBED_MAC_ADDR_INTERFACE
MikamiUitOpen 0:3e46577dc273 28 #define MBED_MAC_ADDR_2 MBED_MAC_ADDR_INTERFACE
MikamiUitOpen 0:3e46577dc273 29 #define MBED_MAC_ADDR_3 MBED_MAC_ADDR_INTERFACE
MikamiUitOpen 0:3e46577dc273 30 #define MBED_MAC_ADDR_4 MBED_MAC_ADDR_INTERFACE
MikamiUitOpen 0:3e46577dc273 31 #define MBED_MAC_ADDR_5 MBED_MAC_ADDR_INTERFACE
MikamiUitOpen 0:3e46577dc273 32 #define MBED_MAC_ADDRESS_SUM (MBED_MAC_ADDR_0 | MBED_MAC_ADDR_1 | MBED_MAC_ADDR_2 | MBED_MAC_ADDR_3 | MBED_MAC_ADDR_4 | MBED_MAC_ADDR_5)
MikamiUitOpen 0:3e46577dc273 33
MikamiUitOpen 0:3e46577dc273 34 #ifdef __cplusplus
MikamiUitOpen 0:3e46577dc273 35 extern "C" {
MikamiUitOpen 0:3e46577dc273 36 #endif
MikamiUitOpen 0:3e46577dc273 37
MikamiUitOpen 0:3e46577dc273 38 #if DEVICE_SEMIHOST
MikamiUitOpen 0:3e46577dc273 39
MikamiUitOpen 0:3e46577dc273 40 /** Functions to control the mbed interface
MikamiUitOpen 0:3e46577dc273 41 *
MikamiUitOpen 0:3e46577dc273 42 * mbed Microcontrollers have a built-in interface to provide functionality such as
MikamiUitOpen 0:3e46577dc273 43 * drag-n-drop download, reset, serial-over-usb, and access to the mbed local file
MikamiUitOpen 0:3e46577dc273 44 * system. These functions provide means to control the interface suing semihost
MikamiUitOpen 0:3e46577dc273 45 * calls it supports.
MikamiUitOpen 0:3e46577dc273 46 */
MikamiUitOpen 0:3e46577dc273 47
MikamiUitOpen 0:3e46577dc273 48 /** Determine whether the mbed interface is connected, based on whether debug is enabled
MikamiUitOpen 0:3e46577dc273 49 *
MikamiUitOpen 0:3e46577dc273 50 * @returns
MikamiUitOpen 0:3e46577dc273 51 * 1 if interface is connected,
MikamiUitOpen 0:3e46577dc273 52 * 0 otherwise
MikamiUitOpen 0:3e46577dc273 53 */
MikamiUitOpen 0:3e46577dc273 54 int mbed_interface_connected(void);
MikamiUitOpen 0:3e46577dc273 55
MikamiUitOpen 0:3e46577dc273 56 /** Instruct the mbed interface to reset, as if the reset button had been pressed
MikamiUitOpen 0:3e46577dc273 57 *
MikamiUitOpen 0:3e46577dc273 58 * @returns
MikamiUitOpen 0:3e46577dc273 59 * 1 if successful,
MikamiUitOpen 0:3e46577dc273 60 * 0 otherwise (e.g. interface not present)
MikamiUitOpen 0:3e46577dc273 61 */
MikamiUitOpen 0:3e46577dc273 62 int mbed_interface_reset(void);
MikamiUitOpen 0:3e46577dc273 63
MikamiUitOpen 0:3e46577dc273 64 /** This will disconnect the debug aspect of the interface, so semihosting will be disabled.
MikamiUitOpen 0:3e46577dc273 65 * The interface will still support the USB serial aspect
MikamiUitOpen 0:3e46577dc273 66 *
MikamiUitOpen 0:3e46577dc273 67 * @returns
MikamiUitOpen 0:3e46577dc273 68 * 0 if successful,
MikamiUitOpen 0:3e46577dc273 69 * -1 otherwise (e.g. interface not present)
MikamiUitOpen 0:3e46577dc273 70 */
MikamiUitOpen 0:3e46577dc273 71 int mbed_interface_disconnect(void);
MikamiUitOpen 0:3e46577dc273 72
MikamiUitOpen 0:3e46577dc273 73 /** This will disconnect the debug aspect of the interface, and if the USB cable is not
MikamiUitOpen 0:3e46577dc273 74 * connected, also power down the interface. If the USB cable is connected, the interface
MikamiUitOpen 0:3e46577dc273 75 * will remain powered up and visible to the host
MikamiUitOpen 0:3e46577dc273 76 *
MikamiUitOpen 0:3e46577dc273 77 * @returns
MikamiUitOpen 0:3e46577dc273 78 * 0 if successful,
MikamiUitOpen 0:3e46577dc273 79 * -1 otherwise (e.g. interface not present)
MikamiUitOpen 0:3e46577dc273 80 */
MikamiUitOpen 0:3e46577dc273 81 int mbed_interface_powerdown(void);
MikamiUitOpen 0:3e46577dc273 82
MikamiUitOpen 0:3e46577dc273 83 /** This returns a string containing the 32-character UID of the mbed interface
MikamiUitOpen 0:3e46577dc273 84 * This is a weak function that can be overwritten if required
MikamiUitOpen 0:3e46577dc273 85 *
MikamiUitOpen 0:3e46577dc273 86 * @param uid A 33-byte array to write the null terminated 32-byte string
MikamiUitOpen 0:3e46577dc273 87 *
MikamiUitOpen 0:3e46577dc273 88 * @returns
MikamiUitOpen 0:3e46577dc273 89 * 0 if successful,
MikamiUitOpen 0:3e46577dc273 90 * -1 otherwise (e.g. interface not present)
MikamiUitOpen 0:3e46577dc273 91 */
MikamiUitOpen 0:3e46577dc273 92 int mbed_interface_uid(char *uid);
MikamiUitOpen 0:3e46577dc273 93
MikamiUitOpen 0:3e46577dc273 94 #endif
MikamiUitOpen 0:3e46577dc273 95
MikamiUitOpen 0:3e46577dc273 96 /** This returns a unique 6-byte MAC address, based on the interface UID
MikamiUitOpen 0:3e46577dc273 97 * If the interface is not present, it returns a default fixed MAC address (00:02:F7:F0:00:00)
MikamiUitOpen 0:3e46577dc273 98 *
MikamiUitOpen 0:3e46577dc273 99 * This is a weak function that can be overwritten if you want to provide your own mechanism to
MikamiUitOpen 0:3e46577dc273 100 * provide a MAC address.
MikamiUitOpen 0:3e46577dc273 101 *
MikamiUitOpen 0:3e46577dc273 102 * @param mac A 6-byte array to write the MAC address
MikamiUitOpen 0:3e46577dc273 103 */
MikamiUitOpen 0:3e46577dc273 104 void mbed_mac_address(char *mac);
MikamiUitOpen 0:3e46577dc273 105
MikamiUitOpen 0:3e46577dc273 106 /** Cause the mbed to flash the BLOD (Blue LEDs Of Death) sequence
MikamiUitOpen 0:3e46577dc273 107 */
MikamiUitOpen 0:3e46577dc273 108 void mbed_die(void);
MikamiUitOpen 0:3e46577dc273 109
MikamiUitOpen 0:3e46577dc273 110 #ifdef __cplusplus
MikamiUitOpen 0:3e46577dc273 111 }
MikamiUitOpen 0:3e46577dc273 112 #endif
MikamiUitOpen 0:3e46577dc273 113
MikamiUitOpen 0:3e46577dc273 114 #endif