Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed C++ building problem, revolves #1 #12

Open
wants to merge 2 commits into
base: master
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
6 changes: 3 additions & 3 deletions Firmware/GD32VF103_standard_peripheral/gd32vf103.h
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ OF SUCH DAMAGE.
#ifndef GD32VF103_H
#define GD32VF103_H

#ifdef cplusplus
#ifdef __cplusplus
extern "C" {
#endif

Expand Down Expand Up @@ -173,10 +173,10 @@ typedef enum IRQn
/* includes */
#include "system_gd32vf103.h"
#include <stdint.h>
#include <stdbool.h>

/* enum definitions */
typedef enum {DISABLE = 0, ENABLE = !DISABLE} EventStatus, ControlStatus;
typedef enum {FALSE = 0, TRUE = !FALSE} bool;
typedef enum {RESET = 0, SET = 1,MAX = 0X7FFFFFFF} FlagStatus;
typedef enum {ERROR = 0, SUCCESS = !ERROR} ErrStatus;

Expand Down Expand Up @@ -235,7 +235,7 @@ typedef enum {ERROR = 0, SUCCESS = !ERROR} ErrStatus;
#include "gd32vf103_libopt.h"
#endif /* USE_STDPERIPH_DRIVER */

#ifdef cplusplus
#ifdef __cplusplus
}
#endif
#endif
4 changes: 2 additions & 2 deletions Template/gd32vf103v_eval.h
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ OF SUCH DAMAGE.
#ifndef GD32V103V_EVAL_H
#define GD32V103V_EVAL_H

#ifdef cplusplus
#ifdef __cplusplus
extern "C" {
#endif

Expand Down Expand Up @@ -161,7 +161,7 @@ uint8_t gd_eval_key_state_get(key_typedef_enum key);
/* configure COM port */
void gd_eval_com_init(uint32_t com);

#ifdef cplusplus
#ifdef __cplusplus
}
#endif

Expand Down
4 changes: 2 additions & 2 deletions Utilities/gd32vf103v_eval.h
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ OF SUCH DAMAGE.
#ifndef GD32VF103V_EVAL_H
#define GD32VF103V_EVAL_H

#ifdef cplusplus
#ifdef __cplusplus
extern "C" {
#endif

Expand Down Expand Up @@ -161,7 +161,7 @@ uint8_t gd_eval_key_state_get(key_typedef_enum key);
/* configure COM port */
void gd_eval_com_init(uint32_t com);

#ifdef cplusplus
#ifdef __cplusplus
}
#endif

Expand Down