Skip to content

Commit a875939

Browse files
committed
add: __cplusplus macro def
1 parent ba81112 commit a875939

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/pll_sogi.c

+7
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@
66
#define M_PI 3.14159265358979323846
77
#endif
88

9+
#ifdef __cplusplus
10+
extern "C"{
11+
#endif
912

1013
void init_pll_sogi(PLL_SOGI_t *s, float kp, float ki, float dt, float fc){
1114
s->center_angle_freq = fc * 2 * M_PI;
@@ -41,3 +44,7 @@ float calc_pll_sogi(PLL_SOGI_t *s, float signal){
4144

4245
return s->phase_output ;
4346
}
47+
48+
#ifdef __cplusplus
49+
}
50+
#endif

0 commit comments

Comments
 (0)