From 4eee8434e151fd542232fcee346d8c7e13fe92c3 Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Sat, 21 Nov 2009 15:45:32 +0000 Subject: 2009-11-21 Fernando Nicodemos * Makefile.am, preinstall.am, at91rm9200/include/at91rm9200.h: Add initial support for USART on at91rm9200. * at91rm9200/include/at91rm9200_usart.h, at91rm9200/usart/usart.c: New files. --- .../lib/libcpu/arm/at91rm9200/include/at91rm9200.h | 24 ++++++++++++++++++---- 1 file changed, 20 insertions(+), 4 deletions(-) (limited to 'c/src/lib/libcpu/arm/at91rm9200/include/at91rm9200.h') diff --git a/c/src/lib/libcpu/arm/at91rm9200/include/at91rm9200.h b/c/src/lib/libcpu/arm/at91rm9200/include/at91rm9200.h index ab80442631..99346dbaa0 100644 --- a/c/src/lib/libcpu/arm/at91rm9200/include/at91rm9200.h +++ b/c/src/lib/libcpu/arm/at91rm9200/include/at91rm9200.h @@ -1,16 +1,21 @@ /* - * Atmel AT91RM9200 Register definitions + * Atmel AT91RM9200 Register definitions, used in KIT637_V6 (CSB637) * * Copyright (c) 2003 by Cogent Computer Systems * Written by Mike Kelly - * + * + * Modified by Fernando Nicodemos + * from NCB - Sistemas Embarcados Ltda. (Brazil) + * * The license and distribution terms for this file may be * found in the file LICENSE in this distribution or at * * http://www.rtems.com/license/LICENSE. * * $Id$ - */ +*/ + + #ifndef __AT91RM9200_H__ #define __AT91RM9200_H__ @@ -103,7 +108,7 @@ typedef volatile unsigned long vulong; #define AIC_SMR_SRC_EDGE_HI (3 << 5) /**************************************************************************/ -/* Debug Unit */ +/* Debug Unit */ /**************************************************************************/ #define DBGU_BASE 0xFFFFF200 #define DBGU_REG(_x_) *(vulong *)(DBGU_BASE + _x_) @@ -122,6 +127,17 @@ typedef volatile unsigned long vulong; #define DBGU_C2R 0x44 /* Chip ID2 Register */ #define DBGU_FNTR 0x48 /* Force NTRST Register */ +/**************************************************************************/ +/* USART 0-3 */ +/**************************************************************************/ +#define USART0_BASE 0xFFFC0000 +#define USART1_BASE 0xFFFC4000 +#define USART2_BASE 0xFFFC8000 +#define USART3_BASE 0xFFFCC000 +/**** The USART3_BASE at the AT91RM9200 Manual is wrong ****/ +/**** Manual revision: Rev. 1768H-ATARM–16-Jun-09 ****/ +//#define USART3_BASE 0xFFECC000 + /****************/ /* System Timer */ /****************/ -- cgit v1.2.3