mirror of https://github.com/ARMmbed/mbed-os.git
Avoid compilation if target doesn't support EMAC
parent
99e4f228b5
commit
af8ab49a74
|
@ -1,4 +1,5 @@
|
||||||
/* Copyright (c) 2017 ARM Limited
|
/* Copyright (c) 2017-2019 ARM Limited
|
||||||
|
* Copyright (c) 2017-2019 STMicroelectronics
|
||||||
* SPDX-License-Identifier: Apache-2.0
|
* SPDX-License-Identifier: Apache-2.0
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
@ -14,6 +15,8 @@
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#if DEVICE_EMAC
|
||||||
|
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
|
||||||
#include "cmsis_os.h"
|
#include "cmsis_os.h"
|
||||||
|
@ -1035,3 +1038,5 @@ void HAL_ETH_MACErrorCallback(ETH_HandleTypeDef *heth)
|
||||||
"Error from ethernet HAL (HAL_ETH_MACErrorCallback)\n");
|
"Error from ethernet HAL (HAL_ETH_MACErrorCallback)\n");
|
||||||
}
|
}
|
||||||
#endif // ETH_IP_VERSION_V2
|
#endif // ETH_IP_VERSION_V2
|
||||||
|
|
||||||
|
#endif /* DEVICE_EMAC */
|
||||||
|
|
Loading…
Reference in New Issue