From e5334b6ea16e1639d1ffdc4ca7d5db5edc00b096 Mon Sep 17 00:00:00 2001 From: Bernhard Urban Date: Mon, 14 Dec 2009 14:05:18 +0100 Subject: [PATCH] cleanup -rw-r--r-- 1 lewurm lewurm 5620 2009-12-14 14:12 pkernel.mhx --- README | 1 + changes_to_HWM.txt | 23 ------------------ pkernel/Makefile | 15 ++++++------ pkernel/flash.c | 7 ------ pkernel/flash.h | 9 +------ pkernel/mb91465k.asm | 11 --------- pkernel/mb91465k.h | 10 -------- readme.txt | 58 -------------------------------------------- 8 files changed, 9 insertions(+), 125 deletions(-) create mode 100644 README delete mode 100644 changes_to_HWM.txt delete mode 100644 readme.txt diff --git a/README b/README new file mode 100644 index 0000000..bd8108e --- /dev/null +++ b/README @@ -0,0 +1 @@ +insert $README here ;) diff --git a/changes_to_HWM.txt b/changes_to_HWM.txt deleted file mode 100644 index e33bd33..0000000 --- a/changes_to_HWM.txt +++ /dev/null @@ -1,23 +0,0 @@ - - -Differences to the manual -------------------------- - - -# Port Data Register - - Bitnames in headerfiles are D7 to D0 - -# ROM Select Register - - ROMS, Bitnames in headerfile are D00 to D15 - -# CAN IFx Data A and Data B Registers IFxDTA_SWPyz - - IFx Data A and Data B Registers with Little endian order are named IFxDTA_SWPyz - for example CAN 0 - Hardware Manual: Address: 0x00C030H; Register Name: IF1DTA20 - Header File : Address: 0x00C030H; Register Name: IF1DTA_SWP20 - -# ADC Status Register, Timing Register, Enable Register and Data Register: - - Status Register: ADCS (16Bit access) in HWM only 2 8Bit types ADCS0 and ADCS1 - - Data Register: ADCR (16Bit access) in HWM only 2 8Bit types ADCR1 and ADCR0 - - Timing Register: ADCT (16Bit access) in HWM only 2 8Bit types ADCT1 and ADCT0 - - Enable Register: ADER (32Bit access) in HWM only 2 16Bit types ADERL and ADERH \ No newline at end of file diff --git a/pkernel/Makefile b/pkernel/Makefile index 3da18c0..ff044d8 100644 --- a/pkernel/Makefile +++ b/pkernel/Makefile @@ -1,16 +1,15 @@ -# TODO: make upload, remove warnings - -# hinweise: -# wenn folgende meldung kommt +# note: +# when this message appears on build #> "*** F9012D : tool execute is failed (fasm911s)" -# per 'wine regedit' den string "Path" in +# you have to set the "Path" environment var in wine. +# start 'wine regedit' and create a string "Path" in #> HKEY_CURRENT_USER/Environment -# setzen, naemlich auf die ausgabe von +# and set it to the output of #> winepath $FUJDEV/Bin -# natuerlich muss $FUJDEV richtig gesetzt sein! +# consider you have to set $FUJDEV properly ifeq ($(strip $(FUJDEV)),) -$(error "Set FUJDEV in your environment. Ususally this is the Rootpath of the Softune installer. You MUST NOT install it through wine.") +$(error "Set FUJDEV in your environment. Ususally this is the Rootpath of the Softune installer package. You MUST NOT install it through wine.") endif PREFIX = wine $(FUJDEV)/Bin/ diff --git a/pkernel/flash.c b/pkernel/flash.c index cd1b20c..a86c205 100644 --- a/pkernel/flash.c +++ b/pkernel/flash.c @@ -1,10 +1,3 @@ -/*****************************************************************************/ -/* THIS SAMPLE CODE IS PROVIDED AS IS AND IS SUBJECT TO ALTERATIONS. FUJITSU */ -/* MICROELECTRONICS ACCEPTS NO RESPONSIBILITY OR LIABILITY FOR ANY ERRORS OR */ -/* ELIGIBILITY FOR ANY PURPOSES. */ -/* (C) Fujitsu Microelectronics Europe GmbH */ -/*****************************************************************************/ - #include "flash.h" #include "mb91465k.h" diff --git a/pkernel/flash.h b/pkernel/flash.h index 0073667..654430f 100644 --- a/pkernel/flash.h +++ b/pkernel/flash.h @@ -1,10 +1,3 @@ -/*****************************************************************************/ -/* THIS SAMPLE CODE IS PROVIDED AS IS AND IS SUBJECT TO ALTERATIONS. FUJITSU */ -/* MICROELECTRONICS ACCEPTS NO RESPONSIBILITY OR LIABILITY FOR ANY ERRORS OR */ -/* ELIGIBILITY FOR ANY PURPOSES. */ -/* (C) Fujitsu Microelectronics Europe GmbH */ -/*****************************************************************************/ - #ifndef __FLASH_H__ #define __FLASH_H__ @@ -31,4 +24,4 @@ unsigned int FLASH_SaveDisableInterruptFlag(void); void FLASH_RestoreInterruptFlag(unsigned int flag); unsigned char FLASH_CheckPendingInterrupt(void); -#endif /* __FLASH_H__ */ +#endif diff --git a/pkernel/mb91465k.asm b/pkernel/mb91465k.asm index d2240e9..3a30673 100644 --- a/pkernel/mb91465k.asm +++ b/pkernel/mb91465k.asm @@ -1,13 +1,2 @@ -/* THIS SAMPLE CODE IS PROVIDED AS IS AND IS SUBJECT TO ALTERATIONS. FUJITSU */ -/* MICROELECTRONICS ACCEPTS NO RESPONSIBILITY OR LIABILITY FOR ANY ERRORS OR */ -/* ELIGIBILITY FOR ANY PURPOSES. */ -/* (C) Fujitsu Microelectronics Europe GmbH */ -/*--------------------------------------------------------------------------- - mb91467d.asm - - - 1.00 UMa Initial Version ------------------------------------------------------------------------------*/ - #define __IO_DEFINE #include "mb91465k.h" diff --git a/pkernel/mb91465k.h b/pkernel/mb91465k.h index d34b99d..bded6da 100644 --- a/pkernel/mb91465k.h +++ b/pkernel/mb91465k.h @@ -16,16 +16,6 @@ /* ELIGIBILITY FOR ANY PURPOSES */ /* (C) Fujitsu Microelectronics Europe GmbH */ /* ************************************************************************* */ -/* ---------------------------------------------------------------------- */ -/* Id: MB91465K.h,v 1.5 2007/01/04 11:04:48 meffen Exp */ -/* ---------------------------------------------------------------------- */ -/* Id: MB91465K.h,v 1.5 2007/01/04 11:04:48 meffen Exp */ -/* - removed LCD and Sound Controller */ -/* Id: MB91465K.h,v 1.4 2006/11/30 14:39:18 meffen Exp */ -/* - -added registers: ADER (32Bit access) */ -/* ADCS (16Bit access) */ -/* ADCR (16Bit access) */ -/* ADCT (16Bit access) */ /* ASSEMBLER DEFINITIONS : */ diff --git a/readme.txt b/readme.txt deleted file mode 100644 index c74f757..0000000 --- a/readme.txt +++ /dev/null @@ -1,58 +0,0 @@ -========================================================================== - FLASH Programming Demo for MB91F465K -========================================================================== - Fujitsu Microelectronics Europe GmbH - http://emea.fujitsu.com/microelectronics - - The following software is for demonstration purposes only. It is not - fully tested, nor validated in order to fullfill its task under all - circumstances. Therefore, this software or any part of it must only be - used in an evaluation laboratory environment. - This software is subject to the rules of our standard DISCLAIMER, that is - delivered with our SW-tools on the Fujitsu Microcontrollers CD - (V3.4 or higher "\START.HTM") or on our Internet Pages: - http://www.fme.gsdc.de/gsdc.htm - http://emea.fujitsu.com/microelectronics -========================================================================== - -History -Date Ver Author Softune Description -10.07.07 1.0 MVo V60L06 First Version - -========================================================================== - -This is simple demo showing how to use the FLASH programming Auto -Algorithms. - -Target of this demo is to show application of the following aspects of -FLASH memory erase/write: - -1) Preparation of FLASH Read/Write Mode (via BootROM routine) -2) Sector Erase -3) Sector Erase Suspend/Resume -4) Write Halfword to FLASH memory addresses - -Remarks: - -A) Reload Timer 0 is setup to demonstrate handling of Interrupt Requests - via polling and subsequent Sector Erase Suspend, Restore Global - Interrupt Flag, Handling of IRQ and Sector Erase Resume. - -B) Handling of RAMCODE is added to Start91460.asm because FLASH prog. - routines have to be run from RAM since no code fetching is possible - while write/erase of FLASH memory. - -Connect MCU UART4 to Terminal Program (19200Baud 8N1). After Power On -a welcome message is output on UART4. The Action of Reload Timer 0 is -to increase a counter displayed on LED D1..D8 of SK-91F465K-120PMT each -0.010s. -The FLASH memory Sector content at Addresses 0xA0000 up to 0xA001F is -shown. -After this the Sector 0xA0000 will be erased by Sector -Erase command (this Sector Erase Commands is repeatedly interrupted by -Reload Timer 0 Interrupts which are handled from FLASH memory (Sector -Erase Suspend/Resume). -When the Sectors are earsed a few data are programmed to some given -addresses in the sector 0xA0000. -Finaly the FLASH memory content at addresses 0xA0000 up to 0xA001F is shown -again to confirm the programmed values. -- 2.25.1