diff options
author | pcirillo <pcirillo@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2013-05-15 13:42:41 +0000 |
---|---|---|
committer | pcirillo <pcirillo@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2013-05-15 13:42:41 +0000 |
commit | 460ae80f9260fbea7c6b4d94e99a40acfcc018bc (patch) | |
tree | 80e012e3b46e5973b7dcbdbcb199254258ee68f6 /os/hal/platforms/SPC564Axx | |
parent | 155b0d13536dabeb0eb2f8928e0d2b55640a17cc (diff) | |
download | ChibiOS-460ae80f9260fbea7c6b4d94e99a40acfcc018bc.tar.gz ChibiOS-460ae80f9260fbea7c6b4d94e99a40acfcc018bc.tar.bz2 ChibiOS-460ae80f9260fbea7c6b4d94e99a40acfcc018bc.zip |
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@5738 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/hal/platforms/SPC564Axx')
-rw-r--r-- | os/hal/platforms/SPC564Axx/spc564a_registry.h | 59 |
1 files changed, 59 insertions, 0 deletions
diff --git a/os/hal/platforms/SPC564Axx/spc564a_registry.h b/os/hal/platforms/SPC564Axx/spc564a_registry.h index 6d84e6354..6002453c9 100644 --- a/os/hal/platforms/SPC564Axx/spc564a_registry.h +++ b/os/hal/platforms/SPC564Axx/spc564a_registry.h @@ -57,6 +57,65 @@ /* SIU attributes.*/
#define SPC5_HAS_SIU TRUE
#define SPC5_SIU_SUPPORTS_PORTS FALSE
+
+/* EMIOS attributes.*/
+#define SPC5_HAS_EMIOS TRUE
+
+#define SPC5_EMIOS_NUM_CHANNELS 24
+
+#define SPC5_EMIOS_FLAG_F0_HANDLER vector51
+#define SPC5_EMIOS_FLAG_F1_HANDLER vector52
+#define SPC5_EMIOS_FLAG_F2_HANDLER vector53
+#define SPC5_EMIOS_FLAG_F3_HANDLER vector54
+#define SPC5_EMIOS_FLAG_F4_HANDLER vector55
+#define SPC5_EMIOS_FLAG_F5_HANDLER vector56
+#define SPC5_EMIOS_FLAG_F6_HANDLER vector57
+#define SPC5_EMIOS_FLAG_F7_HANDLER vector58
+#define SPC5_EMIOS_FLAG_F8_HANDLER vector59
+#define SPC5_EMIOS_FLAG_F9_HANDLER vector60
+#define SPC5_EMIOS_FLAG_F10_HANDLER vector61
+#define SPC5_EMIOS_FLAG_F11_HANDLER vector62
+#define SPC5_EMIOS_FLAG_F12_HANDLER vector63
+#define SPC5_EMIOS_FLAG_F13_HANDLER vector64
+#define SPC5_EMIOS_FLAG_F14_HANDLER vector65
+#define SPC5_EMIOS_FLAG_F15_HANDLER vector66
+#define SPC5_EMIOS_FLAG_F16_HANDLER vector202
+#define SPC5_EMIOS_FLAG_F17_HANDLER vector203
+#define SPC5_EMIOS_FLAG_F18_HANDLER vector204
+#define SPC5_EMIOS_FLAG_F19_HANDLER vector205
+#define SPC5_EMIOS_FLAG_F20_HANDLER vector206
+#define SPC5_EMIOS_FLAG_F21_HANDLER vector207
+#define SPC5_EMIOS_FLAG_F22_HANDLER vector208
+#define SPC5_EMIOS_FLAG_F23_HANDLER vector209
+#define SPC5_EMIOS_FLAG_F0_NUMBER 51
+#define SPC5_EMIOS_FLAG_F1_NUMBER 52
+#define SPC5_EMIOS_FLAG_F2_NUMBER 53
+#define SPC5_EMIOS_FLAG_F3_NUMBER 54
+#define SPC5_EMIOS_FLAG_F4_NUMBER 55
+#define SPC5_EMIOS_FLAG_F5_NUMBER 56
+#define SPC5_EMIOS_FLAG_F6_NUMBER 57
+#define SPC5_EMIOS_FLAG_F7_NUMBER 58
+#define SPC5_EMIOS_FLAG_F8_NUMBER 59
+#define SPC5_EMIOS_FLAG_F9_NUMBER 60
+#define SPC5_EMIOS_FLAG_F10_NUMBER 61
+#define SPC5_EMIOS_FLAG_F11_NUMBER 62
+#define SPC5_EMIOS_FLAG_F12_NUMBER 63
+#define SPC5_EMIOS_FLAG_F13_NUMBER 64
+#define SPC5_EMIOS_FLAG_F14_NUMBER 65
+#define SPC5_EMIOS_FLAG_F15_NUMBER 66
+#define SPC5_EMIOS_FLAG_F16_NUMBER 202
+#define SPC5_EMIOS_FLAG_F17_NUMBER 203
+#define SPC5_EMIOS_FLAG_F18_NUMBER 204
+#define SPC5_EMIOS_FLAG_F19_NUMBER 205
+#define SPC5_EMIOS_FLAG_F20_NUMBER 206
+#define SPC5_EMIOS_FLAG_F21_NUMBER 207
+#define SPC5_EMIOS_FLAG_F22_NUMBER 208
+#define SPC5_EMIOS_FLAG_F23_NUMBER 209
+
+#define SPC5_EMIOS_CLK (64000000 / \
+ SPC5_EMIOS_GLOBAL_PRESCALER)
+#define SPC5_EMIOS_ENABLE_CLOCK()
+#define SPC5_EMIOS_DISABLE_CLOCK()
/** @} */
#endif /* _SPC563M_REGISTRY_H_ */
|