You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
526 B
29 lines
526 B
#pragma once
|
|
#include <stdbool.h>
|
|
#include <stdint.h>
|
|
|
|
#define SERVICE_PORT 8880
|
|
#define OBTAINING_IP_MODE_STATIC 0
|
|
#define OBTAINING_IP_MODE_DHCP 1
|
|
|
|
typedef struct
|
|
{
|
|
uint32_t mask;
|
|
uint32_t obtaining_ip_mode;
|
|
|
|
uint32_t ip;
|
|
uint32_t gw;
|
|
uint32_t netmask;
|
|
uint32_t localport;
|
|
|
|
uint32_t config_writed_flag;
|
|
|
|
// uint32_t
|
|
} config_t;
|
|
|
|
void config_init(void);
|
|
void config_dump_config(void);
|
|
config_t *config_get(void);
|
|
bool config_is_first_init(void);
|
|
void config_flash_read(void);
|
|
int8_t config_flash_write(void);
|