12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152 |
- #ifndef __MAIN_H
- #define __MAIN_H
- #ifdef __cplusplus
- extern "C" {
- #endif
- /* Includes ------------------------------------------------------------------*/
- #include "stm32f2xx_hal.h"
- #include "log.h"
- #include "malloc.h"
- #include "stdio.h"
- #include "cmsis_os.h"
- /* Exported types ------------------------------------------------------------*/
- /* Exported constants --------------------------------------------------------*/
- #define USE_DHCP /* enable DHCP, if disabled static address is used*/
-
- /*Static IP ADDRESS*/
- #define IP_ADDR0 (uint8_t) 192
- #define IP_ADDR1 (uint8_t) 168
- #define IP_ADDR2 (uint8_t) 2
- #define IP_ADDR3 (uint8_t) 10
-
- /*NETMASK*/
- #define NETMASK_ADDR0 (uint8_t) 255
- #define NETMASK_ADDR1 (uint8_t) 255
- #define NETMASK_ADDR2 (uint8_t) 255
- #define NETMASK_ADDR3 (uint8_t) 0
- /*Gateway Address*/
- #define GW_ADDR0 (uint8_t) 192
- #define GW_ADDR1 (uint8_t) 168
- #define GW_ADDR2 (uint8_t) 2
- #define GW_ADDR3 (uint8_t) 1
- /* Exported macro ------------------------------------------------------------*/
- /* Exported functions ------------------------------------------------------- */
- void Error_Handler(void);
- void set_ipaddr(char* buf);
- extern char gatewayId[11];
- #ifdef __cplusplus
- }
- #endif
- #endif /* __MAIN_H */
|