Skip to content
This repository has been archived by the owner on Aug 8, 2024. It is now read-only.

Add C++ compatibility #13

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions port/ioLibrary_Driver/inc/w5x00_gpio_irq.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@
#ifndef _W5X00_GPIO_IRQ_H_
#define _W5X00_GPIO_IRQ_H_

#ifdef __cplusplus
extern "C" {
#endif

/**
* ----------------------------------------------------------------------------------------------------
* Macros
Expand Down Expand Up @@ -41,4 +45,8 @@ void wizchip_gpio_interrupt_initialize(uint8_t socket, void (*callback)(void));
*/
static void wizchip_gpio_interrupt_callback(uint gpio, uint32_t events);

#ifdef __cplusplus
}
#endif

#endif /* _W5X00_GPIO_IRQ_H_ */
8 changes: 8 additions & 0 deletions port/ioLibrary_Driver/inc/w5x00_spi.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@
#ifndef _W5X00_SPI_H_
#define _W5X00_SPI_H_

#ifdef __cplusplus
extern "C" {
#endif

/**
* ----------------------------------------------------------------------------------------------------
* Macros
Expand Down Expand Up @@ -182,4 +186,8 @@ void network_initialize(wiz_NetInfo net_info);
*/
void print_network_information(wiz_NetInfo net_info);

#ifdef __cplusplus
}
#endif

#endif /* _W5X00_SPI_H_ */
8 changes: 8 additions & 0 deletions port/timer/timer.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@
#ifndef _TIMER_H_
#define _TIMER_H_

#ifdef __cplusplus
extern "C" {
#endif

/**
* ----------------------------------------------------------------------------------------------------
* Macros
Expand Down Expand Up @@ -49,4 +53,8 @@ bool wizchip_1ms_timer_callback(struct repeating_timer *t);
*/
void wizchip_delay_ms(uint32_t ms);

#ifdef __cplusplus
}
#endif

#endif /* _TIMER_H_ */