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@2361 42af7a65-404d-4744-a932-0658087f49c3
This commit is contained in:
patacongo 2009-12-16 20:59:06 +00:00
parent 3dd028ed0f
commit 563c0601ab
11 changed files with 35 additions and 35 deletions

View File

@ -96,8 +96,8 @@ void up_initial_state(FAR _TCB *tcb)
* (SP) <- (SP) -1
*/
frame[FRAME_RETLS] = (((uint16_t))tcb->start) & 0xff);
frame[FRAME_RETMS] = (((uint16_t))tcb->start) >> 8);
frame[FRAME_RETLS] = (((uint16_t)tcb->start) & 0xff);
frame[FRAME_RETMS] = (((uint16_t)tcb->start) >> 8);
/* The context save area for registers a, ie, and dpstr
* follows the return address in the stack frame.

View File

@ -77,9 +77,9 @@
* Name: m16c_getsp
****************************************************************************/
static inline uint16_t) m16c_getsp(void)
static inline uint16_t m16c_getsp(void)
{
uint16_t) sp;
uint16_t sp;
__asm__ __volatile__
(
@ -96,10 +96,10 @@ static inline uint16_t) m16c_getsp(void)
****************************************************************************/
#if CONFIG_ARCH_INTERRUPTSTACK > 3
static inline uint16_t) m16c_getusersp(void)
static inline uint16_t m16c_getusersp(void)
{
uint8_t *ptr = (uint8_t*) current_regs;
return (uint16_t))ptr[REG_SP] << 8 | ptr[REG_SP+1];
return (uint16_t)ptr[REG_SP] << 8 | ptr[REG_SP+1];
}
#endif
@ -107,9 +107,9 @@ static inline uint16_t) m16c_getusersp(void)
* Name: m16c_stackdump
****************************************************************************/
static void m16c_stackdump(uint16_t) sp, uint16_t) stack_base)
static void m16c_stackdump(uint16_t sp, uint16_t stack_base)
{
uint16_t) stack;
uint16_t stack;
for (stack = sp & ~7; stack < stack_base; stack += 8)
{
@ -158,13 +158,13 @@ static inline void m16c_registerdump(void)
void up_dumpstate(void)
{
_TCB *rtcb = (_TCB*)g_readytorun.head;
uint16_t) sp = m16c_getsp();
uint16_t) ustackbase;
uint16_t) ustacksize;
_TCB *rtcb = (_TCB*)g_readytorun.head;
uint16_t sp = m16c_getsp();
uint16_t ustackbase;
uint16_t ustacksize;
#if CONFIG_ARCH_INTERRUPTSTACK > 3
uint16_t) istackbase;
uint16_t) istacksize;
uint16_t istackbase;
uint16_t istacksize;
#endif
/* Get the limits on the user stack memory */
@ -176,8 +176,8 @@ void up_dumpstate(void)
}
else
{
ustackbase = (uint16_t))rtcb->adj_stack_ptr;
ustacksize = (uint16_t))rtcb->adj_stack_size;
ustackbase = (uint16_t)rtcb->adj_stack_ptr;
ustacksize = (uint16_t)rtcb->adj_stack_size;
}
/* Get the limits on the interrupt stack memory. The near RAM memory map is as follows:

View File

@ -308,7 +308,7 @@ void up_lowputc(char ch)
/* Write the data to the transmit buffer */
putreg16((uint16_t))ch, M16C_UART_BASE + M16C_UART_TB);
putreg16((uint16_t)ch, M16C_UART_BASE + M16C_UART_TB);
#endif
}
#endif

View File

@ -836,7 +836,7 @@ static int up_receive(struct uart_dev_s *dev, unsigned int *status)
static void m16c_rxint(struct up_dev_s *dev, bool enable)
{
irqstate_t flags;
uint16_t)_t regaddr;
uint16_t regaddr;
uint8_t regvalue;
/* Disable interrupts to prevent asynchronous accesses */
@ -991,7 +991,7 @@ static void up_send(struct uart_dev_s *dev, int ch)
static void m16c_txint(struct up_dev_s *dev, bool enable)
{
irqstate_t flags;
uint16_t)_t regaddr;
uint16_t regaddr;
uint8_t regvalue;
/* Disable interrupts to prevent asynchronous accesses */

View File

@ -373,7 +373,7 @@ static inline void up_setbrr(struct up_dev_s *priv, unsigned int baud)
*/
uint32_t brr = ((((SH1_CLOCK + 16) / 32) + (baud >> 1)) / baud) - 1;
up_serialout(priv, SH1_SCI_BRR_OFFSET, (uint16_t))brr);
up_serialout(priv, SH1_SCI_BRR_OFFSET, (uint16_t)brr);
}
/****************************************************************************

View File

@ -84,7 +84,7 @@ void up_initial_state(_TCB *tcb)
memset(&tcb->xcp, 0, sizeof(struct xcptcontext));
#ifndef CONFIG_SUPPRESS_INTERRUPTS
tcb->xcp.regs[REG_FLAGS] = (uint16_t))Z16F_CNTRL_FLAGS_IRQE; /* IRQE flag will enable interrupts */
tcb->xcp.regs[REG_FLAGS] = (uint16_t)Z16F_CNTRL_FLAGS_IRQE; /* IRQE flag will enable interrupts */
#endif
reg32[REG_SP/2] = (uint32_t)tcb->adj_stack_ptr;
reg32[REG_PC/2] = (uint32_t)tcb->start;

View File

@ -316,7 +316,7 @@ static int z16f_setup(struct uart_dev_s *dev)
*/
brg = (_DEFCLK + (priv->baud << 3))/(priv->baud << 4);
putreg16((uint16_t))brg, priv->uartbase + Z16F_UART_BR);
putreg16((uint16_t)brg, priv->uartbase + Z16F_UART_BR);
/* Configure STOP bits */

View File

@ -79,10 +79,10 @@
#ifdef CONFIG_ARCH_STACKDUMP
static void up_stackdump(void)
{
_TCB *rtcb = (_TCB*)g_readytorun.head;
uint16_t) sp = up_getsp();
uint16_t) stack_base = (uint16_t))rtcb->adj_stack_ptr;
uint16_t) stack_size = (uint16_t))rtcb->adj_stack_size;
_TCB *rtcb = (_TCB*)g_readytorun.head;
uint16_t sp = up_getsp();
uint16_t stack_base = (uint16_t)rtcb->adj_stack_ptr;
uint16_t stack_size = (uint16_t)rtcb->adj_stack_size;
lldbg("stack_base: %04x\n", stack_base);
lldbg("stack_size: %04x\n", stack_size);
@ -95,11 +95,11 @@ static void up_stackdump(void)
}
else
{
uint16_t) stack = sp & ~0x0f;
uint16_t stack = sp & ~0x0f;
for (stack = sp & ~0x0f; stack < stack_base; stack += 8*sizeof(uint16_t)))
for (stack = sp & ~0x0f; stack < stack_base; stack += 8*sizeof(uint16_t))
{
uint16_t) *ptr = (uint16_t)*)stack;
uint16_t *ptr = (uint16_t*)stack;
lldbg("%04x: %04x %04x %04x %04x %04x %04x %04x %04x\n",
stack, ptr[0], ptr[1], ptr[2], ptr[3],
ptr[4], ptr[5], ptr[6], ptr[7]);

View File

@ -123,7 +123,7 @@ static void ez80_sigsetup(FAR _TCB *tcb, sig_deliver_t sigdeliver, FAR chipreg_t
void up_schedule_sigaction(FAR _TCB *tcb, sig_deliver_t sigdeliver)
{
sdbg("tcb=0x%p sigdeliver=0x%04x\n", tcb, (uint16_t))sigdeliver);
sdbg("tcb=0x%p sigdeliver=0x%04x\n", tcb, (uint16_t)sigdeliver);
/* Refuse to handle nested signal actions */

View File

@ -112,7 +112,7 @@ int up_timerisr(int irq, chipreg_t *regs)
void up_timerinit(void)
{
uint16_t) reload;
uint16_t reload;
uint8_t reg;
/* Disable the timer */
@ -142,7 +142,7 @@ void up_timerinit(void)
* NOTE: The system clock frequency value is defined in the board.h file
*/
reload = (uint16_t))(ez80_systemclock / 1600);
reload = (uint16_t)(ez80_systemclock / 1600);
outp(EZ80_TMR0_RRH, (uint8_t)(reload >> 8));
outp(EZ80_TMR0_RRL, (uint8_t)(reload));

View File

@ -44,7 +44,7 @@
#include <stdint.h>
/************************************************************************************
* Definitions
* Pre-processor Definitions
************************************************************************************/
/* For the ZiLOG ZDS-II toolchain(s), the heap will be set using linker-
@ -59,12 +59,12 @@
#ifndef CONFIG_HEAP1_BASE
extern far unsigned long far_heapbot;
# define CONFIG_HEAP1_BASE ((uint16_t))&far_heapbot)
# define CONFIG_HEAP1_BASE ((uint16_t)&far_heapbot)
#endif
#ifndef CONFIG_HEAP1_END
extern far unsigned long far_stacktop;
# define CONFIG_HEAP1_END (((uint16_t))&far_stacktop) - CONFIG_IDLETHREAD_STACKSIZE + 1)
# define CONFIG_HEAP1_END (((uint16_t)&far_stacktop) - CONFIG_IDLETHREAD_STACKSIZE + 1)
#endif
/************************************************************************************