Skip to content

Commit

Permalink
Merge pull request #7 from pcawte/mos_api_cpp
Browse files Browse the repository at this point in the history
Add cpp compatibility to mos_api.h
  • Loading branch information
astralaster authored Feb 7, 2024
2 parents 01f9c22 + c296ed1 commit 172f459
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion include/mos_api.h
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,10 @@ typedef struct {
uint24_t* dir_ptr; /* Pointer to the directory entry in the win[] (not used at exFAT) */
} FIL;

#ifdef __cplusplus
extern "C" {
#endif

// Generic IO
extern int putch(int a);
extern char getch(void);
Expand Down Expand Up @@ -252,4 +256,8 @@ extern void mos_i2c_close(void);
extern uint8_t mos_i2c_write(uint8_t i2c_address, uint8_t size, unsigned char * buffer);
extern uint8_t mos_i2c_read(uint8_t i2c_address, uint8_t size, unsigned char * buffer);

#endif
#ifdef __cplusplus
}
#endif

#endif // _MOS_H

0 comments on commit 172f459

Please sign in to comment.