Changeset 12ae6d9e in rtems
- Timestamp:
- 10/15/01 18:01:12 (21 years ago)
- Branches:
- 4.10, 4.11, 4.8, 4.9, 5, master
- Children:
- 6ce599c
- Parents:
- 3bcc0d8
- Location:
- c/src/lib/libcpu/sh/sh7750
- Files:
-
- 1 added
- 1 deleted
- 5 edited
- 4 moved
Legend:
- Unmodified
- Added
- Removed
-
c/src/lib/libcpu/sh/sh7750/ChangeLog
r3bcc0d8 r12ae6d9e 1 2001-10-15 Ralf Corsepius <corsepiu@faw.uni-ulm.de> 2 3 * include/sh4uart.h: move to include/sh/sh4uart.h. 4 * include/ispsh7750.h: move to include/rtems/score/ispsh7750.h. 5 * include/iosh7750.h: move include/rtems/score/iosh7750.h. 6 * include/sh7750_regs.h: move to include/rtems/score/sh7750_regs.h. 7 * include/rtems/score/ipl.h: move to include/rtems/score/ipl.h. 8 * include/rtems/score/sh4_regs.h: Reintroduce from Alexandra 9 Kossovsky's original sources. 10 * include/Makefile.am: reflect changes above, remove EXTRA_DIST, 11 require automake 1.5. 12 * sci/Makefile.am: Disable compilation of console.c. 13 * sci/sh4uart.c: include <sh/sh4uart.h>, add SH7750_SCSMR_CHK_S, 14 remove SH4_CPU_HZ_Frequency; 15 * score/isph7750.c: Remove #if !defined(sh7750), include sh4_regs.h. 16 1 17 2001-10-12 Joel Sherrill <joel@OARcorp.com> 2 18 -
c/src/lib/libcpu/sh/sh7750/include/Makefile.am
r3bcc0d8 r12ae6d9e 3 3 ## 4 4 5 AUTOMAKE_OPTIONS = foreign 1. 45 AUTOMAKE_OPTIONS = foreign 1.5 6 6 7 7 # NOTE: Unlike other CPUS, we install into a subdirectory to avoid … … 10 10 include_rtems_scoredir = $(includedir)/rtems/score 11 11 12 include_sh_HEADERS = sh4uart.h 13 include_rtems_score_HEADERS = ispsh7750.h iosh7750.h 12 include_sh_HEADERS = sh/sh4uart.h 13 include_rtems_score_HEADERS = \ 14 rtems/score/sh7750_regs.h \ 15 rtems/score/ipl.h \ 16 rtems/score/iosh7750.h \ 17 rtems/score/ispsh7750.h \ 18 rtems/score/sh4_regs.h 14 19 15 20 $(PROJECT_INCLUDE)/sh: 16 21 $(mkinstalldirs) $@ 17 22 18 $(PROJECT_INCLUDE)/sh/%.h: %.h 23 $(PROJECT_INCLUDE)/rtems/score: 24 $(mkinstalldirs) $@ 25 26 $(PROJECT_INCLUDE)/%.h: %.h 19 27 $(INSTALL_DATA) $< $@ 20 28 21 $(PROJECT_INCLUDE)/rtems/score/%.h: %.h 22 $(INSTALL_DATA) $< $@ 23 24 TMPINSTALL_FILES = $(PROJECT_INCLUDE)/sh \ 25 $(include_sh_HEADERS:%=$(PROJECT_INCLUDE)/sh/%) \ 26 $(include_rtems_score_HEADERS:%=$(PROJECT_INCLUDE)/rtems/score/%) 29 TMPINSTALL_FILES = \ 30 $(PROJECT_INCLUDE)/sh \ 31 $(include_sh_HEADERS:%=$(PROJECT_INCLUDE)/%) \ 32 $(PROJECT_INCLUDE)/rtems/score \ 33 $(include_rtems_score_HEADERS:%=$(PROJECT_INCLUDE)/%) 27 34 28 35 all-local: $(TMPINSTALL_FILES) 29 36 30 # FIXME: What are these files here?31 # They should either be installed or removed32 EXTRA_DIST = \33 ipl.h \34 sh4uart.h \35 sh7750_regs.h36 37 37 include $(top_srcdir)/../../../../../../automake/local.am -
c/src/lib/libcpu/sh/sh7750/include/rtems/score/iosh7750.h
r3bcc0d8 r12ae6d9e 45 45 #define __IOSH7750_H 46 46 47 #include "sh7750_regs.h"47 #include <rtems/score/sh7750_regs.h> 48 48 49 49 #endif -
c/src/lib/libcpu/sh/sh7750/sci/Makefile.am
r3bcc0d8 r12ae6d9e 7 7 PGM = $(ARCH)/sci.rel 8 8 9 C_FILES = console.csh4uart.c9 C_FILES = sh4uart.c 10 10 C_O_FILES = $(C_FILES:%.c=$(ARCH)/%.o) 11 11 … … 27 27 .PRECIOUS: $(PGM) 28 28 29 ## FIXME: Moved to libbsp/sh/<BSP>/console/ 30 ## Needs to be reworked to be usable here. 31 EXTRA_DIST = console.c 32 29 33 include $(top_srcdir)/../../../../../../automake/local.am -
c/src/lib/libcpu/sh/sh7750/sci/sh4uart.c
r3bcc0d8 r12ae6d9e 1 1 /* 2 2 * 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.6 3 * 7 4 * Copyright (C) 2000 OKTET Ltd., St.-Petersburg, Russian Fed. … … 23 20 #include <termios.h> 24 21 #include <rtems/libio.h> 25 #include "sh/sh4uart.h"22 #include <sh/sh4uart.h> 26 23 27 24 #ifndef SH4_UART_INTERRUPT_LEVEL 28 25 #define SH4_UART_INTERRUPT_LEVEL 4 29 26 #endif 27 28 /* FIXME: ??? 29 #define SH7750_SCSMR_CKS_S SH7750_SCSMR_CKS_DIV1 30 */ 31 #define SH7750_SCSMR_CKS_S 0 30 32 31 33 /* Forward function declarations */ … … 87 89 { 88 90 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() ; 90 92 91 93 switch (frqcr & SH7750_FRQCR_IFC) -
c/src/lib/libcpu/sh/sh7750/score/ispsh7750.c
r3bcc0d8 r12ae6d9e 42 42 #include <rtems/score/isr.h> 43 43 44 #if !defined (sh7750)45 #error Wrong CPU MODEL46 #endif47 48 44 /* 49 45 * This is a exception vector table … … 54 50 55 51 #include <rtems/score/ispsh7750.h> 52 #include <rtems/score/sh4_regs.h> 56 53 #include <rtems/score/sh7750_regs.h> 57 54
Note: See TracChangeset
for help on using the changeset viewer.