Add extern "C" modifiers to main public header files for mixing C/C++. Minor modifications to pull request from @bacek.

This commit is contained in:
Kelvin Lawson
2012-07-13 22:13:21 +01:00
parent 43df30809c
commit 34e989424f
5 changed files with 39 additions and 0 deletions

View File

@@ -30,6 +30,10 @@
#ifndef __ATOM_H
#define __ATOM_H
#ifdef __cplusplus
extern "C" {
#endif
#include "atomtimer.h"
#include "atomport.h"
@@ -122,5 +126,8 @@ extern void archFirstThreadRestore(ATOM_TCB *new_tcb_ptr);
extern void atomTimerTick (void);
#ifdef __cplusplus
}
#endif
#endif /* __ATOM_H */