mbed-drivers
mbed_interface.h
1 /*
2  * Copyright (c) 2006-2016, ARM Limited, All Rights Reserved
3  * SPDX-License-Identifier: Apache-2.0
4  *
5  * Licensed under the Apache License, Version 2.0 (the "License"); you may
6  * not use this file except in compliance with the License.
7  * You may obtain a copy of the License at
8  *
9  * http://www.apache.org/licenses/LICENSE-2.0
10  *
11  * Unless required by applicable law or agreed to in writing, software
12  * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
13  * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  * See the License for the specific language governing permissions and
15  * limitations under the License.
16  */
17 #ifndef MBED_INTERFACE_H
18 #define MBED_INTERFACE_H
19 
20 #include "device.h"
21 
22 /* Mbed interface mac address
23  * if MBED_MAC_ADD_x are zero, interface uid sets mac address,
24  * otherwise MAC_ADD_x are used.
25  */
26 #define MBED_MAC_ADDR_INTERFACE 0x00
27 #define MBED_MAC_ADDR_0 MBED_MAC_ADDR_INTERFACE
28 #define MBED_MAC_ADDR_1 MBED_MAC_ADDR_INTERFACE
29 #define MBED_MAC_ADDR_2 MBED_MAC_ADDR_INTERFACE
30 #define MBED_MAC_ADDR_3 MBED_MAC_ADDR_INTERFACE
31 #define MBED_MAC_ADDR_4 MBED_MAC_ADDR_INTERFACE
32 #define MBED_MAC_ADDR_5 MBED_MAC_ADDR_INTERFACE
33 #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)
34 
35 #ifdef __cplusplus
36 extern "C" {
37 #endif
38 
47 void mbed_mac_address(char *mac);
48 
51 void mbed_die(void);
52 
53 #ifdef __cplusplus
54 }
55 #endif
56 
57 #endif