Avoid compilation if target doesn't support EMAC

pull/11536/head
jeromecoutant 2019-10-07 13:50:02 +02:00
parent 99e4f228b5
commit af8ab49a74
1 changed files with 6 additions and 1 deletions

View File

@ -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 */