Настройка подключения библиотек.

This commit is contained in:
MaD_CaT
2024-09-09 15:02:48 +03:00
parent 51d31651fc
commit ee17ebfb76
32 changed files with 269 additions and 52503 deletions

View File

@@ -25,13 +25,17 @@
#ifdef __cplusplus
extern "C" {
#endif
#include <stdint.h>
/* Includes ------------------------------------------------------------------*/
#include "stm32f4xx_hal.h"
/* Private includes ----------------------------------------------------------*/
/* USER CODE BEGIN Includes */
#include <string.h>
#include "lwip.h"
#include "lwip/udp.h"
#include "lwip/debug.h"
/* USER CODE END Includes */
/* Exported types ------------------------------------------------------------*/
@@ -45,6 +49,7 @@ typedef struct rcv_msg
_Bool clnt_con;
unsigned char rx_buf[2048];
uint16_t length;
uint16_t con_timeout;
}_rcv_msg;
/* USER CODE END ET */

View File

@@ -5,6 +5,8 @@
* Author: user
*/
#include "stdint.h"
#ifndef INC_PRIBORS_H_
#define INC_PRIBORS_H_
@@ -37,6 +39,23 @@
#define IP_PRIBOR_PRDK4 "10.1.1.43"
#define IP_PRIBOR_UF "10.1.1.52"
#define PORT_PRIBOR_PRDN1 11
#define PORT_PRIBOR_PRDN2 21
#define PORT_PRIBOR_PRDN3 31
#define PORT_PRIBOR_PRDN4 41
#define PORT_PRIBOR_PRDV1 12
#define PORT_PRIBOR_PRDV2 22
#define PORT_PRIBOR_PRDV3 32
#define PORT_PRIBOR_PRDV4 42
#define PORT_PRIBOR_PRDK1 13
#define PORT_PRIBOR_PRDK2 23
#define PORT_PRIBOR_PRDK3 33
#define PORT_PRIBOR_PRDK4 43
#define PORT_PRIBOR_UF 52
uint32_t get_ip(void);
uint16_t get_port(void);
uint16_t set_status(unsigned char *buf);
#endif /* INC_PRIBORS_H_ */