Improved port info.

git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@14161 27425a3e-05d8-49a3-a47f-9c15f0e5edd8
This commit is contained in:
Giovanni Di Sirio 2021-04-10 07:38:05 +00:00
parent 76224772e2
commit 65d78352b9
1 changed files with 7 additions and 2 deletions

View File

@ -262,9 +262,14 @@
/**
* @brief Port-specific information string.
*/
#if (CORTEX_ALTERNATE_SWITCH == FALSE) || defined(__DOXYGEN__)
#define PORT_INFO "Preemption through NMI"
#if (CH_CFG_SMP_MODE != FALSE) || defined(__DOXYGEN__)
#if (CORTEX_ALTERNATE_SWITCH == FALSE) || defined(__DOXYGEN__)
#define PORT_INFO "Preemption through NMI (SMP)"
#else
#define PORT_INFO "Preemption through PendSV (SMP)"
#endif
#else
#define PORT_INFO "Preemption through NMI"
#define PORT_INFO "Preemption through PendSV"
#endif
/** @} */