1 /*******************************************************************************
\r
2 * (c) Copyright 2009-2015 Microsemi SoC Products Group. All rights reserved.
\r
4 * CoreI2C driver interrupt control.
\r
6 * SVN $Revision: 7984 $
\r
7 * SVN $Date: 2015-10-12 12:07:40 +0530 (Mon, 12 Oct 2015) $
\r
10 #include "hal_assert.h"
\r
11 #include "core_i2c.h"
\r
12 #include "riscv_hal.h"
\r
15 #define I2C_IRQn External_29_IRQn
\r
17 /*------------------------------------------------------------------------------
\r
18 * This function must be modified to enable interrupts generated from the
\r
19 * CoreI2C instance identified as parameter.
\r
21 void I2C_enable_irq( i2c_instance_t * this_i2c )
\r
23 PLIC_EnableIRQ(I2C_IRQn);
\r
27 /*------------------------------------------------------------------------------
\r
28 * This function must be modified to disable interrupts generated from the
\r
29 * CoreI2C instance identified as parameter.
\r
31 void I2C_disable_irq( i2c_instance_t * this_i2c )
\r
33 PLIC_DisableIRQ(I2C_IRQn);
\r