Rev 2 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
| Rev 2 | Rev 5 | ||
|---|---|---|---|
| Line 1... | Line 1... | ||
| 1 | /** |
1 | /** |
| 2 | ****************************************************************************** |
2 | ****************************************************************************** |
| 3 | * @file stm32f1xx_hal_eth.h |
3 | * @file stm32f1xx_hal_eth.h |
| 4 | * @author MCD Application Team |
4 | * @author MCD Application Team |
| 5 | * @version V1.0.1 |
5 | * @version V1.0.4 |
| 6 | * @date 31-July-2015 |
6 | * @date 29-April-2016 |
| 7 | * @brief Header file of ETH HAL module. |
7 | * @brief Header file of ETH HAL module. |
| 8 | ****************************************************************************** |
8 | ****************************************************************************** |
| 9 | * @attention |
9 | * @attention |
| 10 | * |
10 | * |
| 11 | * <h2><center>© COPYRIGHT(c) 2015 STMicroelectronics</center></h2> |
11 | * <h2><center>© COPYRIGHT(c) 2016 STMicroelectronics</center></h2> |
| 12 | * |
12 | * |
| 13 | * Redistribution and use in source and binary forms, with or without modification, |
13 | * Redistribution and use in source and binary forms, with or without modification, |
| 14 | * are permitted provided that the following conditions are met: |
14 | * are permitted provided that the following conditions are met: |
| 15 | * 1. Redistributions of source code must retain the above copyright notice, |
15 | * 1. Redistributions of source code must retain the above copyright notice, |
| 16 | * this list of conditions and the following disclaimer. |
16 | * this list of conditions and the following disclaimer. |
| Line 2014... | Line 2014... | ||
| 2014 | 2014 | ||
| 2015 | /** |
2015 | /** |
| 2016 | * @brief Enables rising/falling edge trigger to the ETH External interrupt line. |
2016 | * @brief Enables rising/falling edge trigger to the ETH External interrupt line. |
| 2017 | * @retval None |
2017 | * @retval None |
| 2018 | */ |
2018 | */ |
| 2019 | #define __HAL_ETH_WAKEUP_EXTI_ENABLE_FALLINGRISING_TRIGGER() EXTI->RTSR |= ETH_EXTI_LINE_WAKEUP;\ |
2019 | #define __HAL_ETH_WAKEUP_EXTI_ENABLE_FALLINGRISING_TRIGGER() \ |
| - | 2020 | do{ \ |
|
| - | 2021 | EXTI->RTSR |= ETH_EXTI_LINE_WAKEUP;\ |
|
| 2020 | EXTI->FTSR |= ETH_EXTI_LINE_WAKEUP |
2022 | EXTI->FTSR |= ETH_EXTI_LINE_WAKEUP;\ |
| - | 2023 | } while(0) |
|
| 2021 | 2024 | ||
| 2022 | /** |
2025 | /** |
| 2023 | * @brief Disables rising/falling edge trigger to the ETH External interrupt line. |
2026 | * @brief Disables rising/falling edge trigger to the ETH External interrupt line. |
| 2024 | * @retval None |
2027 | * @retval None |
| 2025 | */ |
2028 | */ |
| 2026 | #define __HAL_ETH_WAKEUP_EXTI_DISABLE_FALLINGRISING_TRIGGER() EXTI->RTSR &= ~(ETH_EXTI_LINE_WAKEUP);\ |
2029 | #define __HAL_ETH_WAKEUP_EXTI_DISABLE_FALLINGRISING_TRIGGER() \ |
| - | 2030 | do{ \ |
|
| - | 2031 | EXTI->RTSR &= ~(ETH_EXTI_LINE_WAKEUP);\ |
|
| 2027 | EXTI->FTSR &= ~(ETH_EXTI_LINE_WAKEUP) |
2032 | EXTI->FTSR &= ~(ETH_EXTI_LINE_WAKEUP);\ |
| - | 2033 | } while(0) |
|
| 2028 | 2034 | ||
| 2029 | /** |
2035 | /** |
| 2030 | * @brief Generate a Software interrupt on selected EXTI line. |
2036 | * @brief Generate a Software interrupt on selected EXTI line. |
| 2031 | * @retval None. |
2037 | * @retval None. |
| 2032 | */ |
2038 | */ |