Skip to content

Commit

Permalink
CPP support changes
Browse files Browse the repository at this point in the history
  • Loading branch information
valeklubomir committed Oct 19, 2022
1 parent 027cef6 commit d50ab41
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
6 changes: 1 addition & 5 deletions src/driver/drv_ir.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@

#if PLATFORM_BK7231T

extern "C" {
// these cause error: conflicting declaration of 'int bk_wlan_mcu_suppress_and_sleep(unsigned int)' with 'C' linkage
#include "include.h"
Expand All @@ -27,6 +25,7 @@ extern "C" {

}

#include "drv_ir.h"

//#define USE_IRREMOTE_HPP_AS_PLAIN_INCLUDE 1
#undef read
Expand Down Expand Up @@ -600,6 +599,3 @@ void cpptest(){
}
#endif



#endif // platform T
10 changes: 9 additions & 1 deletion src/driver/drv_ir.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,15 @@
#ifndef __DRV_IR_H__
#define __DRV_IR_H__

#ifdef __cplusplus
extern "C" {
#endif

void DRV_IR_Init();
void DRV_IR_RunFrame();

#endif
#ifdef __cplusplus
}
#endif

#endif

0 comments on commit d50ab41

Please sign in to comment.