/* ----------------------------[public functions]----------------------------*/\r
\r
extern uint32_t McuE_GetSystemClock( void );\r
-extern OsTickType OsTickFreq;\r
\r
\r
/**\r
\r
#define TEST_DATA 0x12345\r
#define TEST_SDATA2 0x3344\r
-volatile int test_data = TEST_DATA;\r
-volatile int test_bss = 0;\r
+volatile uint32_t test_data = TEST_DATA;\r
+volatile uint32_t test_bss = 0;\r
+/* Define if compiler is set to use small data section */\r
+/* #define CC_USE_SMALL_DATA */\r
+\r
#if defined(CFG_PPC) && defined(__CWCC__)\r
/* Note! It does not matter if the data is initialized to 0,\r
* it still sbss2.
*/\r
+#if defined(CC_USE_SMALL_DATA)\r
volatile const int test_sbss2;\r
-\r
+#endif\r
/* Initialized small data */\r
volatile const int test_sdata2 = TEST_SDATA2;\r
+\r
#endif\r
\r
\r
}\r
#endif\r
\r
-#if defined(CFG_PPC) && defined(__CWCC__)\r
+#if defined(CC_USE_SMALL_DATA) && defined(CFG_PPC) && defined(__CWCC__)\r
/* check sdata2 */\r
if (test_sbss2 != 0) {\r
BAD_LINK_FILE();\r