1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586 |
- /**
- ******************************************************************************
- * @file main.h
- * @author MCD Application Team
- * @version V1.0.0
- * @date 31-October-2011
- * @brief This file contains all the functions prototypes for the main.c
- * file.
- ******************************************************************************
- * @attention
- *
- * THE PRESENT FIRMWARE WHICH IS FOR GUIDANCE ONLY AIMS AT PROVIDING CUSTOMERS
- * WITH CODING INFORMATION REGARDING THEIR PRODUCTS IN ORDER FOR THEM TO SAVE
- * TIME. AS A RESULT, STMICROELECTRONICS SHALL NOT BE HELD LIABLE FOR ANY
- * DIRECT, INDIRECT OR CONSEQUENTIAL DAMAGES WITH RESPECT TO ANY CLAIMS ARISING
- * FROM THE CONTENT OF SUCH FIRMWARE AND/OR THE USE MADE BY CUSTOMERS OF THE
- * CODING INFORMATION CONTAINED HEREIN IN CONNECTION WITH THEIR PRODUCTS.
- *
- * <h2><center>© Portions COPYRIGHT 2011 STMicroelectronics</center></h2>
- ******************************************************************************
- */
- /* Define to prevent recursive inclusion -------------------------------------*/
- #ifndef __MAIN_H
- #define __MAIN_H
- #ifdef __cplusplus
- extern "C" {
- #endif
- /* Includes ------------------------------------------------------------------*/
- #include "stm32f4xx.h"
- #include "stm32f4x7_eth_bsp.h"
- #include <stdlib.h>
- #include <stdint.h>
- #if defined ( __GNUC__ )
- #include <unistd.h>
- #endif
- #include <stdbool.h>
- #include <string.h>
- //#include "mbedtls/certs.h"
- /* MII and RMII mode selection, for STM324xG-EVAL Board(MB786) RevB ***********/
- #define RMII_MODE
- #ifdef USART_DEBUG_ENABLE
- #define PRINT_USART(x) printf(x)
- #else
- #define PRINT_USART(x)
- #endif
- #define tn_task_sleep(x) vTaskDelay(x)
- #if defined ( __GNUC__ )
- #ifdef __packed
- #undef __packed
- #endif
- #define __packed __attribute__(( packed ))
- #endif
-
- #define OUR_DEBUG
- #ifdef OUR_DEBUG
- #define DBG
- #else
- #define DBG if (0)
- #endif
-
- /* Exported macro ------------------------------------------------------------*/
- /* Exported functions ------------------------------------------------------- */
- void Time_Update(void);
- void Delay(uint32_t nCount);
- #ifdef __cplusplus
- }
- #endif
- #endif /* __MAIN_H */
- /*********** Portions COPYRIGHT 2012 Embest Tech. Co., Ltd.*****END OF FILE****/
|