Skip to content

Commit

Permalink
Add cpp compatibility to mos_api.h
Browse files Browse the repository at this point in the history
  • Loading branch information
astralaster committed Feb 7, 2024
1 parent 01f9c22 commit c296ed1
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 c296ed1

Please sign in to comment.