From d7b031684ba67bbba251d1150dc067bc5fa01c66 Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Tue, 30 Apr 2013 08:08:02 -0600 Subject: [PATCH] LPC17: Interrupts not being re-enabled in the initialization function --- arch/arm/src/lpc17xx/lpc17_i2c.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/arch/arm/src/lpc17xx/lpc17_i2c.c b/arch/arm/src/lpc17xx/lpc17_i2c.c index 777349defcb..4c4fdb0b10d 100644 --- a/arch/arm/src/lpc17xx/lpc17_i2c.c +++ b/arch/arm/src/lpc17xx/lpc17_i2c.c @@ -9,7 +9,7 @@ * * Author: David Hewson * - * Copyright (C) 2010-2011 Gregory Nutt. All rights reserved. + * Copyright (C) 2010-2011, 2013 Gregory Nutt. All rights reserved. * Author: Gregory Nutt * * Redistribution and use in source and binary forms, with or without @@ -537,6 +537,7 @@ struct i2c_dev_s *up_i2cinitialize(int port) else #endif { + irqrestore(flags); return NULL; } @@ -561,6 +562,8 @@ struct i2c_dev_s *up_i2cinitialize(int port) /* Install our operations */ priv->dev.ops = &lpc17_i2c_ops; + + irqrestore(flags); return &priv->dev; }