]> git.sur5r.net Git - freertos/blobdiff - FreeRTOS/Demo/T-HEAD_CB2201_CDK/RTOSDemo_CDK/RTOSDemo/chip_name.h
Introduce a port for T-HEAD CK802. A simple demo for T-HEAD CB2201 is also included.
[freertos] / FreeRTOS / Demo / T-HEAD_CB2201_CDK / RTOSDemo_CDK / RTOSDemo / chip_name.h
diff --git a/FreeRTOS/Demo/T-HEAD_CB2201_CDK/RTOSDemo_CDK/RTOSDemo/chip_name.h b/FreeRTOS/Demo/T-HEAD_CB2201_CDK/RTOSDemo_CDK/RTOSDemo/chip_name.h
new file mode 100644 (file)
index 0000000..4f9dc23
--- /dev/null
@@ -0,0 +1,45 @@
+/*\r
+ * Description : chip_name.h - Define the system configuration such as:\r
+ * 1 CPU base config\r
+ * 2 memory & IO base address \r
+ * 3 flash size & address\r
+ * 4 interrupt resource for the soc.\r
+ *\r
+ * Copyright (C) : Hangzhou C-SKY Microsystems Co.,LTD.\r
+ * Date:   2016-08-22\r
+ */\r
+\r
+#ifndef __INCLUDE_CHIP_NAME_H__\r
+#define __INCLUDE_CHIP_NAME_H__\r
+\r
+typedef enum IRQn\r
+{\r
+/* ----------------------  CK801CM0 Specific Interrupt Numbers  --------------------- */\r
+  CORET_IRQn = 0,\r
+} IRQn_Type;\r
+\r
+/* Configuration of the CK80# Processor and Core Peripherals */\r
+/* ToDo: set the defines according your Device                                                    */\r
+/* ToDo: define the correct core revision\r
+         __CK801_REV if your device is a CK801 device\r
+         __CK802_REV if your device is a CK802 device\r
+         __CK803S_REV if your device is a CK803S device                                           */\r
+#define __NVIC_PRIO_BITS          2         /*!< Number of Bits used for Priority Levels          */\r
+#define __Vendor_SysTickConfig    0         /*!< Set to 1 if different SysTick Config is used     */\r
+#define __MGU_PRESENT             0         /*!< MGU present or not                               */\r
+\r
+/* Soft reset address */\r
+#define  __RESET_CONST           0xabcd1234\r
+\r
+/**********************************************\r
+ * Config CPU\r
+ * Define the attribute for your CPU\r
+ *********************************************/\r
+//#include "CSICORE_CK802.H"\r
+\r
+/*******************************\r
+ * Config IO base address\r
+ ******************************/\r
+\r
+\r
+#endif /* __INCLUDE_CHIP_NAME_H__ */\r