zhangyu-duck commented on code in PR #21546:
URL: https://github.com/apache/nuttx/pull/21546#discussion_r4510740708


##########
arch/tricore/src/common/tricore_main.c:
##########
@@ -24,25 +24,89 @@
  * Included Files
  ****************************************************************************/
 
-#include <tricore_internal.h>
+#include <nuttx/config.h>
+
+#include <stdint.h>
+
 #include <nuttx/init.h>
 
-#include "Ifx_Types.h"
-#include "IfxCpu.h"
+#include <arch/arch.h>
+
+#include "tricore_internal.h"
+#include "tricore_stm.h"
+
+/****************************************************************************
+ * Pre-processor Definitions
+ ****************************************************************************/
+
+/* Startup core synchronization: core ID bits to wait for and the timeout
+ * in STM ticks (0: no timeout)
+ */
+
+#ifdef CONFIG_ARCH_CHIP_TC3XX
+#  define TRICORE_CORE_SYNC_MASK      0x5f
+#  define TRICORE_CORE_SYNC_TIMEOUT   100000
+#else
+#  define TRICORE_CORE_SYNC_MASK      0x01
+#  define TRICORE_CORE_SYNC_TIMEOUT   0
+#endif
 
-#ifdef CONFIG_ARCH_CHIP_TC4XX
-#  include "IfxWtu.h"
+/* Core index from CORE_ID; CPU5 has the core ID 6 on TC39x */
+
+#ifdef CONFIG_ARCH_CHIP_TC3XX
+#  define tricore_core_id()     tricore_mfcr(TRICORE_CPU_CORE_ID)

Review Comment:
   remove them



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to