AT91SAM7X
[Ports]


Functions

void rt_hw_cpu_reset ()
void rt_hw_cpu_shutdown ()
void rt_hw_interrupt_init ()
void rt_hw_interrupt_mask (int vector)
void rt_hw_interrupt_umask (int vector)
void rt_hw_interrupt_install (int vector, rt_isr_handler_t new_handler, rt_isr_handler_t *old_handler)
void rt_console_puts (const char *str)
void rt_serial_init (void)
char rt_serial_getc ()
void rt_serial_putc (const char c)
rt_uint8_t * rt_hw_stack_init (void *tentry, void *parameter, rt_uint8_t *stack_addr, void *texit)

Detailed Description

The AT91SAM7X is a low pincount Flash microcontroller based on the 32-bit ARM7TDMI RISC processor. It features 256K bytes of embedded high-speed Flash with sector lock capabilities and a security bit, and 64K bytes of SRAM. The integrated proprietary SAM-BA Boot Assistant enables in-system programming of the embedded Flash.

Function Documentation

void rt_console_puts ( const char *  str  ) 

This function is used to display a string on console, normally, it's invoked by rt_kprintf

Parameters:
str the displayed string

void rt_hw_cpu_reset ( void   ) 

this function will reset CPU

void rt_hw_cpu_shutdown ( void   ) 

this function will shutdown CPU

void rt_hw_interrupt_init ( void   ) 

This function will initialize hardware interrupt

void rt_hw_interrupt_install ( int  vector,
rt_isr_handler_t  new_handler,
rt_isr_handler_t *  old_handler 
)

This function will install a interrupt service routine to a interrupt.

Parameters:
vector the interrupt number
new_handler the interrupt service routine to be installed
old_handler the old interrupt service routine

void rt_hw_interrupt_mask ( int  vector  ) 

This function will mask a interrupt.

Parameters:
vector the interrupt number

void rt_hw_interrupt_umask ( int  vector  ) 

This function will un-mask a interrupt.

Parameters:
vector the interrupt number

rt_uint8_t* rt_hw_stack_init ( void *  tentry,
void *  parameter,
rt_uint8_t *  stack_addr,
void *  texit 
)

This function will initialize thread stack

Parameters:
tentry the entry of thread
parameter the parameter of entry
stack_addr the beginning stack address
texit the function will be called when thread exit
Returns:
stack address

char rt_serial_getc ( void   ) 

This function read a character from serial without interrupt enable mode

Returns:
the read char

void rt_serial_init ( void   ) 

This function initializes serial

void rt_serial_putc ( const char  c  ) 

This function will write a character to serial without interrupt enable mode

Parameters:
c the char to write


Generated on Thu Oct 9 07:19:09 2008 for RT-Thread Kernel by  doxygen 1.5.7