AP_Periph: moved CAN_APP_NODE_NAME to AP_Periph.h

needed by battery driver
This commit is contained in:
Andrew Tridgell 2023-09-02 11:49:57 +10:00
parent 559e85df11
commit a732f846e6
2 changed files with 4 additions and 4 deletions

View File

@ -469,6 +469,10 @@ public:
#endif
};
#ifndef CAN_APP_NODE_NAME
#define CAN_APP_NODE_NAME "org.ardupilot." CHIBIOS_BOARD_NAME
#endif
namespace AP
{
AP_Periph_FW& periph();

View File

@ -107,10 +107,6 @@ HAL_GPIO_PIN_TERMCAN1
};
#endif // CONFIG_HAL_BOARD == HAL_BOARD_CHIBIOS && defined(HAL_GPIO_PIN_TERMCAN1)
#ifndef CAN_APP_NODE_NAME
#define CAN_APP_NODE_NAME "org.ardupilot." CHIBIOS_BOARD_NAME
#endif
#ifndef HAL_CAN_DEFAULT_NODE_ID
#define HAL_CAN_DEFAULT_NODE_ID CANARD_BROADCAST_NODE_ID
#endif