diff options
author | Marti Bolivar <mbolivar@mit.edu> | 2010-09-26 21:47:55 -0400 |
---|---|---|
committer | Marti Bolivar <mbolivar@mit.edu> | 2010-09-26 21:47:55 -0400 |
commit | 849bc0f8f6abf42567a152cf6e01bf7349902aac (patch) | |
tree | 8d7dd363d7978e320fb71626e9ddc23285c26205 /wirish/ext_interrupts.c | |
parent | c13e850abe053edaa1aad6ef7b928c6bf9288cb3 (diff) | |
download | librambutan-849bc0f8f6abf42567a152cf6e01bf7349902aac.tar.gz librambutan-849bc0f8f6abf42567a152cf6e01bf7349902aac.zip |
wirish reformatted and code-styled
Diffstat (limited to 'wirish/ext_interrupts.c')
-rw-r--r-- | wirish/ext_interrupts.c | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/wirish/ext_interrupts.c b/wirish/ext_interrupts.c index 5009d75..f02cdc5 100644 --- a/wirish/ext_interrupts.c +++ b/wirish/ext_interrupts.c @@ -1,4 +1,4 @@ -/* ***************************************************************************** +/****************************************************************************** * The MIT License * * Copyright (c) 2010 Perry Hung. @@ -20,7 +20,7 @@ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. - * ****************************************************************************/ + *****************************************************************************/ /** * @file ext_interrupts.c @@ -44,7 +44,8 @@ */ void attachInterrupt(uint8 pin, voidFuncPtr handler, uint32 mode) { uint8 outMode; - /* Parameter checking */ + + /* Parameter checking */ if (pin >= NR_GPIO_PINS) { return; } @@ -68,9 +69,9 @@ void attachInterrupt(uint8 pin, voidFuncPtr handler, uint32 mode) { } exti_attach_interrupt(PIN_MAP[pin].exti_port, - PIN_MAP[pin].pin, - handler, - mode); + PIN_MAP[pin].pin, + handler, + mode); return; } |