diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2009-12-16 14:15:34 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2009-12-16 14:15:34 +0000 |
commit | 03a31e4a728883bf41bd6712d38dae413a9a41bc (patch) | |
tree | abe04d3d494a263aa46a4467603c8027dfa701e9 /nuttx/arch/z80/src/ez80/ez80_timerisr.c | |
parent | b10830785275aac3667b88c2d1a90a5563bbdb49 (diff) | |
download | px4-nuttx-03a31e4a728883bf41bd6712d38dae413a9a41bc.tar.gz px4-nuttx-03a31e4a728883bf41bd6712d38dae413a9a41bc.tar.bz2 px4-nuttx-03a31e4a728883bf41bd6712d38dae413a9a41bc.zip |
Changing NuttX fixed size type names to C99 standard names -- things will be broken for awhile
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@2354 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/arch/z80/src/ez80/ez80_timerisr.c')
-rw-r--r-- | nuttx/arch/z80/src/ez80/ez80_timerisr.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/nuttx/arch/z80/src/ez80/ez80_timerisr.c b/nuttx/arch/z80/src/ez80/ez80_timerisr.c index 51eb90ebe..b047a1331 100644 --- a/nuttx/arch/z80/src/ez80/ez80_timerisr.c +++ b/nuttx/arch/z80/src/ez80/ez80_timerisr.c @@ -1,7 +1,7 @@ /*************************************************************************** * arch/z80/src/ez80/ez80_timerisr.c * - * Copyright (C) 2008, 2009 Gregory Nutt. All rights reserved. + * Copyright (C) 2008-2009 Gregory Nutt. All rights reserved. * Author: Gregory Nutt <spudmonkey@racsa.co.cr> * * Redistribution and use in source and binary forms, with or without @@ -39,7 +39,7 @@ #include <nuttx/config.h> -#include <sys/types.h> +#include <stdint.h> #include <debug.h> #include <arch/io.h> @@ -76,7 +76,7 @@ int up_timerisr(int irq, chipreg_t *regs) { - volatile ubyte reg; + volatile uint8_t reg; /* Read the appropropriate timer0 registr to clear the interrupt */ @@ -112,8 +112,8 @@ int up_timerisr(int irq, chipreg_t *regs) void up_timerinit(void) { - uint16 reload; - ubyte reg; + uint16_t) reload; + uint8_t reg; /* Disable the timer */ @@ -142,9 +142,9 @@ void up_timerinit(void) * NOTE: The system clock frequency value is defined in the board.h file */ - reload = (uint16)(ez80_systemclock / 1600); - outp(EZ80_TMR0_RRH, (ubyte)(reload >> 8)); - outp(EZ80_TMR0_RRL, (ubyte)(reload)); + reload = (uint16_t))(ez80_systemclock / 1600); + outp(EZ80_TMR0_RRH, (uint8_t)(reload >> 8)); + outp(EZ80_TMR0_RRL, (uint8_t)(reload)); /* Clear any pending timer interrupts */ |