summaryrefslogtreecommitdiffstats
path: root/bsps/shared/grlib/ascs
diff options
context:
space:
mode:
authorJiri Gaisler <jiri@gaisler.se>2019-01-18 11:29:08 +0100
committerSebastian Huber <sebastian.huber@embedded-brains.de>2019-01-22 12:49:58 +0100
commit5981c8ca9fcb6aa4b4c614268c9348b910cdba36 (patch)
tree6e18d88f231453138038ca73e19be3f19a5cd7ab /bsps/shared/grlib/ascs
parentgrlib: make apbuart driver independent of bsp (diff)
downloadrtems-5981c8ca9fcb6aa4b4c614268c9348b910cdba36.tar.bz2
grlib: use rtems_interrupt_handler_install()
Update #3678.
Diffstat (limited to 'bsps/shared/grlib/ascs')
-rw-r--r--bsps/shared/grlib/ascs/grascs.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/bsps/shared/grlib/ascs/grascs.c b/bsps/shared/grlib/ascs/grascs.c
index 1d9541ce85..030faaa44c 100644
--- a/bsps/shared/grlib/ascs/grascs.c
+++ b/bsps/shared/grlib/ascs/grascs.c
@@ -130,7 +130,7 @@ static int ASCS_get_sysfreq(void) {
appropriate bits in the core's STS register and releases
the associated semaphore
*/
-static rtems_isr ASCS_irqhandler(rtems_vector_number v) {
+static rtems_isr ASCS_irqhandler(void *v) {
if(cfg->regs->sts & GRASCS_STS_TCDONE) {
/* Clear TC done bit */
@@ -271,7 +271,9 @@ int ASCS_init(void) {
GRASCS_CMD_TCDONE | GRASCS_CMD_TMDONE;
/* Register interrupt routine */
- set_vector(ASCS_irqhandler,irq+0x10,2);
+ rtems_interrupt_handler_install(irq, "grascs",
+ RTEMS_INTERRUPT_SHARED,
+ ASCS_irqhandler, NULL);
return 0;