45 lines
1.2 KiB
C
45 lines
1.2 KiB
C
/**
|
|
* @file httpUtil.h
|
|
* @brief Header File for HTTP Server Utilities
|
|
* @version 1.0
|
|
* @date 2014/07/15
|
|
* @par Revision
|
|
* 2014/07/15 - 1.0 Release
|
|
* @author
|
|
* \n\n @par Copyright (C) 1998 - 2014 WIZnet. All rights reserved.
|
|
*/
|
|
|
|
#ifndef __HTTPUTIL_H__
|
|
#define __HTTPUTIL_H__
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
#include "httpServer.h"
|
|
#include "httpParser.h"
|
|
#include "modbusRtuMaster.h"
|
|
#include "main.h"
|
|
#define MAX_DATA_VALUES 10
|
|
#define FLASH_SAVE_SIZE 100
|
|
#define MODBUS_SAVE_START 0
|
|
|
|
#define EDIT_FLASH_ADDRESS 0x0807F800
|
|
|
|
//extern rtumST readST[10];
|
|
//extern rtumST writeST[10];
|
|
void setupRtumST(rtumST readST[10], rtumST writeST[10]);
|
|
HAL_StatusTypeDef Write_To_Flash_uint16(uint32_t startAddress, uint16_t *data, uint32_t dataLength);
|
|
|
|
uint8_t http_get_cgi_handler(uint8_t * uri_name, uint8_t * buf, uint32_t * file_len);
|
|
uint8_t http_post_cgi_handler(uint8_t * uri_name, st_http_request * p_http_request, uint8_t * buf, uint32_t * file_len);
|
|
|
|
uint8_t predefined_get_cgi_processor(uint8_t * uri_name, uint8_t * buf, uint16_t * len);
|
|
uint8_t predefined_set_cgi_processor(uint8_t * uri_name, uint8_t * uri, uint8_t * buf, uint16_t * len);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif
|