Make mcu version header C++ safe

This commit is contained in:
Lorenz Meier 2015-02-01 23:58:30 +01:00
parent 9d0c74e8ec
commit 5a12688ebe
1 changed files with 4 additions and 0 deletions

View File

@ -35,6 +35,8 @@
#include <stdint.h>
__BEGIN_DECLS
/* magic numbers from reference manual */
enum MCU_REV {
MCU_REV_STM32F4_REV_A = 0x1000,
@ -61,3 +63,5 @@ __EXPORT void mcu_unique_id(uint32_t *uid_96_bit);
* @return The silicon revision / version number as integer
*/
__EXPORT int mcu_version(char* rev, char** revstr);
__END_DECLS