remove BOARD_NAME from board_config.h and set automatically

This commit is contained in:
Daniel Agar
2018-11-26 14:40:14 -08:00
committed by David Sidrane
parent 2d052c02fa
commit ec4c9da253
34 changed files with 32 additions and 63 deletions
+1 -10
View File
@@ -47,15 +47,6 @@
#include <systemlib/px4_macros.h>
#include <stdint.h>
/* The preferred method for publishing a board name is to
* define it in board_config.h as BOARD_NAME
*/
#ifndef BOARD_NAME
# error "board_config.h must define BOARD_NAME"
#endif
__BEGIN_DECLS
/**
@@ -63,7 +54,7 @@ __BEGIN_DECLS
*/
static inline const char *px4_board_name(void)
{
return BOARD_NAME;
return PX4_BOARD_NAME;
}
/**