Changeset 12ae6d9e in rtems for c/src/lib/libcpu/sh/sh7750/sci


Ignore:
Timestamp:
Oct 15, 2001, 6:01:12 PM (19 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, 5, master
Children:
6ce599c
Parents:
3bcc0d8
Message:

2001-10-15 Ralf Corsepius <corsepiu@…>

  • include/sh4uart.h: move to include/sh/sh4uart.h.
  • include/ispsh7750.h: move to include/rtems/score/ispsh7750.h.
  • include/iosh7750.h: move include/rtems/score/iosh7750.h.
  • include/sh7750_regs.h: move to include/rtems/score/sh7750_regs.h.
  • include/rtems/score/ipl.h: move to include/rtems/score/ipl.h.
  • include/rtems/score/sh4_regs.h: Reintroduce from Alexandra Kossovsky's original sources.
  • include/Makefile.am: reflect changes above, remove EXTRA_DIST, require automake 1.5.
  • sci/Makefile.am: Disable compilation of console.c.
  • sci/sh4uart.c: include <sh/sh4uart.h>, add SH7750_SCSMR_CHK_S, remove SH4_CPU_HZ_Frequency;
  • score/isph7750.c: Remove #if !defined(sh7750), include sh4_regs.h.
Location:
c/src/lib/libcpu/sh/sh7750/sci
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libcpu/sh/sh7750/sci/Makefile.am

    r3bcc0d8 r12ae6d9e  
    77PGM = $(ARCH)/sci.rel
    88
    9 C_FILES = console.c sh4uart.c
     9C_FILES = sh4uart.c
    1010C_O_FILES = $(C_FILES:%.c=$(ARCH)/%.o)
    1111
     
    2727.PRECIOUS: $(PGM)
    2828
     29## FIXME: Moved to libbsp/sh/<BSP>/console/
     30## Needs to be reworked to be usable here.
     31EXTRA_DIST = console.c
     32
    2933include $(top_srcdir)/../../../../../../automake/local.am
  • c/src/lib/libcpu/sh/sh7750/sci/sh4uart.c

    r3bcc0d8 r12ae6d9e  
    11/*
    22 * Generic UART Serial driver for SH-4 processors
    3  *
    4  * This driver uses variable SH4_CPU_HZ_Frequency,
    5  * which should be defined in bsp to HZ macro.
    63 *
    74 * Copyright (C) 2000 OKTET Ltd., St.-Petersburg, Russian Fed.
     
    2320#include <termios.h>
    2421#include <rtems/libio.h>
    25 #include "sh/sh4uart.h"
     22#include <sh/sh4uart.h>
    2623
    2724#ifndef SH4_UART_INTERRUPT_LEVEL
    2825#define SH4_UART_INTERRUPT_LEVEL 4
    2926#endif
     27
     28/* FIXME: ???
     29#define SH7750_SCSMR_CKS_S SH7750_SCSMR_CKS_DIV1
     30 */
     31#define SH7750_SCSMR_CKS_S     0
    3032
    3133/* Forward function declarations */
     
    8789{
    8890    rtems_unsigned16 frqcr = *(volatile rtems_unsigned16 *)SH7750_FRQCR;
    89     rtems_unsigned32 Pph = SH4_CPU_HZ_Frequency;
     91    rtems_unsigned32 Pph = rtems_cpu_configuration_get_clicks_per_second() ;
    9092
    9193    switch (frqcr & SH7750_FRQCR_IFC)
Note: See TracChangeset for help on using the changeset viewer.