main.h 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. /**
  2. ******************************************************************************
  3. * @file main.h
  4. * @author MCD Application Team
  5. * @version V1.0.0
  6. * @date 31-October-2011
  7. * @brief This file contains all the functions prototypes for the main.c
  8. * file.
  9. ******************************************************************************
  10. * @attention
  11. *
  12. * THE PRESENT FIRMWARE WHICH IS FOR GUIDANCE ONLY AIMS AT PROVIDING CUSTOMERS
  13. * WITH CODING INFORMATION REGARDING THEIR PRODUCTS IN ORDER FOR THEM TO SAVE
  14. * TIME. AS A RESULT, STMICROELECTRONICS SHALL NOT BE HELD LIABLE FOR ANY
  15. * DIRECT, INDIRECT OR CONSEQUENTIAL DAMAGES WITH RESPECT TO ANY CLAIMS ARISING
  16. * FROM THE CONTENT OF SUCH FIRMWARE AND/OR THE USE MADE BY CUSTOMERS OF THE
  17. * CODING INFORMATION CONTAINED HEREIN IN CONNECTION WITH THEIR PRODUCTS.
  18. *
  19. * <h2><center>&copy; Portions COPYRIGHT 2011 STMicroelectronics</center></h2>
  20. ******************************************************************************
  21. */
  22. /* Define to prevent recursive inclusion -------------------------------------*/
  23. #ifndef __MAIN_H
  24. #define __MAIN_H
  25. #ifdef __cplusplus
  26. extern "C" {
  27. #endif
  28. /* Includes ------------------------------------------------------------------*/
  29. #include "stm32f4xx.h"
  30. #include "stm32f4x7_eth_bsp.h"
  31. #include <stdlib.h>
  32. #include <stdint.h>
  33. #include <unistd.h>
  34. #include <stdbool.h>
  35. #include <string.h>
  36. /* MII and RMII mode selection, for STM324xG-EVAL Board(MB786) RevB ***********/
  37. #define RMII_MODE
  38. #ifdef USART_DEBUG_ENABLE
  39. #define PRINT_USART(x) printf(x)
  40. #else
  41. #define PRINT_USART(x)
  42. #endif
  43. #define tn_task_sleep(x) vTaskDelay(x)
  44. #ifdef __packed
  45. #undef __packed
  46. #endif
  47. #define __packed __attribute__(( packed ))
  48. //#define DEBUG
  49. /*#ifdef DEBUG
  50. #define DBG
  51. #else*/
  52. #define DBG if (0)
  53. //#endif
  54. /* Exported macro ------------------------------------------------------------*/
  55. /* Exported functions ------------------------------------------------------- */
  56. void Time_Update(void);
  57. void Delay(uint32_t nCount);
  58. #ifdef __cplusplus
  59. }
  60. #endif
  61. #endif /* __MAIN_H */
  62. /*********** Portions COPYRIGHT 2012 Embest Tech. Co., Ltd.*****END OF FILE****/