[KINETIS] Configured I2C vectors in registry

git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@7474 35acf78f-673a-0410-8e92-d51de3d6d3f4
master
utzig 2014-11-04 10:04:19 +00:00
parent efb5332373
commit 5626d9925f
3 changed files with 7 additions and 2 deletions

View File

@ -45,6 +45,9 @@
#define KINETIS_HAS_ADC0 TRUE
#define KINETIS_ADC0_IRC_VECTOR Vector98
/* I2C attributes.*/
#define KINETIS_I2C0_IRQ_VECTOR Vector6C
/** @} */
#endif /* _KINETIS_REGISTRY_H_ */

View File

@ -42,6 +42,9 @@
#define KINETIS_HAS_ADC0 TRUE
#define KINETIS_ADC0_IRC_VECTOR Vector7C
/* I2C attributes.*/
#define KINETIS_I2C0_IRQ_VECTOR Vector60
/** @} */
#endif /* _KINETIS_REGISTRY_H_ */

View File

@ -138,8 +138,7 @@ static void serve_interrupt(I2CDriver *i2cp) {
#if KINETIS_I2C_USE_I2C0 || defined(__DOXYGEN__)
/* FIXME: Vector6C on K2x; Vector60 on KL2x */
PORT_IRQ_HANDLER(Vector6C) {
PORT_IRQ_HANDLER(KINETIS_I2C0_IRQ_VECTOR) {
PORT_IRQ_PROLOGUE();
serve_interrupt(&I2CD1);