#49 Adding support for C++

This commit is contained in:
justinkim
2018-09-10 09:07:08 +09:00
parent 28e8a16b54
commit c69d27b875
23 changed files with 189 additions and 1 deletions

View File

@ -40,6 +40,11 @@
#ifndef _W5100_H_
#define _W5100_H_
#ifdef __cplusplus
extern <EFBFBD><EFBFBD>C<EFBFBD><EFBFBD> {
#endif
#include <stdint.h>
#include "wizchip_conf.h"
@ -1850,6 +1855,10 @@ void wiz_recv_ignore(uint8_t sn, uint16_t len);
#endif
/// @endcond
#ifdef __cplusplus
}
#endif
#endif //_W5100_H_

View File

@ -42,6 +42,10 @@
#ifndef _W5100S_H_
#define _W5100S_H_
#ifdef __cplusplus
extern <EFBFBD><EFBFBD>C<EFBFBD><EFBFBD> {
#endif
#include <stdint.h>
#include "wizchip_conf.h"
@ -3310,6 +3314,10 @@ void wiz_delay_ms(uint32_t ms);
#endif
/// @endcond
#ifdef __cplusplus
}
#endif
#endif //_W5100S_H_

View File

@ -40,6 +40,11 @@
#ifndef _W5200_H
#define _W5200_H
#ifdef __cplusplus
extern <EFBFBD><EFBFBD>C<EFBFBD><EFBFBD> {
#endif
#include <stdint.h>
#include "wizchip_conf.h"
@ -2095,6 +2100,10 @@ void wiz_recv_ignore(uint8_t sn, uint16_t len);
#endif
/// \endcond
#ifdef __cplusplus
}
#endif
#endif //_W5200_H_

View File

@ -1,5 +1,10 @@
#ifndef _W5300_H_
#define _W5300_H_
#ifdef __cplusplus
extern <EFBFBD><EFBFBD>C<EFBFBD><EFBFBD> {
#endif
//*****************************************************************************
//
//! \file w5300.h
@ -2324,4 +2329,8 @@ void wiz_recv_ignore(uint8_t sn, uint32_t len);
#endif
/// \endcond
#ifdef __cplusplus
}
#endif
#endif // _W5300_H_

View File

@ -48,6 +48,10 @@
#ifndef _W5500_H_
#define _W5500_H_
#ifdef __cplusplus
extern <EFBFBD><EFBFBD>C<EFBFBD><EFBFBD> {
#endif
#include <stdint.h>
#include "wizchip_conf.h"
@ -2152,4 +2156,8 @@ void wiz_recv_ignore(uint8_t sn, uint16_t len);
#endif
/// @endcond
#ifdef __cplusplus
}
#endif
#endif // _W5500_H_

View File

@ -84,6 +84,9 @@
*/
#ifndef _SOCKET_H_
#define _SOCKET_H_
#ifdef __cplusplus
extern "C" {
#endif
#include "wizchip_conf.h"
@ -479,4 +482,8 @@ int8_t setsockopt(uint8_t sn, sockopt_type sotype, void* arg);
*/
int8_t getsockopt(uint8_t sn, sockopt_type sotype, void* arg);
#ifdef __cplusplus
}
#endif
#endif // _SOCKET_H_

View File

@ -36,7 +36,9 @@
//! LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
//! CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
//! SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
//! INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
//! INTERRUPTION) HOWEVER CAUSED AND#ifdef __cplusplus
extern <EFBFBD><EFBFBD>C<EFBFBD><EFBFBD> {
#endif ON ANY THEORY OF LIABILITY, WHETHER IN
//! CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
//! ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
//! THE POSSIBILITY OF SUCH DAMAGE.
@ -54,6 +56,10 @@
#ifndef _WIZCHIP_CONF_H_
#define _WIZCHIP_CONF_H_
#ifdef __cplusplus
extern <EFBFBD><EFBFBD>C<EFBFBD><EFBFBD> {
#endif
#include <stdint.h>
/**
* @brief Select WIZCHIP.
@ -646,5 +652,8 @@ void wizchip_settimeout(wiz_NetTimeout* nettime);
* @param nettime @ref _RTR_ value and @ref _RCR_ value. Refer to @ref wiz_NetTimeout.
*/
void wizchip_gettimeout(wiz_NetTimeout* nettime);
#ifdef __cplusplus
}
#endif
#endif // _WIZCHIP_CONF_H_