Ver Fonte

Removed all old files, moved to new fix

Janco Kock há 9 anos atrás
pai
commit
e625887b50
100 ficheiros alterados com 0 adições e 8713 exclusões
  1. 0 32
      Makefile
  2. 0 223
      lib/display.c
  3. 0 63
      lib/display.h
  4. 0 119
      lib/fat.h
  5. 0 153
      lib/fatdrv.h
  6. 0 399
      lib/flash.c
  7. 0 68
      lib/flash.h
  8. 0 326
      lib/keyboard.c
  9. 0 112
      lib/keyboard.h
  10. 0 111
      lib/led.c
  11. 0 48
      lib/led.h
  12. 0 371
      lib/log.c
  13. 0 131
      lib/log.h
  14. 0 347
      lib/mmc.c
  15. 0 38
      lib/mmc.h
  16. 0 758
      lib/mmcdrv.c
  17. 0 100
      lib/mmcdrv.h
  18. 0 51
      lib/platform.h
  19. 0 142
      lib/portio.h
  20. 0 151
      lib/remcon.c
  21. 0 52
      lib/remcon.h
  22. 0 471
      lib/rtc.c
  23. 0 158
      lib/rtc.h
  24. 0 228
      lib/spidrv.c
  25. 0 53
      lib/spidrv.h
  26. 0 144
      lib/system.h
  27. 0 183
      lib/typedefs.h
  28. 0 151
      lib/uart0driver.c
  29. 0 60
      lib/uart0driver.h
  30. 0 164
      lib/vs10xx.h
  31. 0 48
      main.c
  32. 0 38
      nutos/nut/Makedefs.arm-ecross-gcc
  33. 0 46
      nutos/nut/Makedefs.arm-ecross-gccdbg
  34. 0 39
      nutos/nut/Makedefs.arm-gcc
  35. 0 47
      nutos/nut/Makedefs.arm-gccdbg
  36. 0 45
      nutos/nut/Makedefs.arm-thumb-gcc
  37. 0 39
      nutos/nut/Makedefs.avr-gcc
  38. 0 46
      nutos/nut/Makedefs.avr-gccdbg
  39. 0 51
      nutos/nut/Makedefs.avr-icc7
  40. 0 40
      nutos/nut/Makedefs.avr32-gcc
  41. 0 46
      nutos/nut/Makedefs.avr32-gccdbg
  42. 0 52
      nutos/nut/Makedefs.avrext-icc7
  43. 0 38
      nutos/nut/Makedefs.cm3-ecross-gcc
  44. 0 52
      nutos/nut/Makedefs.cm3-ecross-gccdbg
  45. 0 39
      nutos/nut/Makedefs.cm3-gcc
  46. 0 54
      nutos/nut/Makedefs.cm3-gccdbg
  47. 0 65
      nutos/nut/Makedefs.h8-gcc
  48. 0 42
      nutos/nut/Makedefs.m68k-gcc
  49. 0 48
      nutos/nut/Makedefs.m68k-gccdbg
  50. 0 63
      nutos/nut/Makedefs.unix-gcc
  51. 0 57
      nutos/nut/Makerules.all
  52. 0 37
      nutos/nut/Makerules.arm-ecross-gcc
  53. 0 37
      nutos/nut/Makerules.arm-ecross-gccdbg
  54. 0 38
      nutos/nut/Makerules.arm-gcc
  55. 0 38
      nutos/nut/Makerules.arm-gccdbg
  56. 0 38
      nutos/nut/Makerules.arm-thumb-gcc
  57. 0 38
      nutos/nut/Makerules.avr-gcc
  58. 0 38
      nutos/nut/Makerules.avr-gccdbg
  59. 0 72
      nutos/nut/Makerules.avr-icc7
  60. 0 38
      nutos/nut/Makerules.avr32-gcc
  61. 0 38
      nutos/nut/Makerules.avr32-gccdbg
  62. 0 72
      nutos/nut/Makerules.avrext-icc7
  63. 0 37
      nutos/nut/Makerules.cm3-ecross-gcc
  64. 0 37
      nutos/nut/Makerules.cm3-ecross-gccdbg
  65. 0 38
      nutos/nut/Makerules.cm3-gcc
  66. 0 38
      nutos/nut/Makerules.cm3-gccdbg
  67. 0 65
      nutos/nut/Makerules.gcc
  68. 0 52
      nutos/nut/Makerules.h8-gcc
  69. 0 70
      nutos/nut/Makerules.licenses
  70. 0 38
      nutos/nut/Makerules.m68k-gcc
  71. 0 38
      nutos/nut/Makerules.m68k-gccdbg
  72. 0 49
      nutos/nut/Makerules.unix-gcc
  73. 0 51
      nutos/nut/Makevars.all
  74. 0 44
      nutos/nut/Makevars.arm-ecross-gcc
  75. 0 46
      nutos/nut/Makevars.arm-gcc
  76. 0 50
      nutos/nut/Makevars.avr-gcc
  77. 0 48
      nutos/nut/Makevars.avr32-gcc
  78. 0 67
      nutos/nut/Makevars.cm3-ecross-gcc
  79. 0 69
      nutos/nut/Makevars.cm3-gcc
  80. 0 78
      nutos/nut/Makevars.gcc
  81. 0 45
      nutos/nut/Makevars.m68k-gcc
  82. 0 3
      nutos/nut/app/Makeburn.arm-jom
  83. 0 209
      nutos/nut/app/Makeburn.arm-oocd
  84. 0 40
      nutos/nut/app/Makeburn.arm-samba
  85. 0 4
      nutos/nut/app/Makeburn.arm-stlink
  86. 0 46
      nutos/nut/app/Makeburn.avr-dude
  87. 0 5
      nutos/nut/app/Makeburn.avr-jtagice
  88. 0 6
      nutos/nut/app/Makeburn.avr-jtagicemkii
  89. 0 4
      nutos/nut/app/Makeburn.avr-uisp-stk500
  90. 0 3
      nutos/nut/app/Makeburn.avr32-jtagicemkii
  91. 0 2
      nutos/nut/app/Makeburn.gba-xport2
  92. 0 90
      nutos/nut/app/Makeburn.stm32-oocd
  93. 0 56
      nutos/nut/app/Makedefs.arm-ecross-gcc
  94. 0 56
      nutos/nut/app/Makedefs.arm-ecross-gccdbg
  95. 0 57
      nutos/nut/app/Makedefs.arm-gcc
  96. 0 57
      nutos/nut/app/Makedefs.arm-gccdbg
  97. 0 57
      nutos/nut/app/Makedefs.arm-thumb-gcc
  98. 0 65
      nutos/nut/app/Makedefs.avr-gcc
  99. 0 58
      nutos/nut/app/Makedefs.avr-gccdbg
  100. 0 49
      nutos/nut/app/Makedefs.avr-icc

+ 0 - 32
Makefile

@@ -1,32 +0,0 @@
-PROJ = bin/internetradioA6
-
-
-LIBDIR = nutos/nutbld/lib
-top_srcdir = nutos/nut
-top_blddir = nutos/nutbld
-top_appdir = nutos/nutapp
-
-INCFIRST=$(INCPRE)$(top_blddir)/include
-include $(top_appdir)/NutConf.mk
-include $(top_srcdir)/app/Makedefs.avr-gcc
-
-
-SRCS =  $(wildcard lib/*.c *.c)
-OBJS =  $(SRCS:%.c=%.o)
-LIBS =  $(LIBDIR)/nutinit.o -lnutpro -lnutnet -lnutos -lnutfs -lnutgorp -lnutarch -lnutdev -lnutarch -lnutcrt $(ADDLIBS)
-
-
-all: $(OBJS) $(TARG) $(ITARG) $(DTARG)
-
-include nutos/nutapp/Makerules
-
-clean:
-	-rm -f $(OBJS)
-	-rm -f $(TARG) $(ITARG) $(DTARG)
-	-rm -f $(PROJ).eep
-	-rm -f $(PROJ).obj
-	-rm -f $(PROJ).map
-	-rm -f $(SRCS:.c=.lst)
-	-rm -f $(SRCS:.c=.bak)
-	-rm -f $(SRCS:.c=.i)
-	-rm -f $(SRCS:.c=.d)

+ 0 - 223
lib/display.c

@@ -1,223 +0,0 @@
-/* ========================================================================
- * [PROJECT]    SIR100
- * [MODULE]     Display
- * [TITLE]      display source file
- * [FILE]       display.c
- * [VSN]        1.0
- * [CREATED]    26092003
- * [LASTCHNGD]  06102006
- * [COPYRIGHT]  Copyright (C) STREAMIT BV
- * [PURPOSE]    contains all interface- and low-level routines to
- *              control the LCD and write characters or strings (menu-items)
- * ======================================================================== */
-
-#define LOG_MODULE  LOG_DISPLAY_MODULE
-
-#include <stdio.h>
-#include <string.h>
-
-#include <sys/types.h>
-#include <sys/timer.h>
-#include <sys/event.h>
-#include <sys/thread.h>
-#include <sys/heap.h>
-
-#include "system.h"
-#include "portio.h"
-#include "display.h"
-#include "log.h"
-
-/*-------------------------------------------------------------------------*/
-/* local defines                                                           */
-/*-------------------------------------------------------------------------*/
-/*-------------------------------------------------------------------------*/
-/* local variable definitions                                              */
-/*-------------------------------------------------------------------------*/
-
-
-/*-------------------------------------------------------------------------*/
-/* local routines (prototyping)                                            */
-/*-------------------------------------------------------------------------*/
-static void LcdWriteByte(u_char, u_char);
-static void LcdWriteNibble(u_char, u_char);
-static void LcdWaitBusy(void);
-
-/*!
- * \addtogroup Display
- */
-
-/*@{*/
-
-/*-------------------------------------------------------------------------*/
-/*                         start of code                                   */
-/*-------------------------------------------------------------------------*/
-
-/* ÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ */
-/*!
- * \brief control backlight
- */
-/* ÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ */
-void LcdBackLight(u_char Mode)
-{
-    if (Mode==LCD_BACKLIGHT_ON)
-    {
-        sbi(LCD_BL_PORT, LCD_BL_BIT);   // Turn on backlight
-    }
-
-    if (Mode==LCD_BACKLIGHT_OFF)
-    {
-        cbi(LCD_BL_PORT, LCD_BL_BIT);   // Turn off backlight
-    }
-}
-
-/* ÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ */
-/*!
- * \brief Write a single character on the LCD
- *
- * Writes a single character on the LCD on the current cursor position
- *
- * \param LcdChar character to write
- */
-/* ÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ */
-void LcdChar(char MyChar)
-{
-    LcdWriteByte(WRITE_DATA, MyChar);
-}
-
-
-/* ÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ */
-/*!
- * \brief Low-level initialisation function of the LCD-controller
- *
- * Initialise the controller and send the User-Defined Characters to CG-RAM
- * settings: 4-bit interface, cursor invisible and NOT blinking
- *           1 line dislay, 10 dots high characters
- *
- */
-/* ÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ */
- void LcdLowLevelInit()
-{
-    u_char i;
-
-    NutDelay(140);                               // wait for more than 140 ms after Vdd rises to 2.7 V
-
-    for (i=0; i<3; ++i)
-    {
-        LcdWriteNibble(WRITE_COMMAND, 0x33);      // function set: 8-bit mode; necessary to guarantee that
-        NutDelay(4);                              // SIR starts up always in 5x10 dot mode
-    }
-
-    LcdWriteNibble(WRITE_COMMAND, 0x22);        // function set: 4-bit mode; necessary because KS0070 doesn't
-    NutDelay(1);                                // accept combined 4-bit mode & 5x10 dot mode programming
-
-    //LcdWriteByte(WRITE_COMMAND, 0x24);        // function set: 4-bit mode, 5x10 dot mode, 1-line
-    LcdWriteByte(WRITE_COMMAND, 0x28);          // function set: 4-bit mode, 5x7 dot mode, 2-lines
-    NutDelay(5);
-
-    LcdWriteByte(WRITE_COMMAND, 0x0C);          // display ON/OFF: display ON, cursor OFF, blink OFF
-    NutDelay(5);
-
-    LcdWriteByte(WRITE_COMMAND, 0x01);          // display clear
-    NutDelay(5);
-
-    LcdWriteByte(WRITE_COMMAND, 0x06);          // entry mode set: increment mode, entire shift OFF
-
-
-    LcdWriteByte(WRITE_COMMAND, 0x80);          // DD-RAM address counter (cursor pos) to '0'
-}
-
-
-/* ÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ */
-/*!
- * \brief Low-level routine to write a byte to LCD-controller
- *
- * Writes one byte to the LCD-controller (by  calling LcdWriteNibble twice)
- * CtrlState determines if the byte is written to the instruction register
- * or to the data register.
- *
- * \param CtrlState destination: instruction or data
- * \param LcdByte byte to write
- *
- */
-/* ÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ */
-static void LcdWriteByte(u_char CtrlState, u_char LcdByte)
-{
-    LcdWaitBusy();                      // see if the controller is ready to receive next byte
-    LcdWriteNibble(CtrlState, LcdByte & 0xF0);
-    LcdWriteNibble(CtrlState, LcdByte << 4);
-
-}
-
-/* ÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ */
-/*!
- * \brief Low-level routine to write a nibble to LCD-controller
- *
- * Writes a nibble to the LCD-controller (interface is a 4-bit databus, so
- * only 4 databits can be send at once).
- * The nibble to write is in the upper 4 bits of LcdNibble
- *
- * \param CtrlState destination: instruction or data
- * \param LcdNibble nibble to write (upper 4 bits in this byte
- *
- */
-/* ÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ */
-static void LcdWriteNibble(u_char CtrlState, u_char LcdNibble)
-{
-    outp((inp(LCD_DATA_DDR) & 0x0F) | 0xF0, LCD_DATA_DDR);  // set data-port to output again
-
-    outp((inp(LCD_DATA_PORT) & 0x0F) | (LcdNibble & 0xF0), LCD_DATA_PORT); // prepare databus with nibble to write
-
-    if (CtrlState == WRITE_COMMAND)
-    {
-        cbi(LCD_RS_PORT, LCD_RS);     // command: RS low
-    }
-    else
-    {
-        sbi(LCD_RS_PORT, LCD_RS);     // data: RS high
-    }
-
-    sbi(LCD_EN_PORT, LCD_EN);
-
-    asm("nop\n\tnop");                    // small delay
-
-    cbi(LCD_EN_PORT, LCD_EN);
-    cbi(LCD_RS_PORT, LCD_RS);
-    outp((inp(LCD_DATA_DDR) & 0x0F), LCD_DATA_DDR);           // set upper 4-bits of data-port to input
-    outp((inp(LCD_DATA_PORT) & 0x0F) | 0xF0, LCD_DATA_PORT);  // enable pull-ups in data-port
-}
-
-/* ÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ */
-/*!
- * \brief Low-level routine to see if the controller is ready to receive
- *
- * This routine repeatetly reads the databus and checks if the highest bit (bit 7)
- * has become '0'. If a '0' is detected on bit 7 the function returns.
- *
- */
-/* ÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ */
-static void LcdWaitBusy()
-{
-    u_char Busy = 1;
-	u_char LcdStatus = 0;
-
-    cbi (LCD_RS_PORT, LCD_RS);              // select instruction register
-
-    sbi (LCD_RW_PORT, LCD_RW);              // we are going to read
-
-    while (Busy)
-    {
-        sbi (LCD_EN_PORT, LCD_EN);          // set 'enable' to catch 'Ready'
-
-        asm("nop\n\tnop");                  // small delay
-        LcdStatus =  inp(LCD_IN_PORT);      // LcdStatus is used elsewhere in this module as well
-        Busy = LcdStatus & 0x80;            // break out of while-loop cause we are ready (b7='0')
-    }
-
-    cbi (LCD_EN_PORT, LCD_EN);              // all ctrlpins low
-    cbi (LCD_RS_PORT, LCD_RS);
-    cbi (LCD_RW_PORT, LCD_RW);              // we are going to write
-}
-
-/* ---------- end of module ------------------------------------------------ */
-
-/*@}*/

+ 0 - 63
lib/display.h

@@ -1,63 +0,0 @@
-/* ========================================================================
- * [PROJECT]    SIR100
- * [MODULE]     Display
- * [TITLE]      display header file
- * [FILE]       display.h
- * [VSN]        1.0
- * [CREATED]    030414
- * [LASTCHNGD]  030414
- * [COPYRIGHT]  Copyright (C) STREAMIT BV 2010
- * [PURPOSE]    API and gobal defines for display module
- * ======================================================================== */
-
-#ifndef _Display_H
-#define _Display_H
-
-
-/*-------------------------------------------------------------------------*/
-/* global defines                                                          */
-/*-------------------------------------------------------------------------*/
-#define DISPLAY_SIZE                16
-#define NROF_LINES                  2
-#define MAX_SCREEN_CHARS            (NROF_LINES*DISPLAY_SIZE)
-
-#define LINE_0                      0
-#define LINE_1                      1
-
-#define FIRSTPOS_LINE_0             0
-#define FIRSTPOS_LINE_1             0x40
-
-
-#define LCD_BACKLIGHT_ON            1
-#define LCD_BACKLIGHT_OFF           0
-
-#define ALL_ZERO          			0x00      // 0000 0000 B
-#define WRITE_COMMAND     			0x02      // 0000 0010 B
-#define WRITE_DATA        			0x03      // 0000 0011 B
-#define READ_COMMAND      			0x04      // 0000 0100 B
-#define READ_DATA         			0x06      // 0000 0110 B
-
-
-/*-------------------------------------------------------------------------*/
-/* typedefs & structs                                                      */
-/*-------------------------------------------------------------------------*/
-
-/*--------------------------------------------------------------------------*/
-/*  Global variables                                                        */
-/*--------------------------------------------------------------------------*/
-
-/*-------------------------------------------------------------------------*/
-/* export global routines (interface)                                      */
-/*-------------------------------------------------------------------------*/
-extern void LcdChar(char);
-extern void LcdBackLight(u_char);
-extern void LcdInit(void);
-extern void LcdLowLevelInit(void);
-
-#endif /* _Display_H */
-/*  ÍÍÍÍ  End Of File  ÍÍÍÍÍÍÍÍ ÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ */
-
-
-
-
-

+ 0 - 119
lib/fat.h

@@ -1,119 +0,0 @@
-/****************************************************************************
-*  This file is part of the AVRIDE device driver.
-*
-*  Copyright (c) 2002-2004 by Michael Fischer. All rights reserved.
-*
-*  Redistribution and use in source and binary forms, with or without 
-*  modification, are permitted provided that the following conditions 
-*  are met:
-*  
-*  1. Redistributions of source code must retain the above copyright 
-*     notice, this list of conditions and the following disclaimer.
-*  2. Redistributions in binary form must reproduce the above copyright
-*     notice, this list of conditions and the following disclaimer in the 
-*     documentation and/or other materials provided with the distribution.
-*  3. Neither the name of the author nor the names of its contributors may 
-*     be used to endorse or promote products derived from this software 
-*     without specific prior written permission.
-*
-*  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 
-*  "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 
-*  LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS 
-*  FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL 
-*  THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, 
-*  INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, 
-*  BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS 
-*  OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED 
-*  AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, 
-*  OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF 
-*  THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 
-*  SUCH DAMAGE.
-*
-****************************************************************************
-*  History:
-*
-*  14.12.02  mifi   First Version 
-*  18.01.03  mifi   Change Licence from GPL to BSD
-*  25.01.03  mifi   Change FAT32Init 
-*                   New function FAT32MountDrive and FAT32UnMountDrive
-*                   Remove FAT32_MAX_FILES, a file handle will be 
-*                   allocated by NutHeapAlloc, therefore we have no
-*                   restrictions about the count of the open file handle.
-*                   (Only by available memory)
-*  27.01.03  mifi   Rename all FAT32xxx function to FATxxx.
-*
-*  28.01.03  mifi   Start porting to Nut/OS 3.X.X
-*  29.06.03  mifi   First ATAPI-Version
-*  24.07.04  mifi   Some changes to support more than one drive (datanut)
-*  25.07.04  mifi   Add support for the PCMCIA_11 hardware.
-*  27.07.04  mifi   Add support for IOCTL function
-****************************************************************************/
-#ifndef __FAT_H__
-#define __FAT_H__
-
-#include <sys/device.h>
-#include "fatdrv.h"
-
-/*-------------------------------------------------------------------------*/
-/* global defines                                                          */
-/*-------------------------------------------------------------------------*/
-
-/*
- * Device mode
- */
-#define FAT_MODE_IDE_HD           0x0000
-#define FAT_MODE_IDE_CF           0x0001
-#define FAT_MODE_MEM_CF           0x0002
-#define FAT_MODE_DATANUT_CF       0x0003
-#define FAT_MODE_DATANUT_IDECF    0x0004
-#define FAT_MODE_DATANUT_IDEWLAN  0x0005
-#define FAT_MODE_USB              0x0006
-#define FAT_MODE_MMC              0x0007
-
-
-/*
- * If the function should be 
- * supported, set it to 1
- */
-#define FAT_SUPPORT_FORMAT        1
-
-/*
- * IOCTL-Function
- */
-#define FAT_IOCTL_QUICK_FORMAT    0x1000
-
-/*-------------------------------------------------------------------------*/
-/* global types                                                            */
-/*-------------------------------------------------------------------------*/
-
-/*-------------------------------------------------------------------------*/
-/* global macros                                                           */
-/*-------------------------------------------------------------------------*/
-#define FAT_IOCTL(_a,_b,_c)   ((NUTDEVICE *)_a)->dev_ioctl((_a), (_b), (_c))
-
-#define FATQuickFormat(_a)    FAT_IOCTL(_a, FAT_IOCTL_QUICK_FORMAT, NULL)
- 
-
-/*-------------------------------------------------------------------------*/
-/* Prototypes                                                              */
-/*-------------------------------------------------------------------------*/
-extern NUTDEVICE devFAT;
-
-#if (FAT_USE_IDE_INTERFACE >= 1)
-extern NUTDEVICE devFATCF;
-extern NUTDEVICE devFATIDE0;
-extern NUTDEVICE devFATIDE1;
-#endif
-
-#if (FAT_USE_USB_INTERFACE >= 1)
-extern NUTDEVICE devFATUSB0;
-#endif
-
-#if (FAT_USE_MMC_INTERFACE >= 1)
-extern NUTDEVICE devFATMMC0;
-extern void FATRelease(void);
-
-#endif
-
-
-#endif                          /* !__FAT_H__ */

+ 0 - 153
lib/fatdrv.h

@@ -1,153 +0,0 @@
-/****************************************************************************
-*  This file is part of the FAT device driver.
-*
-*  Copyright (c) 2002-2004 by Michael Fischer. All rights reserved.
-*
-*  Redistribution and use in source and binary forms, with or without 
-*  modification, are permitted provided that the following conditions 
-*  are met:
-*  
-*  1. Redistributions of source code must retain the above copyright 
-*     notice, this list of conditions and the following disclaimer.
-*  2. Redistributions in binary form must reproduce the above copyright
-*     notice, this list of conditions and the following disclaimer in the 
-*     documentation and/or other materials provided with the distribution.
-*  3. Neither the name of the author nor the names of its contributors may 
-*     be used to endorse or promote products derived from this software 
-*     without specific prior written permission.
-*
-*  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 
-*  "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 
-*  LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS 
-*  FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL 
-*  THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, 
-*  INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, 
-*  BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS 
-*  OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED 
-*  AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, 
-*  OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF 
-*  THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 
-*  SUCH DAMAGE.
-*
-****************************************************************************
-*  History:
-*
-*  03.08.04  mifi   First Version
-****************************************************************************/
-#ifndef __FATDRV_H__
-#define __FATDRV_H__
-
-#include "typedefs.h"
-
-/*-------------------------------------------------------------------------*/
-/* global defines                                                          */
-/*-------------------------------------------------------------------------*/
-
-/*
- * Define the hardware here
- */
-#define FAT_USE_IDE_INTERFACE     0 
-#define FAT_USE_USB_INTERFACE     0
-#define FAT_USE_MMC_INTERFACE     1 
-
-
-#if (FAT_USE_IDE_INTERFACE >= 1)
-#include "ide.h"
-
-#define HW_SUPPORT_WRITE  IDE_SUPPORT_WRITE
-#define HW_SUPPORT_ATAPI  IDE_SUPPORT_ATAPI
-
-#define HW_OK             IDE_OK
-#define HW_ERROR          IDE_ERROR
-
-#define HW_DRIVE_C        IDE_DRIVE_C
-#define HW_DRIVE_D        IDE_DRIVE_D
-#define HW_DRIVE_E        IDE_DRIVE_E
-
-#define HW_SECTOR_SIZE    IDE_SECTOR_SIZE
-#endif /* (FAT_USE_IDE_INTERFACE >= 1) */ 
-
-
-#if (FAT_USE_USB_INTERFACE >= 1)
-#include "usbdrv.h"
-
-#define HW_SUPPORT_WRITE  USB_SUPPORT_WRITE
-#define HW_SUPPORT_ATAPI  USB_SUPPORT_ATAPI
-
-#define HW_OK             USB_OK
-#define HW_ERROR          USB_ERROR
-
-#define HW_DRIVE_C        USB_DRIVE_C
-#define HW_DRIVE_D        USB_DRIVE_D
-#define HW_DRIVE_E        USB_DRIVE_E
-
-#define HW_SECTOR_SIZE    USB_SECTOR_SIZE
-
-#endif /* (FAT_USE_USB_INTERFACE >= 1) */
-
-
-#if (FAT_USE_MMC_INTERFACE >= 1)
-#include "mmcdrv.h"
-
-#define HW_SUPPORT_WRITE  MMC_SUPPORT_WRITE
-#define HW_SUPPORT_ATAPI  MMC_SUPPORT_ATAPI
-
-#define HW_OK             MMC_OK
-#define HW_ERROR          MMC_ERROR
-
-#define HW_DRIVE_C        MMC_DRIVE_C
-#define HW_DRIVE_D        MMC_DRIVE_C
-#define HW_DRIVE_E        MMC_DRIVE_C
-
-#define HW_SECTOR_SIZE    MMC_SECTOR_SIZE
-
-#endif /* (FAT_USE_MMC_INTERFACE >= 1) */
-
-/*-------------------------------------------------------------------------*/
-/* global types                                                            */
-/*-------------------------------------------------------------------------*/
-
-/*-------------------------------------------------------------------------*/
-/* global macros                                                           */
-/*-------------------------------------------------------------------------*/
-
-/*-------------------------------------------------------------------------*/
-/* Prototypes                                                              */
-/*-------------------------------------------------------------------------*/
-#if (FAT_USE_IDE_INTERFACE >= 1)
-#define HWInit              IDEInit
-#define HWMountAllDevices   IDEMountAllDevices
-#define HWGetSectorSize     IDEGetSectorSize
-#define HWIsCDROMDevice     IDEIsCDROMDevice
-#define HWIsZIPDevice       IDEIsZIPDevice
-#define HWUnMountDevice     IDEUnMountDevice
-#define HWGetTotalSectors   IDEGetTotalSectors
-#define HWReadSectors       IDEReadSectors  
-#define HWWriteSectors      IDEWriteSectors
-#endif /* (FAT_USE_IDE_INTERFACE >= 1) */ 
-
-#if (FAT_USE_USB_INTERFACE >= 1)
-#define HWInit              USBInit
-#define HWMountAllDevices   USBMountAllDevices
-#define HWGetSectorSize     USBGetSectorSize
-#define HWIsCDROMDevice     USBIsCDROMDevice
-#define HWIsZIPDevice       USBIsZIPDevice
-#define HWUnMountDevice     USBUnMountDevice
-#define HWGetTotalSectors   USBGetTotalSectors
-#define HWReadSectors       USBReadSectors  
-#define HWWriteSectors      USBWriteSectors
-#endif /* (FAT_USE_USB_INTERFACE == 1) */
-
-#if (FAT_USE_MMC_INTERFACE >= 1)
-#define HWInit              MMCInit
-#define HWMountAllDevices   MMCMountAllDevices
-#define HWGetSectorSize     MMCGetSectorSize
-#define HWIsCDROMDevice     MMCIsCDROMDevice
-#define HWIsZIPDevice       MMCIsZIPDevice
-#define HWUnMountDevice     MMCUnMountDevice
-#define HWGetTotalSectors   MMCGetTotalSectors
-#define HWReadSectors       MMCReadSectors  
-#define HWWriteSectors      MMCWriteSectors
-#endif /* (FAT_USE_MMC_INTERFACE == 1) */
-
-#endif /* !__FATDRV_H__ */

+ 0 - 399
lib/flash.c

@@ -1,399 +0,0 @@
-/* ========================================================================
- * [PROJECT]    SIR
- * [MODULE]     Flash
- * [TITLE]      Routines for Atmel AT45 serial dataflash memory chips.
- * [FILE]       flash.c
- * [VSN]        1.0
- * [CREATED]    11042007
- * [LASTCHNGD]  11042007
- * [COPYRIGHT]  Copyright (C) STREAMIT BV 2010
- * [PURPOSE]    contains all interface- and low-level routines to
- *              read/write/delete blocks in the serial DataFlash (AT45DBXX)
- * ======================================================================== */
-
-#define LOG_MODULE  LOG_FLASH_MODULE
-
-//#include <stdio.h>
-#include <cfg/os.h>
-#include <cfg/memory.h>
-
-#include <sys/timer.h>
-
-#include <string.h>
-#include <stdlib.h>
-
-#include "typedefs.h"
-#include "flash.h"
-#include "portio.h"
-#include "log.h"
-#include "spidrv.h"
-
-
-/*-------------------------------------------------------------------------*/
-/* local defines                                                           */
-/*-------------------------------------------------------------------------*/
-#ifndef MAX_AT45_CMDLEN
-#define MAX_AT45_CMDLEN         8
-#endif
-
-#ifndef AT45_ERASE_WAIT
-#define AT45_ERASE_WAIT         3000
-#endif
-
-#ifndef AT45_CHIP_ERASE_WAIT
-#define AT45_CHIP_ERASE_WAIT    50000
-#endif
-
-#ifndef AT45_WRITE_POLLS
-#define AT45_WRITE_POLLS        1000
-#endif
-
-#define DFCMD_READ_PAGE         0xD2    /* Read main memory page. */
-#define DFCMD_READ_STATUS       0xD7    /* Read status register. */
-#define DFCMD_CONT_READ         0xE8    /* Continuos read. */
-#define DFCMD_PAGE_ERASE        0x81    /* Page erase. */
-#define DFCMD_BUF1_WRITE        0x84    /* Buffer 1 write. */
-#define DFCMD_BUF1_FLASH        0x83    /* Buffer 1 flash with page erase. */
-
-/*
- *  \brief last page of flash (264 bytes) can be dedicated for parameter storage
- *   Special routines are provided for that goal but can be disabled here to save
- *   codespace (about 360 bytes of code for GCC)
- */
-
-//#define USE_FLASH_PARAM_PAGE
-
-/*-------------------------------------------------------------------------*/
-/* typedefs & structs                                                      */
-/*-------------------------------------------------------------------------*/
-/*!
- * \brief Known device type entry.
- */
-typedef struct _AT45_DEVTAB
-{
-    u_long devt_pages;
-    u_int devt_pagsiz;
-    u_int devt_offs;
-    u_char devt_srmsk;
-    u_char devt_srval;
-} AT45_DEVTAB;
-
-/*!
- * \brief Active device entry.
- */
-typedef struct _AT45DB_DCB
-{
-    AT45_DEVTAB *dcb_devt;
-    u_char dcb_cmdbuf[MAX_AT45_CMDLEN];
-} AT45DB_DCB;
-
-/*!
- * \brief Table of known Dataflash types.
- */
-AT45_DEVTAB at45_devt[] = {
-    {512,  264,  9,  0x3C, 0x0C},   // AT45DB011B - 128kB
-    {1025, 264,  9,  0x3C, 0x14},   // AT45DB021B - 256kB
-    {2048, 264,  9,  0x3C, 0x1C},   // AT45DB041B - 512kB
-    {4096, 264,  9,  0x3C, 0x24},   // AT45DB081B - 1MB
-    {4096, 528,  10, 0x3C, 0x2C},   // AT45DB0161B - 2MB
-    {8192, 528,  10, 0x3C, 0x34},   // AT45DB0321B - 4MB
-    {8192, 1056, 11, 0x38, 0x38},   // AT45DB0642 - 8MB
-    {0,    0,    0,  0,    0}       // End of table
-};
-
-/*-------------------------------------------------------------------------*/
-/* local variable definitions                                              */
-/*-------------------------------------------------------------------------*/
-/*!
- * \brief Table of active devices.
- */
-static AT45DB_DCB dcbtab;
-
-/*-------------------------------------------------------------------------*/
-/* local routines (prototyping)                                            */
-/*-------------------------------------------------------------------------*/
-static int At45dbTransfer(CONST void *txbuf, void *rxbuf, int xlen, CONST void *txnbuf, void *rxnbuf, int xnlen);
-
-/*!
- * \addtogroup SerialFlash
- */
-
-/*@{*/
-
-/*-------------------------------------------------------------------------*/
-/*                         start of code                                   */
-/*-------------------------------------------------------------------------*/
-
-/*!
- * \brief mid-level SPI-interface routine
- *
- *  This routine handles sending a command an reading back the reply in one routine
- *  It will perform 'xlen' + 'xnlen' SPI-byte cycles. During the 'xlen' cycles, data in 'txbuf'
- *  is sent using the SPI, and each resulting byte is stored in 'rxbuf'. Then it starts with
- *  the 'xnlen' cycles whereby the contents of the 'txnbuf' are sent using the SPI.
- *  Each resulting byte then is stored in 'rxnbuf'
- */
-//                                        cb,          cb,        len,             tdata,         rdata,      datalen
-static int At45dbTransfer(CONST void *txbuf, void *rxbuf, int xlen, CONST void *txnbuf, void *rxnbuf, int xnlen)
-{   int i;
-    u_char *ptTxbuf, *ptRxbuf;
-
-    SPIselect(SPI_DEV_FLASH);
-
-    ptTxbuf=(u_char*)txbuf;
-    ptRxbuf=(u_char*)rxbuf;
-    /*
-     *  send command, store the bytes that were read the same time
-     */
-    for (i=0; i<xlen; ++i)
-    {
-        *ptRxbuf++=SPItransferByte(*ptTxbuf++);
-    }
-
-    ptTxbuf=(u_char*)txnbuf;
-    ptRxbuf=(u_char*)rxnbuf;
-    /*
-     *  send dummy data, store the bytes that were read the same time
-     */
-    for (i=0; i<xnlen; ++i)
-    {
-        *ptRxbuf++=SPItransferByte(*ptTxbuf++);
-    }
-
-    SPIdeselect();
-
-    return(0);  // always...
-
-}
-
-/*!
- * \brief send a command to the AT45dbXX
- *
- */
-int At45dbSendCmd(u_char op, u_long parm, int len, CONST void *tdata, void *rdata, int datalen)
-{
-    u_char *cb = dcbtab.dcb_cmdbuf;
-
-    if (len > MAX_AT45_CMDLEN)
-    {
-        return (-1);
-    }
-    memset(cb, 0, len);
-    cb[0] = op;
-    if (parm)
-    {
-        cb[1] = (u_char) (parm >> 16);
-        cb[2] = (u_char) (parm >> 8);
-        cb[3] = (u_char) parm;
-    }
-    return (At45dbTransfer(cb, cb, len, tdata, rdata, datalen));
-}
-
-/*!
- * \brief read status
- *
- */
-u_char At45dbGetStatus()
-{
-    u_char buf[2] = { DFCMD_READ_STATUS, 0xFF};
-
-    if (At45dbTransfer(buf, buf, 2, NULL, NULL, 0))
-    {
-        return(u_char) - 1;
-    }
-    return (buf[1]);
-}
-
-/*!
- * \brief Wait until flash memory cycle finished.
- *
- * \return 0 on success or -1 in case of an error.
- */
-int At45dbWaitReady(u_long tmo, int poll)
-{
-    u_char sr;
-
-    while (((sr = At45dbGetStatus()) & 0x80) == 0)
-    {
-        if (!poll)
-        {
-            NutSleep(1);
-        }
-        if (tmo-- == 0)
-        {
-            return (-1);
-        }
-    }
-    return (0);
-}
-
-/*!
- * \brief runtime detection of serial flash device
- */
-int At45dbInit()
-{
-    u_char sr;
-    u_char i;
-
-    At45dbGetStatus();
-    sr = At45dbGetStatus();
-
-    for (i=0; at45_devt[i].devt_pages; i++)
-    {
-        if ((sr & at45_devt[i].devt_srmsk) == at45_devt[i].devt_srval)
-        {
-            dcbtab.dcb_devt = &at45_devt[i];
-            break;
-        }
-    }
-    return (i);
-}
-
-/*!
- * \brief Erase sector at the specified offset.
- */
-int At45dbPageErase(u_int pgn)
-{
-    return (At45dbSendCmd(DFCMD_PAGE_ERASE, pgn, 4, NULL, NULL, 0));
-}
-
-/*!
- * \brief Erase entire flash memory chip.
- */
-int At45dbChipErase(void)
-{
-    return (-1);
-}
-
-/*!
- * \brief Read data from flash memory.
- *
- * \param pgn  Page number to read, starting at 0.
- * \param data Points to a buffer that receives the data.
- * \param len  Number of bytes to read.
- *
- * \return 0 on success or -1 in case of an error.
- */
-int At45dbPageRead(u_long pgn, void *data, u_int len)
-{
-    pgn <<= dcbtab.dcb_devt->devt_offs;
-    return (At45dbSendCmd(DFCMD_CONT_READ, pgn, 8, data, data, len));
-}
-
-/*!
- * \brief Write data into flash memory.
- *
- * The related sector must have been erased before calling this function.
- *
- * \param pgn  Start location within the chip, starting at 0.
- * \param data Points to a buffer that contains the bytes to be written.
- * \param len  Number of bytes to write.
- *
- * \return 0 on success or -1 in case of an error.
- */
-int At45dbPageWrite(u_long pgn, CONST void *data, u_int len)
-{
-    int rc = -1;
-    void *rp;
-
-    if ((rp = malloc(len)) != NULL)
-    {
-        /* Copy data to dataflash RAM buffer. */
-        if (At45dbSendCmd(DFCMD_BUF1_WRITE, 0, 4, data, rp, len) == 0)
-        {
-            /* Flash RAM buffer. */
-            pgn <<= dcbtab.dcb_devt->devt_offs;
-            if (At45dbSendCmd(DFCMD_BUF1_FLASH, pgn, 4, NULL, NULL, 0) == 0)
-            {
-                rc = At45dbWaitReady(AT45_WRITE_POLLS, 1);
-            }
-        }
-        free(rp);
-    }
-    return (rc);
-}
-
-#ifdef USE_FLASH_PARAM_PAGE
-
-u_long At45dbParamPage(void)
-{
-#ifdef AT45_CONF_PAGE
-    return (AT45_CONF_PAGE);
-#else
-    return (dcbtab.dcb_devt->devt_pages - 1);
-#endif
-}
-
-int At45dbParamSize(void)
-{
-    int rc;
-
-#ifdef AT45_CONF_SIZE
-    rc = AT45_CONF_SIZE;
-#else
-    rc = dcbtab.dcb_devt->devt_pagsiz;
-#endif
-    return (rc);
-}
-
-/*!
- * \brief Load configuration parameters from flash memory.
- *
- * \param pos  Start location within configuration sector.
- * \param data Points to a buffer that receives the contents.
- * \param len  Number of bytes to read.
- *
- * \return Always 0.
- */
-int At45dbParamRead(u_int pos, void *data, u_int len)
-{
-    int rc = -1;
-    u_char *buff;
-    int csize = At45dbParamSize();
-    u_long cpage = At45dbParamPage();
-
-    /* Load the complete configuration area. */
-    if (csize > len && (buff = malloc(csize)) != NULL)
-    {
-        rc = At45dbPageRead(cpage, buff, csize);
-        /* Copy requested contents to caller's buffer. */
-        memcpy(data, buff + pos, len);
-        free(buff);
-    }
-    return (rc);
-}
-
-/*!
- * \brief Store configuration parameters in flash memory.
- *
- * \param pos   Start location within configuration sector.
- * \param data  Points to a buffer that contains the bytes to store.
- * \param len   Number of bytes to store.
- *
- * \return 0 on success or -1 in case of an error.
- */
-int At45dbParamWrite(u_int pos, CONST void *data, u_int len)
-{
-    int rc = -1;
-    u_char *buff;
-    int csize = At45dbParamSize();
-    u_long cpage = At45dbParamPage();
-
-    /* Load the complete configuration area. */
-    if (csize > len && (buff = malloc(csize)) != NULL)
-    {
-        rc = At45dbPageRead(cpage, buff, csize);
-        /* Compare old with new contents. */
-        if (memcmp(buff + pos, data, len))
-        {
-            /* New contents differs. Copy it into the sector buffer. */
-            memcpy(buff + pos, data, len);
-            /* Erase sector and write new data. */
-            rc = At45dbPageWrite(cpage, buff, csize);
-        }
-        free(buff);
-    }
-    return (rc);
-}
-
-#endif // USE_FLASH_PARAM_PAGE

+ 0 - 68
lib/flash.h

@@ -1,68 +0,0 @@
-/* ========================================================================
- * [PROJECT]    SIR
- * [MODULE]     Flash
- * [TITLE]      Routines for Atmel AT45 serial dataflash memory chips.
- * [FILE]       flash.c
- * [VSN]        1.0
- * [CREATED]    11042007
- * [LASTCHNGD]  11042007
- * [COPYRIGHT]  Copyright (C) STREAMIT BV 2010
- * [PURPOSE]    contains all interface- and low-level routines to
- *              read/write/delete blocks in the serial DataFlash (AT45DBXX)
- * ======================================================================== */
-#ifndef _Flash_H
-#define _Flash_H
-
-
-#include <sys/types.h>
-
-/*-------------------------------------------------------------------------*/
-/* global defines                                                          */
-/*-------------------------------------------------------------------------*/
-
-/*
- *  next defines have a 1-1 relationship to the index in the 'at45_devt'
- *  array, so do not change the values
- */
-#define AT45DB011B  0
-#define AT45DB021B  1
-#define AT45DB041B  2
-#define AT45DB081B  3
-#define AT45DB0161B 4
-#define AT45DB0321B 5
-#define AT45DB0642  6
-
-/*-------------------------------------------------------------------------*/
-/* typedefs & structs                                                      */
-/*-------------------------------------------------------------------------*/
-
-/*-------------------------------------------------------------------------*/
-/*  Global variables                                                       */
-/*-------------------------------------------------------------------------*/
-
-/*-------------------------------------------------------------------------*/
-/* export global routines (interface)                                      */
-/*-------------------------------------------------------------------------*/
-
-extern int At45dbSendCmd(u_char op, u_long parm, int len, CONST void *tdata, void *rdata, int datalen);
-extern u_char At45dbGetStatus(void);
-extern int At45dbWaitReady(u_long tmo, int poll);
-extern int At45dbInit(void);
-extern int At45dbPageErase(u_int off);
-extern int At45dbChipErase(void);
-extern int At45dbPageRead(u_long pgn, void *data, u_int len);
-extern int At45dbPageWrite(u_long pgn, CONST void *data, u_int len);
-
-#ifdef USE_FLASH_PARAM_PAGE
-extern int At45dbParamRead(u_int pos, void *data, u_int len);
-extern int At45dbParamWrite(u_int pos, CONST void *data, u_int len);
-#endif // USE_FLASH_PARAM_PAGE
-
-#endif /* _Flash_H */
-/*  ÍÍÍÍ  End Of File  ÍÍÍÍÍÍÍÍ ÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ */
-
-
-
-
-
-

+ 0 - 326
lib/keyboard.c

@@ -1,326 +0,0 @@
-/*! \file
- * keyboard.c contains the low-level keyboard scan and the
- * interfacing with NutOS (signalling)
- *  Copyright STREAMIT, 2010.
- *  \version 1.0
- *  \date 26 september 2003
- */
-
-
-#define LOG_MODULE  LOG_KEYBOARD_MODULE
-
-#include <sys/atom.h>
-#include <sys/event.h>
-
-//#pragma text:appcode
-
-#include "keyboard.h"
-#include "portio.h"
-#include "system.h"
-
-/*-------------------------------------------------------------------------*/
-/* local defines                                                          */
-/*-------------------------------------------------------------------------*/
-/*
- *  definition of raw keys as found in keyboardscan
- *  Note that these 16-bit values are remapped before
- *  the application uses them
- */
-#define RAW_KEY_01         0xFFFB
-#define RAW_KEY_02         0xFFFD
-#define RAW_KEY_03         0xFF7F
-#define RAW_KEY_04         0xFFF7
-#define RAW_KEY_05         0xFFFE
-#define RAW_KEY_ALT        0xFFBF
-
-#define RAW_KEY_ESC        0xFFEF
-#define RAW_KEY_UP         0xF7FF
-#define RAW_KEY_OK         0xFFDF
-#define RAW_KEY_LEFT       0xFEFF
-#define RAW_KEY_DOWN       0xFBFF
-#define RAW_KEY_RIGHT      0xFDFF
-
-#define RAW_KEY_POWER      0xEFFF
-
-#define RAW_KEY_SETUP      0xFFCF       // combine 'ESCAPE' (0xFFEF') with 'OK' (0xFFDF)
-
-/*-------------------------------------------------------------------------*/
-/* local variable definitions                                              */
-/*-------------------------------------------------------------------------*/
-static HANDLE  hKBEvent;
-static u_short KeyFound;        // use short for 4 nibbles (4 colums)
-static u_char KeyBuffer[KB_BUFFER_SIZE];
-static u_short HoldCounter;
-static u_char KbState;
-static u_char KeyRepeatArray[KEY_NROF_KEYS];
-
-/*-------------------------------------------------------------------------*/
-/* local routines (prototyping)                                            */
-/*-------------------------------------------------------------------------*/
-static void KbClearEvent(HANDLE*);
-static u_char KbRemapKey(u_short LongKey);
-
-
-/*!
- * \addtogroup Keyboard
- */
-
-/*@{*/
-
-/*-------------------------------------------------------------------------*/
-/*                         start of code                                   */
-/*-------------------------------------------------------------------------*/
-
-
-
-
-/* ÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ */
-/*!
- * \brief Clear the eventbuffer of this module
- *
- * This routine is called during module initialization.
- *
- * \param *pEvent pointer to the event queue
- */
-/* ÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ */
-static void KbClearEvent(HANDLE *pEvent)
-{
-    NutEnterCritical();
-
-    *pEvent = 0;
-
-    NutExitCritical();
-}
-
-/* ÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ */
-/*!
- * \brief Low-level keyboard scan
- *
- * KbScan is called each 4.44 msec from MainBeat interrupt
- * Remember: pressed key gives a '0' on KB_IN_READ
- *
- * After each keyboard-scan, check for a valid MMCard
- */
-/* ÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ */
-void KbScan()
-{
-    u_char KeyNibble0, KeyNibble1, KeyNibble2, KeyNibble3;
-
-    /*
-     *  we must scan 4 colums, 2 in PORTG and 2 in PORTD
-     */
-
-#ifndef USE_JTAG
-    // scan keys in COL 0
-    cbi (KB_OUT_WRITE_A, KB_COL_0);
-    asm("nop\n\tnop");                    // small delay
-    KeyNibble0 = inp(KB_IN_READ) & KB_ROW_MASK;
-    sbi (KB_OUT_WRITE_A, KB_COL_0);
-
-    // scan keys in COL 1
-    cbi (KB_OUT_WRITE_A, KB_COL_1);
-    asm("nop\n\tnop");                    // small delay
-    KeyNibble1 = inp(KB_IN_READ) & KB_ROW_MASK;
-    sbi (KB_OUT_WRITE_A, KB_COL_1);
-
-    // scan keys in COL 2
-    cbi (KB_OUT_WRITE_B, KB_COL_2);
-    asm("nop\n\tnop");                    // small delay
-    KeyNibble2 = inp(KB_IN_READ) & KB_ROW_MASK;
-    sbi (KB_OUT_WRITE_B, KB_COL_2);
-
-    // scan keys in COL 3
-    cbi (KB_OUT_WRITE_B, KB_COL_3);
-    asm("nop\n\tnop");                    // small delay
-    KeyNibble3 = inp(KB_IN_READ) & KB_ROW_MASK;
-    sbi (KB_OUT_WRITE_B, KB_COL_3);
-
-
-    /*
-     *  we want to detect exactly 1 key in exactly 1 colom
-     *  exception is the combination of VOLMIN & POWER (-> SETUP)
-     *  meaning: Keynibble0==[0000 1011] (KEY_VOLMIN) & KeyNibble1==[0111 0000] (KEY_POWER)
-     */
-
-    /*
-     *  put all 4 seperate nibbles in place in 'KeyFound'
-     *
-     *  KeyNibble0 on b3...b0  (col 0)
-     *  KeyNibble1 on b7...b4  (col 1)
-     *  KeyNibble2 on b11..b8  (col 2)
-     *  KeyNibble3 on b15..b12 (col 3)
-     */
-
-    KeyFound =  ((KeyNibble0>>4) & 0x000F);     // b7..b4 in 'KeyNibble0' to b3...b0  in 'KeyFound' >> shift 4 right
-    KeyFound |= (KeyNibble1 & 0x00F0);          // b7..b4 in 'KeyNibble1' to b7...b4  in 'KeyFound' -- do nothing
-    KeyFound |= ((KeyNibble2<<4) & 0x0F00);     // b7..b4 in 'KeyNibble2' to b11..b8  in 'KeyFound' << shift 4 left
-    KeyFound |= ((KeyNibble3<<8) & 0xF000);     // b7..b4 in 'KeyNibble3' to b15..b12 in 'KeyFound' << shift 8 left
-
-
-#endif  // USE_JTAG
-
-}
-
-/* ÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ */
-/*!
- * \brief Remap the 16-bit value for the active key to an 8-bit value
- *
- */
-/* ÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ */
-static u_char KbRemapKey(u_short LongKey)
-{
-    switch (LongKey)
-    {
-        case RAW_KEY_01:        return(KEY_01);
-        case RAW_KEY_02:        return(KEY_02);
-        case RAW_KEY_03:        return(KEY_03);
-        case RAW_KEY_04:        return(KEY_04);
-        case RAW_KEY_05:        return(KEY_05);
-        case RAW_KEY_ALT:       return(KEY_ALT);
-
-        case RAW_KEY_ESC:       return(KEY_ESC);
-        case RAW_KEY_UP:        return(KEY_UP);
-        case RAW_KEY_OK:        return(KEY_OK);
-        case RAW_KEY_LEFT:      return(KEY_LEFT);
-        case RAW_KEY_DOWN:      return(KEY_DOWN);
-        case RAW_KEY_RIGHT:     return(KEY_RIGHT);
-
-        case RAW_KEY_POWER:     return(KEY_POWER);
-        case RAW_KEY_SETUP:     return(KEY_SETUP);      // combined key
-
-        default:                return(KEY_UNDEFINED);
-    }
-}
-
-/* ÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ */
-/*!
- * \brief Return the repeating property for this key
- *
- * \return 'TRUE' in case the key was repeating, 'FALSE' if not
- *
- */
-/* ÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ */
-static u_char KbKeyIsRepeating(u_short Key)
-{
-    return(KeyRepeatArray[KbRemapKey(Key)]==KEY_REPEAT);
-}
-
-/* ÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ */
-/*!
- * \brief set the property of this key to repeating or not-repeating
- *
- */
-/* ÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ */
-void KbSetKeyRepeating(u_char Key, u_char Property)
-{
-    // check arguments
-    if (((Property==KEY_REPEAT) || (Property==KEY_NO_REPEAT)) && (Key < KEY_NROF_KEYS))
-    {
-        KeyRepeatArray[Key]=Property;
-    }
-}
-
-/* ÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ */
-/*!
- * \brief Wait until an event was pushed on the eventqueue for this module
- *
- * This routine provides the event interface for other Luks-modules
- *
- * \param dwTimeout time in milisecs that this routine should wait before
- * it will return with KB_ERROR
- *
- * \return KB_OK in case an event was found
- * \return KB_ERROR in case no event was found (return due to timeout)
- */
-/* ÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ */
-int KbWaitForKeyEvent(u_long dwTimeout)
-{
-
-    int nError = KB_OK;
-    int nTimeout;
-
-    nTimeout = NutEventWait(&hKBEvent, dwTimeout);
-    if (nTimeout == -1)
-    {
-        nError = KB_ERROR;
-    }
-
-    return(nError);
-}
-
-/* ÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ */
-/*!
- * \brief Return the databyte that was receeived in the IR-stream
- *
- * In case a valid key is found in the keyboard scan, the key-code is
- * stored in the keyboardbuffer. This routine returns the first available
- * valid key in this buffer
-
- * \return the keycode that was found by the keyboard scan
- *
- * \todo implement a key-buffer for this routine
- */
-/* ÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ */
-u_char KbGetKey()
-{
-    return(KeyBuffer[0]);
-}
-
-/*!
- * \brief inject a virtual key into the system
- *
- */
-void KbInjectKey(u_char VirtualKey)
-{
-    KeyBuffer[0]=VirtualKey;
-    NutEventPostFromIrq(&hKBEvent);   // 'valid key' detected -> generate Event
-}
-/* ÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ */
-/*!
- * \brief Initialise the Keyboard module
- *
- *
- * - initialise the keyboard read- and write port
- * - flush the keyboardbuffer
- * - flush the eventqueue for this module
- *
- * \note PORTF uses internal pull-ups. That's why a '1' is read
- * when no key is pressed. Use negative logic to detect keys.
- * So default state of the colums is '1'
- */
-/* ÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ */
-void KbInit()
-{
-    u_char i;
-
-    sbi (KB_OUT_WRITE_A, KB_COL_0);
-    sbi (KB_OUT_WRITE_A, KB_COL_1);
-    sbi (KB_OUT_WRITE_B, KB_COL_2);
-    sbi (KB_OUT_WRITE_B, KB_COL_3);
-
-    KbState = KB_IDLE;
-    KeyFound = KEY_NO_KEY;
-
-    KbClearEvent(&hKBEvent);
-
-    for (i=0;i<KB_BUFFER_SIZE;++i)
-    {
-        KeyBuffer[i] = (u_char)KEY_NO_KEY;
-    }
-
-    for (i=0; i<KEY_NROF_KEYS; ++i)
-    {
-        KeyRepeatArray[i]=KEY_NO_REPEAT;
-    }
-
-    HoldCounter=0;
-
-    // arrow keys are repeating keys by default
-    KbSetKeyRepeating(KEY_UP, KEY_REPEAT);
-    KbSetKeyRepeating(KEY_DOWN, KEY_REPEAT);
-    KbSetKeyRepeating(KEY_LEFT, KEY_REPEAT);
-    KbSetKeyRepeating(KEY_RIGHT, KEY_REPEAT);
-}
-/* ---------- end of module ------------------------------------------------ */
-
-/*@}*/

+ 0 - 112
lib/keyboard.h

@@ -1,112 +0,0 @@
-/* ========================================================================
- * [PROJECT]    SIR
- * [MODULE]     Keyboard module
- * [TITLE]      keyboard module source file
- * [FILE]       keyboard.h
- * [VSN]        1.0
- * [CREATED]    28 july 2003
- * [LASTCHNGD]  18 august 2003
- * [COPYRIGHT]  Copyright (C) STREAMIT BV 2010
- * [PURPOSE]    Keyboard routines
- * ======================================================================== */
-
-/*-------------------------------------------------------------------------*/
-/* global defines                                                          */
-/*-------------------------------------------------------------------------*/
-#define KB_COL_0       3
-#define KB_COL_1       4
-#define KB_COL_2       3
-#define KB_COL_3       2
-
-#define KB_ROW_0       0
-#define KB_ROW_1       1
-#define KB_ROW_2       2
-#define KB_ROW_3       3
-
-#define KB_ROW_MASK    0xF0
-
-#define KB_OK          0x00
-#define KB_ERROR       0x01
-
-/* state machine defines -------------------------------------------------- */
-#define KB_IDLE        0x00
-#define KB_KEY         0x01
-#define KB_VALID       0x02
-#define KB_RELEASE     0x03
-
-#define KB_COUNTER_OK  0x03    // # a key must be seen before declared 'valid'
-#define KB_LONG_HOLD_TIME 500  // 500 x 4.4 msec = 2200 msec
-#define KB_BUFFER_SIZE 1
-
-
-/*
- *  below are the keys after they where remapped to 8-bit values
- *  These definitions are used by the application
- */
-
-#define KEY_SPEC       0
-#define KEY_01         1
-#define KEY_02         2
-#define KEY_03         3
-#define KEY_04         4
-#define KEY_05         5
-#define KEY_ALT        6
-
-#define KEY_ESC        7
-#define KEY_UP         8
-#define KEY_OK         9
-#define KEY_LEFT       10
-#define KEY_DOWN       11
-#define KEY_RIGHT      12
-
-#define KEY_POWER      13
-#define KEY_SETUP      14
-#define KEY_LCD        15       // virtual key, generated when '1' is pressed and hold for > 2 secs
-
-#define KEY_07         18       // only on RC and only used for selftest
-
-#define KEY_NROF_KEYS  16
-
-// next 2 'keys' are simulated when inserting or removing a MMC
-#define KEY_MMC_IN     16
-#define KEY_MMC_OUT    17
-
-
-// remove these, not available on SIR100
-#define KEY_00         0xFC
-
-#define IS_IR_KEY(key)  (((key>=KEY_01) && (key<=KEY_09)) || (key==KEY_00))
-
-/* definition of virtual special keys ------------------------------------- */
-#define KEY_UNDEFINED  0x88
-#define KEY_TIMEOUT    0xAA
-#define KEY_NO_KEY     0xFFFF   // yes, indeed no u_char....
-
-#define KEY_REPEAT_TIME     100 // 100 * 4.48 = about half a second
-#define KEY_REPEAT          1
-#define KEY_NO_REPEAT       2
-
-/*-------------------------------------------------------------------------*/
-/* export global routines (interface)                                      */
-/*-------------------------------------------------------------------------*/
-void    KbInit(void);
-void    KbScan(void);
-int     KbWaitForKeyEvent(u_long);
-u_char  KbGetKey(void);
-void    KbSetKeyRepeating(u_char, u_char);
-void    KbInjectKey(u_char VirtualKey);
-
-/*  ÍÍÍÍ  End Of File  ÍÍÍÍÍÍÍÍ ÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ */
-
-
-
-
-
-
-
-
-
-
-
-
-

+ 0 - 111
lib/led.c

@@ -1,111 +0,0 @@
-/*! \file
- * Led.c contains all interface- and low-level routines to
- * control the LED
- *  Copyright STREAMIT BV 2010
- *  \version 1.0
- *  \date 26 september 2003
- */
-
-
-#define LOG_MODULE  LOG_LED_MODULE
-
-#include <sys/timer.h>
-#include <sys/thread.h>
-#include <sys/event.h>
-
-#include "system.h"
-#include "portio.h"
-#include "led.h"
-
-static u_char LedStatus;
-
-/*-------------------------------------------------------------------------*/
-/* local variable definitions                                              */
-/*-------------------------------------------------------------------------*/
-/*-------------------------------------------------------------------------*/
-/* local routines (prototyping)                                            */
-/*-------------------------------------------------------------------------*/
-
-
-/*!
- * \addtogroup Led
- */
-
-/*@{*/
-
-/*-------------------------------------------------------------------------*/
-/*                         start of code                                   */
-/*-------------------------------------------------------------------------*/
-
-
-/* ÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ */
-/*!
- * \brief Interface routine to control the SIR LED
- *
- * Using this routine, the LED can be set to 'ON', 'OFF" or it's state can
- * be toggeld
- *
- * \param LedMode can be eiter 'ON', 'OFF' or 'TOGGLE'
- */
-/* ÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ */
-/************************************************************/
-/*  Control the LED: ON, OFF or TOGGLE                      */
-/*                   in case Lucas is 'OFF' -> return       */
-/************************************************************/
-void LedControl(u_char LedMode)
-{
-   switch (LedMode)
-    {
-        case LED_OFF:
-        case LED_POWER_OFF:
-        case LED_FLASH_OFF:
-            cbi (LED_OUT_WRITE, LED_PIN);
-            LedStatus = LedMode;
-            break;
-        case LED_ON:
-        case LED_POWER_ON:
-        case LED_FLASH_ON:
-            sbi (LED_OUT_WRITE, LED_PIN);
-            LedStatus = LedMode;
-            break;
-        case LED_TOGGLE:
-            if (LedStatus == LED_ON)
-            {
-                cbi (LED_OUT_WRITE, LED_PIN);
-                LedStatus = LED_OFF;
-            }
-            else
-            {
-                sbi (LED_OUT_WRITE, LED_PIN);
-                LedStatus = LED_ON;
-            }
-            break;
-    }
-}
-
-/* ÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ */
-/*!
- * \brief Initialise the Led module
- *
- * clear LED and update LedStatus
- *
- */
-/* ÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ */
-void LedInit()
-{
-    cbi (LED_OUT_WRITE, LED_PIN);
-    LedStatus = LED_OFF;
-}
-
-/*!
- * \brief Get LedStatus for external use
- *
- */
-u_char LedGetStatus()
-{
-  return(LedStatus);
-}
-
-/* ---------- end of module ------------------------------------------------ */
-
-/*@}*/

+ 0 - 48
lib/led.h

@@ -1,48 +0,0 @@
-/* ========================================================================
- * [PROJECT]    SIR
- * [MODULE]     LED
- * [TITLE]      LED control header file
- * [FILE]       led.h
- * [VSN]        1.0
- * [CREATED]    1 augustus 2003
- * [LASTCHNGD]  23 augustus 2003
- * [COPYRIGHT]  Copyright (C) STREAMIT BV 2010
- * [PURPOSE]    LED control routines for SIR
- * ======================================================================== */
-
-/*-------------------------------------------------------------------------*/
-/* global defines                                                          */
-/*-------------------------------------------------------------------------*/
-
-#define LED_OFF         0
-#define LED_ON          1
-#define LED_POWER_ON    2
-#define LED_POWER_OFF   3
-#define LED_TOGGLE      4
-#define LED_FLASH_ON    5
-#define LED_FLASH_OFF   6
-
-/*-------------------------------------------------------------------------*/
-/* typedefs & structs                                                      */
-/*-------------------------------------------------------------------------*/
-
-/*-------------------------------------------------------------------------*/
-/* export global routines (interface)                                      */
-/*-------------------------------------------------------------------------*/
-void LedInit(void);
-void LedControl(u_char);
-u_char LedGetStatus(void);
-
-
-
-
-
-
-
-
-
-
-
-
-
-

+ 0 - 371
lib/log.c

@@ -1,371 +0,0 @@
-/*
- *  Copyright STREAMIT BV, 2010.
- *
- *  Project             : SIR
- *  Module              : Log
- *  File name  $Workfile:   Log.c  $
- *       Last Save $Date:   2003/08/16 15:01:19  $
- *             $Revision:   0.1  $
- *  Creation Date       : 2003/08/16 15:01:19
- *
- *  Description         : Keeps track of log messages
- *                        As an initial implementation this module
- *                        outputs messages to the serial port and uses
- *                        no buffering. (As a result logging delays execution
- *                        as long as the serial write takes)
- *                        At a later stage this module will have a logging
- *                        queue. This will not have much impact on execution
- *                        time. It will output messages to either a serial port
- *                        or telnet client.
- *
- */
-
-/*--------------------------------------------------------------------------*/
-/*  Include files                                                           */
-/*--------------------------------------------------------------------------*/
-#define LOG_MODULE  LOG_LOG_MODULE
-
-#include <stdio.h>
-#include <string.h>
-
-#include <sys/thread.h>
-#include <sys/heap.h>
-#include <sys/device.h>
-#include <sys/osdebug.h>
-
-//#pragma text:appcode
-
-#include "uart0driver.h"
-//#include "settings.h"
-#include "log.h"
-
-/*--------------------------------------------------------------------------*/
-/*  Constant definitions                                                    */
-/*--------------------------------------------------------------------------*/
-/*!\brief Max length of address */
-#define MAX_OFFSET_LEN  8
-
-/*!\brief Max byte values printed on a line */
-#define BYTES_PER_LINE  16
-
-/*!\brief Max number of characters hex dump takes: 2 digits plus trailing blank */
-#define HEX_DUMP_LEN    (BYTES_PER_LINE*3)
-
-/*!\brief Number of characters hex dump + ascii take: 3 chars, 2 blanks, 1 char */
-#define DATA_DUMP_LEN   (HEX_DUMP_LEN + 2 + BYTES_PER_LINE)
-
-/*!\brief Number of characters per line: address, 2 blanks, data dump */
-#define MAX_LINE_LEN    (MAX_OFFSET_LEN + 2 + DATA_DUMP_LEN)
-
-#define LEVEL_MASK      0x07        // b0...b2
-#define NAME_MASK       0xF8        // b3..b7
-
-
-/*--------------------------------------------------------------------------*/
-/*  Type declarations                                                       */
-/*--------------------------------------------------------------------------*/
-
-/*--------------------------------------------------------------------------*/
-/*  Local variables                                                         */
-/*--------------------------------------------------------------------------*/
-/*!\brief The current log level */
-static TLogLevel    g_tLevel;
-
-/*!\brief Stream to output the log data to */
-static FILE         *g_tStream;
-
-/*--------------------------------------------------------------------------*/
-/*  Global variables                                                        */
-/*--------------------------------------------------------------------------*/
-
-/*--------------------------------------------------------------------------*/
-/*  Local functions                                                         */
-/*--------------------------------------------------------------------------*/
-
-/*!
- * \brief Return the prefix-level for the given log level.
- *
- * \param   tLevel [in] The log level.
- *
- * \return  Pointer to a string in program space.
- */
-static PGM_P LogPrefixLevel_P(TLogLevel tLevel)
-{
-
-    switch (tLevel)
-    {
-        case LOG_EMERG_LEV   :return(PSTR("\n#Emerg "));
-        case LOG_ALERT_LEV   :return(PSTR("\n#Alert "));
-        case LOG_CRIT_LEV    :return(PSTR("\n#Crit  "));
-        case LOG_ERR_LEV     :return(PSTR("\n#Err   "));
-        case LOG_WARNING_LEV :return(PSTR("\n#Warn  "));
-        case LOG_NOTICE_LEV  :return(PSTR("\n#Notic "));
-        case LOG_INFO_LEV    :return(PSTR("\n#Info  "));
-        case LOG_DEBUG_LEV   :return(PSTR("\n#Debug "));
-        default          :return(PSTR("\n"));
-    }
-}
-
-/*!
- * \brief Return the prefix-name for the given log module.
- *
- * \param   tLevel [in] The log module.
- *
- * \return  Pointer to a string in program space.
- */
-static PGM_P LogPrefixName_P(TLogLevel tLevel)
-{
-
-    switch (tLevel)
-    {
-        case LOG_AUDIO_MODULE        :return(PSTR("AU: "));
-        case LOG_CHANNEL_MODULE      :return(PSTR("CH: "));
-        case LOG_COMAND_MODULE       :return(PSTR("CM: "));
-        case LOG_DISPLAY_MODULE      :return(PSTR("DP: "));
-        case LOG_FAT_MODULE          :return(PSTR("FA: "));
-        case LOG_FLASH_MODULE        :return(PSTR("FL: "));
-        case LOG_HTTP_MODULE         :return(PSTR("HT: "));
-        case LOG_INET_MODULE         :return(PSTR("IN: "));
-        case LOG_KEYBOARD_MODULE     :return(PSTR("KB: "));
-        case LOG_LED_MODULE          :return(PSTR("LE: "));
-        case LOG_LOG_MODULE          :return(PSTR("LG: "));
-        case LOG_MAIN_MODULE         :return(PSTR("SY: "));
-        case LOG_MENU_MODULE         :return(PSTR("ME: "));
-        case LOG_MMC_MODULE          :return(PSTR("MM: "));
-        case LOG_MMCDRV_MODULE       :return(PSTR("MD: "));
-        case LOG_PARSE_MODULE        :return(PSTR("PA: "));
-        case LOG_PLAYER_MODULE       :return(PSTR("PL: "));
-        case LOG_REMCON_MODULE       :return(PSTR("RC: "));
-        case LOG_RTC_MODULE          :return(PSTR("RT: "));
-        case LOG_SELFTEST_MODULE     :return(PSTR("ST: "));
-        case LOG_SESSION_MODULE      :return(PSTR("SE: "));
-        case LOG_SETTINGS_MODULE     :return(PSTR("SG: "));
-        case LOG_SPIDRV_MODULE       :return(PSTR("SP: "));
-        case LOG_STREAMER_MODULE     :return(PSTR("SR: "));
-        case LOG_UART0DRIVER_MODULE  :return(PSTR("UA: "));
-        case LOG_UPDATE_MODULE       :return(PSTR("UD: "));
-        case LOG_UTIL_MODULE         :return(PSTR("UT: "));
-        case LOG_VERSION_MODULE      :return(PSTR("VE: "));
-        case LOG_VS10XX_MODULE       :return(PSTR("VS: "));
-        case LOG_WATCHDOG_MODULE     :return(PSTR("WD: "));
-        default          :return(PSTR("?? <DMK> "));
-    }
-}
-
-/*--------------------------------------------------------------------------*/
-/*  Global functions                                                        */
-/*--------------------------------------------------------------------------*/
-
-/*!
- * \brief Initialises this module
- *
- * \param   -
- *
- * \return  -
- */
-void LogInit(void)
-{
-    /* Set default level */
-    g_tLevel = LOG_DEBUG_LEV;
-
-    LogOpen();
-}
-
-/*!
- * \brief Opens the module for use.
- *
- * \param   -
- *
- * \return  -
- */
-void LogOpen(void)
-{
-    /* Associate our stream with a device */
-    g_tStream = Uart0DriverGetStream();
-}
-
-/*!
- * \brief Closes the module.
- *
- * All interface functions from this module will result in void
- * operations.
- *
- * \param   -
- *
- * \return  -
- */
-void LogClose(void)
-{
-    FILE *tPrevStream = g_tStream;
-
-    /* Don't allow adding of new output. */
-    g_tStream = NULL;
-
-    /* Finish all current output. */
-    fflush(tPrevStream);
-}
-
-/*!
- * \brief Log a message to the log medium using a fixed string.
- *
- * The fixed string must reside in program space. It is parsed
- * using the rules of (s)printf.
- *
- * \param tLevel priority level of the message.
- * \param szMsg  format string of the message.
- * \param ...    arguments to the format string.
- */
-void LogMsg_P(TLogLevel tLevel, PGM_P szMsg, ...)
-{
-    va_list ap;
-
-    if (g_tStream)
-    {
-        /* Log the string if the message is more important than the current level */
-        if ((tLevel&LEVEL_MASK) <= g_tLevel)
-        {
-            fputs_P(LogPrefixLevel_P(tLevel&LEVEL_MASK), g_tStream);
-            fputs_P(LogPrefixName_P(tLevel&NAME_MASK), g_tStream);
-            va_start(ap, szMsg);
-            vfprintf_P(g_tStream, szMsg, ap);
-            va_end(ap);
-        }
-    }
-}
-
-void LogChar_P(const char bChar)
-{
-    if (g_tStream)
-    {
-        fputc(bChar, g_tStream);
-    }
-}
-
-/*!
- * \brief Set the priority level
- *
- * \param tNewLevel New priority level
- *
- * \return The previous priority level
- */
-TLogLevel LogSetLevel(TLogLevel tNewLevel)
-{
-    TLogLevel tPrevLevel = g_tLevel;
-
-    if (tNewLevel <= LOG_DEBUG_LEV)
-    {
-        g_tLevel = tNewLevel;
-    }
-    return(tPrevLevel);
-}
-
-/*!
- * \brief Print a block of memory
- *
- * Prints out 16 bytes of data per line
- * Every line starts with the address (offset),
- * the data in hex and that same data in ascii.
- *
- * \param tStream The stream to print to
- * \param cp The data
- * \param length The length of the data
- *
- * \return none
- */
-void HexDump(FILE *tStream, CONST u_char *cp, size_t length)
-{
-    register unsigned int address, i, hex_pos, ascii_pos, l;
-    unsigned int address_len;
-    unsigned char c;
-    char line[MAX_LINE_LEN + 1];
-    static CONST char binhex[16] =
-    {
-        '0', '1', '2', '3', '4', '5', '6', '7',
-        '8', '9', 'a', 'b', 'c', 'd', 'e', 'f'
-    };
-
-    if (tStream != NULL)
-    {
-        /*
-         * How many digits do we need for the address?
-         * We use at least 4 digits or more as needed
-         */
-        if (((length - 1) & 0xF0000000) != 0)
-        {
-            address_len = 8;
-        }
-        else if (((length - 1) & 0x0F000000) != 0)
-        {
-            address_len = 7;
-        }
-        else if (((length - 1) & 0x00F00000) != 0)
-        {
-            address_len = 6;
-        }
-        else if (((length - 1) & 0x000F0000) != 0)
-        {
-            address_len = 5;
-        }
-        else
-        {
-            address_len = 4;
-        }
-
-        address = 0;
-        i = 0;
-        hex_pos = 0;
-        ascii_pos = 0;
-        while (i < length)
-        {
-            if ((i & 15) == 0)
-            {
-                /*
-                 * Start of a new line.
-                 */
-                memset(line, ' ', sizeof(line));
-                hex_pos = 0;
-                ascii_pos = 0;
-                l = address_len;
-                do
-                {
-                    l--;
-                    c = (address >> (l*4)) & 0xF;
-                    line[hex_pos++] = binhex[c];
-                } while (l != 0);
-
-                /* 2 spaces */
-                hex_pos += 2;
-
-                /*
-                 * Offset in line of ASCII dump.
-                 */
-                ascii_pos = hex_pos + HEX_DUMP_LEN + 2;
-            }
-            c = *cp++;
-
-            /* Dump the hex value */
-            line[hex_pos++] = binhex[c >> 4];
-            line[hex_pos++] = binhex[c & 0xF];
-            hex_pos++;
-
-            /* Print the ascii value */
-            line[ascii_pos++] = (c >= ' ' && c < 127) ? c : '.';
-
-            i++;
-            if ((i & 15) == 0 || i == length)
-            {
-                /*
-                 * We'll be starting a new line, or
-                 * we're finished printing this buffer;
-                 * dump out the line we've constructed,
-                 * and advance the offset.
-                 */
-                line[ascii_pos] = '\0';
-                fputs(line, tStream);
-                fputc('\n', tStream);
-                address += BYTES_PER_LINE;
-            }
-        }
-    }
-}
-

+ 0 - 131
lib/log.h

@@ -1,131 +0,0 @@
-#ifndef _Log_H
-#define _Log_H
-/*
- *  Copyright STREAMIT BV, 2010.
- *
- *  Project             : SIR
- *  Module              : Log
- *  File name  $Workfile: Log.h  $
- *       Last Save $Date: 2003/08/16 15:01:36  $
- *             $Revision: 0.1  $
- *  Creation Date       : 2003/08/16 15:01:36
- *
- *  Description         :
- *
- */
-
-/*!
- *\ brief Define this to output raw unformatted output.
- *
- * Advantage of RAW is you can use fprintf(stdout, "format", ...) anywhere.
- * Disadvantage is that there is no selection on loglevel and that there
- * is no indication whether it is a warning, error, etc.
- */
-//#define LOG_RAW
-
-/*--------------------------------------------------------------------------*/
-/*  Include files                                                           */
-/*--------------------------------------------------------------------------*/
-#include <stdio.h>
-
-/*--------------------------------------------------------------------------*/
-/*  Constant definitions                                                    */
-/*--------------------------------------------------------------------------*/
-#ifdef LOG_RAW
-#define LogMsg_P            fputc('\n', stdout);fprintf_P
-#endif
-
-/*--------------------------------------------------------------------------*/
-/*  Type declarations                                                       */
-/*--------------------------------------------------------------------------*/
-/*! \brief The log priority levels
- * The first entry has the highest priority
- */
-#ifdef LOG_RAW
-#define LOG_EMERG stdout
-#define LOG_ALERT stdout
-#define LOG_CRIT stdout
-#define LOG_ERR stdout
-#define LOG_WARNING stdout
-#define LOG_NOTICE stdout
-#define LOG_INFO stdout
-#define LOG_DEBUG stdout
-typedef FILE * TLogLevel;
-#else
-typedef u_char TLogLevel;
-#endif
-
-// bit 0..2 for LEVEL
-#define LOG_EMERG_LEV   0x00
-#define LOG_ALERT_LEV   0x01
-#define LOG_CRIT_LEV    0x02
-#define LOG_ERR_LEV     0x03
-#define LOG_WARNING_LEV 0x04
-#define LOG_NOTICE_LEV  0x05
-#define LOG_INFO_LEV    0x06
-#define LOG_DEBUG_LEV   0x07
-
-// bit 3..7 for MODULE
-#define LOG_AUDIO_MODULE        0x10
-#define LOG_CHANNEL_MODULE      0x20
-#define LOG_COMAND_MODULE       0x30
-#define LOG_DISPLAY_MODULE      0x40
-#define LOG_FAT_MODULE          0x50
-#define LOG_FLASH_MODULE        0x60
-#define LOG_HTTP_MODULE         0x70
-#define LOG_INET_MODULE         0x80
-#define LOG_KEYBOARD_MODULE     0x90
-#define LOG_LED_MODULE          0xA0
-#define LOG_LOG_MODULE          0xB0
-#define LOG_MAIN_MODULE         0xC0
-#define LOG_MENU_MODULE         0xD0
-#define LOG_MMC_MODULE          0xE0
-#define LOG_MMCDRV_MODULE       0xF0
-#define LOG_PARSE_MODULE        0x08
-#define LOG_PLAYER_MODULE       0x18
-#define LOG_REMCON_MODULE       0x28
-#define LOG_RTC_MODULE          0x38
-#define LOG_SELFTEST_MODULE     0x48
-#define LOG_SESSION_MODULE      0x58
-#define LOG_SETTINGS_MODULE     0x68
-#define LOG_SPIDRV_MODULE       0x78
-#define LOG_STREAMER_MODULE     0x88
-#define LOG_UART0DRIVER_MODULE  0x98
-#define LOG_UPDATE_MODULE       0xA8
-#define LOG_UTIL_MODULE         0xB8
-#define LOG_VERSION_MODULE      0xC8
-#define LOG_VS10XX_MODULE       0xD8
-#define LOG_WATCHDOG_MODULE     0xE8
-
-// note that LOG_MODULE must be defined before including this "log.h"
-#define LOG_EMERG       (TLogLevel)(LOG_EMERG_LEV   | LOG_MODULE)
-#define LOG_ALERT       (TLogLevel)(LOG_ALERT_LEV   | LOG_MODULE)
-#define LOG_CRIT        (TLogLevel)(LOG_CRIT_LEV    | LOG_MODULE)
-#define LOG_ERR         (TLogLevel)(LOG_ERR_LEV     | LOG_MODULE)
-#define LOG_WARNING     (TLogLevel)(LOG_WARNING_LEV | LOG_MODULE)
-#define LOG_NOTICE      (TLogLevel)(LOG_NOTICE_LEV  | LOG_MODULE)
-#define LOG_INFO        (TLogLevel)(LOG_INFO_LEV    | LOG_MODULE)
-#define LOG_DEBUG       (TLogLevel)(LOG_DEBUG_LEV   | LOG_MODULE)
-
-/*--------------------------------------------------------------------------*/
-/*  Global variables                                                        */
-/*--------------------------------------------------------------------------*/
-
-/*--------------------------------------------------------------------------*/
-/*  Global functions                                                        */
-/*--------------------------------------------------------------------------*/
-extern void LogInit(void);
-
-extern void LogOpen(void);
-extern void LogClose(void);
-
-#ifndef LOG_RAW
-extern void LogMsg_P(TLogLevel tLevel, PGM_P szMsg, ...);
-extern void LogChar_P(const char bChar);
-#endif
-
-extern TLogLevel LogSetLevel(TLogLevel tLevel);
-
-extern void HexDump(FILE *stream, CONST unsigned char *cp, size_t length);
-
-#endif /* _Log_H */

+ 0 - 347
lib/mmc.c

@@ -1,347 +0,0 @@
-/* ========================================================================
- * [PROJECT]    SIR100
- * [MODULE]     MMC driver
- * [TITLE]      Media Card driver
- * [FILE]       mmc.c
- * [VSN]        1.0
- * [CREATED]    02 october 2006
- * [LASTCHNGD]  20 may 2007
- * [COPYRIGHT]  Copyright (C) STREAMIT BV 2010
- * [PURPOSE]    routines and API to support MMC-application
- * ======================================================================== */
-
-#define LOG_MODULE  LOG_MMC_MODULE
-
-#include <string.h>
-#include <stdio.h>
-#include <io.h>
-#include <fcntl.h>
-#include <errno.h>
-#include <ctype.h>
-
-#include <sys/event.h>
-#include <sys/thread.h>
-#include <sys/timer.h>
-#include <sys/device.h>
-#include <sys/bankmem.h>
-#include <sys/heap.h>
-
-//#pragma text:appcode
-
-#include "system.h"
-#include "mmc.h"
-#include "portio.h"
-#include "vs10xx.h"
-#include "display.h"
-#include "log.h"
-#include "fat.h"
-#include "mmcdrv.h"
-#include "led.h"
-#include "keyboard.h"
-
-#ifdef DEBUG
-//#define MMC__DEBUG
-#endif /* #ifdef DEBUG */
-/*-------------------------------------------------------------------------*/
-/* local defines                                                           */
-/*-------------------------------------------------------------------------*/
-
-#define CARD_PRESENT_COUNTER_OK         30
-#define CARD_NOT_PRESENT_COUNTER_OK     20
-
-
-/*--------------------------------------------------------------------------*/
-/*  Type declarations                                                       */
-/*--------------------------------------------------------------------------*/
-/*!\brief Statemachine for card-detection */
-typedef enum T_CARD_STATE
-{
-    CARD_IDLE,                      /* nothing to do */
-    CARD_PRESENT,                   /* card seen at least one time */
-    CARD_VALID,                     /* card seen at least <valid> times */
-    CARD_NOT_PRESENT                /* card not seen at least (valid> times */
-}TCardState;
-
-
-/*-------------------------------------------------------------------------*/
-/* local variable definitions                                              */
-/*-------------------------------------------------------------------------*/
-static u_char CardPresentFlag;
-static u_char ValidateCounter;
-
-/*!\brief state-variable for Card-statemachine */
-static TCardState CardState;
-
-/*!\brief Status of this module */
-static TError g_tStatus;
-
-/*-------------------------------------------------------------------------*/
-/* local routines (prototyping)                                            */
-/*-------------------------------------------------------------------------*/
-
-
-
-/*!
- * \addtogroup Card
- */
-
-/*@{*/
-
-/*-------------------------------------------------------------------------*/
-/*                         start of code                                   */
-/*-------------------------------------------------------------------------*/
-
-/*!
- * \brief check if MM-Card is inserted or removed.
- *
- * \Note: this routine is called from an ISR !
- *
- */
-u_char CardCheckCard(void)
-{
-    u_char RetValue=CARD_NO_CHANGE;
-
-    switch (CardState)
-    {
-        case CARD_IDLE:
-            {
-                if (bit_is_clear(MMC_IN_READ, MMC_CDETECT))
-                {
-                    ValidateCounter=1;
-                    CardState = CARD_PRESENT;
-                }
-            }
-            break;
-        case CARD_PRESENT:
-            {
-                if (bit_is_clear(MMC_IN_READ, MMC_CDETECT))
-                {
-                    if (++ValidateCounter==CARD_PRESENT_COUNTER_OK)
-                    {
-                        CardPresentFlag=CARD_IS_PRESENT;
-                        CardState=CARD_VALID;
-                        RetValue=CARD_IS_PRESENT;
-                    }
-                }
-                else
-                {
-                    CardState=CARD_IDLE;                  // false alarm,start over again
-                }
-            }
-            break;
-        case CARD_VALID:
-            {
-                if (bit_is_set(MMC_IN_READ, MMC_CDETECT))
-                {
-                    ValidateCounter=1;
-                    CardState=CARD_NOT_PRESENT;         // Card removed
-                }
-            }
-            break;
-        case CARD_NOT_PRESENT:
-            {
-                if (++ValidateCounter==CARD_NOT_PRESENT_COUNTER_OK)
-                {
-                    CardPresentFlag=CARD_IS_NOT_PRESENT;
-                    CardState=CARD_IDLE;
-                    RetValue=CARD_IS_NOT_PRESENT;
-                }
-            }
-            break;
-    }
-    return(RetValue);
-}
-
-/*!
- * \brief return status of "Card is Present"
- *
- */
-u_char CardCheckPresent()
-{
-    return(CardPresentFlag);
-}
-
-/*!
- * \brief initialise the card by reading card contents (.pls files)
- *
- * We initialse the card by registering the card and the filesystem
- * that is on the card.
- *
- * Then we start checking if a number of playlists are
- * present on the card. The names of these playlists are hardcoded
- * (1.pls, 2.pls, to 20.pls). We 'search' the card for these list
- * of playlists by trying to open them. If succesfull, we read the
- * number of songs present (int) in that list
- * Finally we update some administration (global) variables
- *
- */
-int CardInitCard()
-{
-    int iResult=-1;
-    int fid;        // current file descriptor
-    char szFileName[10];
-    //u_char i;
-	u_char ief;
-
-    /*
-     * Register our device for the file system (if not done already.....)
-     */
-    if (NutDeviceLookup(devFAT.dev_name) == 0)
-    {
-        ief = VsPlayerInterrupts(0);
-        if ((iResult=NutRegisterDevice(&devFAT, FAT_MODE_MMC, 0)) == 0)
-        {
-            iResult=NutRegisterDevice(&devFATMMC0, FAT_MODE_MMC, 0);
-        }
-        VsPlayerInterrupts(ief);
-    }
-    else
-    {
-        NUTDEVICE * dev;
-
-        /*
-         *  we must call 'FatInit' here to initialise and mount the filesystem (again)
-         */
-
-        FATRelease();
-        ief = VsPlayerInterrupts(0);
-        dev=&devFAT;
-        if (dev->dev_init == 0 || (*dev->dev_init)(dev) == 0)
-        {
-            dev=&devFATMMC0;
-            if (dev->dev_init == 0 || (*dev->dev_init)(dev) == 0)
-            {
-                iResult=0;
-            }
-        }
-        VsPlayerInterrupts(ief);
-    }
-
-    if (iResult==0)
-    {
-        LogMsg_P(LOG_INFO, PSTR("Card mounted"));
-        /*
-         *  try to open the playlists. If an error is returned, we assume the
-         *  playlist does not exist and we do not check any further lists
-         */
-
-		 /* Kroeske: onderstaande code ter illustratie om file op card te openen */
-		 
- //       for (i=1; i<SETTINGS_NROF_PLAYLISTST; ++i)
- //       {
-            // compose name to open
-            //sprintf_P(szFileName, PSTR("FM0:%d.pls"), i);
-            if ((fid = _open(szFileName, _O_RDONLY)) != -1)
-            {
-                _close(fid);
-            }
-            else
-            {
-
-                //g_NrofPlayLists=i-1;
-                //LogMsg_P(LOG_INFO, PSTR("Found %d Playlists on the Card"), i-1);
- //               break;
-            }
-//        }
-    }
-    else
-    {
-        LogMsg_P(LOG_ERR, PSTR("Error initialising File system and Card-driver"));
-    }
-
-    return(iResult);
-}
-
-/*!
- * \brief The CardPresent thread.
- *
- * execute code when card is inserted or redrawn
- *
- * \param   -
- *
- * \return  -
- */
-THREAD(CardPresent, pArg)
-{
-    static u_char OldCardStatus;
-
-    OldCardStatus=CardPresentFlag;
-
-    for (;;)
-    {
-        if ((CardPresentFlag==CARD_IS_PRESENT) && (OldCardStatus==CARD_IS_NOT_PRESENT))
-        {
-            LogMsg_P(LOG_INFO, PSTR("Card inserted"));
-            if (CardInitCard()==0)
-            {
-                KbInjectKey(KEY_MMC_IN);
-            }
-            OldCardStatus=CardPresentFlag;
-        }
-        else if ((CardPresentFlag==CARD_IS_NOT_PRESENT) && (OldCardStatus==CARD_IS_PRESENT))
-        {
-            LogMsg_P(LOG_INFO, PSTR("Card removed"));
-            CardClose();
-            OldCardStatus=CardPresentFlag;
-        }
-        else
-        {
-            NutSleep(500);
-        }
-    }
-}
-
-
-/*!
- * \brief return global variable that indicates the status of this module
- *
- */
-TError CardStatus(void)
-{
-    return(g_tStatus);
-}
-
-/*!
- * \brief Stop playing.
- *
- * \param   -
- *
- * \return  -
- */
-void CardClose(void)
-{
-
-}
-
-
-/*!
- * \brief initialise this module
- *
- */
-void CardInit()
-{
-    char ThreadName[10];
-
-    CardState=CARD_IDLE;
-    CardPresentFlag=CARD_IS_NOT_PRESENT;
-
-    /*
-     * Create a CardPresent thread
-     */
-    strcpy_P(ThreadName, PSTR("CardPres"));
-
-    if (GetThreadByName((char *)ThreadName) == NULL)
-    {
-        if (NutThreadCreate((char *)ThreadName, CardPresent, 0, 768) == 0)
-        {
-            LogMsg_P(LOG_EMERG, PSTR("Thread failed"));
-        }
-    }
-
-}
-
-/* ---------- end of module ------------------------------------------------ */
-
-/*@}*/
-
-

+ 0 - 38
lib/mmc.h

@@ -1,38 +0,0 @@
-/* ========================================================================
- * [PROJECT]    SIR100
- * [MODULE]     MMC driver
- * [TITLE]      Media Card driver include file
- * [FILE]       mmc.h
- * [VSN]        1.0
- * [CREATED]    02 october 2006
- * [LASTCHNGD]  02 october 2006
- * [COPYRIGHT]  Copyright (C) STREAMIT BV 2010
- * [PURPOSE]    routines and API to support MMC-application
- * ======================================================================== */
-
-/*-------------------------------------------------------------------------*/
-/* global defines                                                          */
-/*-------------------------------------------------------------------------*/
-#define CARD_IS_NOT_PRESENT           0
-#define CARD_IS_PRESENT               1
-#define CARD_NO_CHANGE                2       // no change since last event occured
-
-/*-------------------------------------------------------------------------*/
-/* export global routines (interface)                                      */
-/*-------------------------------------------------------------------------*/
-extern void CardInit(void);
-extern int CardInitCard(void);
-extern TError CardOpen(u_char);
-extern void CardClose(void);
-extern TError CardStatus(void);
-extern unsigned int CardGetCurrentSong(void);
-extern char* CardGetCurrentSongName(unsigned int *punLength);
-
-extern u_char CardCheckCard(void);          // check by examining physical PIN
-extern u_char CardCheckPresent(void);       // check by examining administration
-extern TError CardPlayMp3File(char *path);
-extern void CardStopMp3File(void);
-extern void CardUpdateTicks(void);
-extern u_char CardGetNumberOfPlayLists(void);
-
-

+ 0 - 758
lib/mmcdrv.c

@@ -1,758 +0,0 @@
-/****************************************************************************
-*  This file is part of the MMC device driver.
-*
-*  Copyright (c) 2004 by Michael Fischer. All rights reserved.
-*
-*  Thanks to Sylvain Bissonnette for some of his low level functions.
-*  Take a look at www.microsyl.com (Led Sign with MMC MemoryCard)
-*
-*  Redistribution and use in source and binary forms, with or without
-*  modification, are permitted provided that the following conditions
-*  are met:
-*
-*  1. Redistributions of source code must retain the above copyright
-*     notice, this list of conditions and the following disclaimer.
-*  2. Redistributions in binary form must reproduce the above copyright
-*     notice, this list of conditions and the following disclaimer in the
-*     documentation and/or other materials provided with the distribution.
-*  3. Neither the name of the author nor the names of its contributors may
-*     be used to endorse or promote products derived from this software
-*     without specific prior written permission.
-*
-*  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-*  "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-*  LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
-*  FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL
-*  THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
-*  INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
-*  BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
-*  OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
-*  AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
-*  OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF
-*  THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
-*  SUCH DAMAGE.
-*
-****************************************************************************
-*  History:
-*
-*  10.10.04  mifi   First Version
-****************************************************************************/
-#define __MMCDRV_C__
-
-#define LOG_MODULE  LOG_MMCDRV_MODULE
-
-#include <stdio.h>
-#include <string.h>
-
-#include <sys/timer.h>
-#include <sys/thread.h>
-#include <sys/event.h>
-#include <sys/heap.h>
-
-#include "typedefs.h"
-#include "portio.h"
-#include "mmcdrv.h"
-#include "vs10xx.h"
-#include "led.h"
-#include "log.h"
-#include "spidrv.h"
-
-/*==========================================================*/
-/*  DEFINE: All Structures and Common Constants             */
-/*==========================================================*/
-#define MMC_MAX_SUPPORTED_DEVICE    1
-
-/*
- * Drive Flags
- */
-#define MMC_SUPPORT_LBA             0x0001
-#define MMC_SUPPORT_LBA48           0x0002
-
-#define MMC_READ_ONLY               0x4000
-#define MMC_READY                   0x8000
-
-#define Delay_1ms(_x) NutDelay(_x)
-
-#define SPIDDR        DDRB
-#define SPIPORT       PORTB
-#define SPIPIN        PINB
-
-/*
-    PragmaLab: disable PIN-defines (already defined in 'portio.h'
-#define SCLK          0x02
-#define MOSI          0x04
-#define MISO          0x08
-#define CS            0x20
-#define ENABLE        0x40
-    end PragmaLab
-*/
-
-#define MMC_RESET         0
-#define MMC_INIT          1
-#define MMC_READ_CSD    9
-#define MMC_READ_CID    10
-
-typedef struct _drive
-{
-    /*
-     * Interface values
-     */
-    WORD  wFlags;
-    BYTE  bDevice;
-
-    /*
-     * LBA value
-     */
-    DWORD dTotalSectors;
-    WORD  wSectorSize;
-} DRIVE;
-
-/*==========================================================*/
-/*  DEFINE: Definition of all local Data                    */
-/*==========================================================*/
-static HANDLE          hMMCSemaphore;
-static DRIVE           sDrive[MMC_MAX_SUPPORTED_DEVICE];
-
-static MMC_MOUNT_FUNC *pUserMountFunc;
-static MMC_MOUNT_FUNC *pUserUnMountFunc;
-
-/*==========================================================*/
-/*  DEFINE: Definition of all local Procedures              */
-/*==========================================================*/
-
-
-/************************************************************/
-/*  MMCLock                                                 */
-/************************************************************/
-static void MMCLock(void)
-{
-    NutEventWait(&hMMCSemaphore, 0);
-} /* MMCLock */
-
-/************************************************************/
-/*  MMCFree                                                 */
-/************************************************************/
-static void MMCFree(void)
-{
-    NutEventPost(&hMMCSemaphore);
-} /* MMCFree */
-
-/************************************************************/
-/*  MMCSemaInit                                             */
-/************************************************************/
-static void MMCSemaInit(void)
-{
-    NutEventPost(&hMMCSemaphore);
-} /* MMCSemaInit */
-
-
-/************************************************************
- * int MMCDataToken(void)
- *
- * - pings the card until it gets data token
- * - returns one byte of read info (data token)
- ************************************************************/
-static BYTE MMCDataToken(void)
-{
-    WORD i = 0xffff;
-    BYTE Byte = 0xff;
-
-    while ((Byte != 0xfe) && (--i))
-    {
-        Byte = SPIgetByte();
-    }
-    return(Byte);
-} /* MMCDataToken */
-
-/************************************************************
- * unsigned char MMCGet(void)
- *
- * - pings the card until it gets a non-0xff value
- * - returns one byte of read info
- ************************************************************/
-static BYTE MMCGet(void)
-{
-    WORD i = 0xffff;
-    BYTE Byte = 0xff;
-
-    while ((Byte == 0xff) && (--i))
-    {
-        Byte = SPIgetByte();
-    }
-
-    return(Byte);
-} /* MMCGet */
-
-/************************************************************
- * void MMCCommand(unsigned char command, unsigned int px, unsigned int py)
- *
- * - send one byte of 0xff, then issue command + params + (fake) crc
- * - eat up the one command of nothing after the CRC
- ************************************************************/
-static void MMCCommand(unsigned char command, unsigned int px, unsigned int py)
-{
-    SPIselect(SPI_DEV_MMC);
-
-    SPIputByte(0xff);
-    SPIputByte(command | 0x40);
-    SPIputByte((unsigned char)((px >> 8)&0x0ff)); /* high byte of param y */
-    SPIputByte((unsigned char)(px & 0x00ff));     /* low byte of param y */
-    SPIputByte((unsigned char)((py >> 8)&0x0ff)); /* high byte of param x */
-    SPIputByte((unsigned char)(py & 0x00ff));     /* low byte of param x */
-    SPIputByte(0x95);            /* correct CRC for first command in SPI          */
-                              /* after that CRC is ignored, so no problem with */
-                              /* always sending 0x95                           */
-    SPIputByte(0xff);
-} /* MMCCommand */
-
-/************************************************************/
-/* GetCSD                                                   */
-/************************************************************/
-static int GetCSD (DRIVE *pDrive)
-{
-    int   i;
-    int  nError = MMC_ERROR;
-    BYTE bData[16];
-    WORD wREAD_BL_LEN;
-    WORD wC_SIZE;
-    WORD wC_SIZE_MULT;
-    WORD wDummy;
-    DWORD dTotalSectors = 0;
-
-    MMCCommand(MMC_READ_CSD, 0, 0);
-    if (MMCDataToken() != 0xfe)
-    {
-        LogMsg_P(LOG_ERR, PSTR("error during CSD read"));
-    }
-    else
-    {
-        for (i=0; i<16; i++)
-        {
-            bData[i] = SPIgetByte();
-        }
-
-        SPIputByte(0xff);    /* checksum -> don't care about it for now */
-        SPIputByte(0xff);    /* checksum -> don't care about it for now */
-
-        SPIdeselect();
-
-        /*
-         * Get the READ_BL_LEN
-         */
-        wREAD_BL_LEN = (1 << (bData[5] & 0x0F));
-
-        /*
-         * Get the C_SIZE
-         */
-        wC_SIZE  = (bData[6] & 0x03);
-        wC_SIZE  = wC_SIZE << 10;
-
-        wDummy   = bData[7];
-        wDummy   = wDummy << 2;
-        wC_SIZE |= wDummy;
-
-        wDummy   = (bData[8] & 0xC0);
-        wDummy   = wDummy >> 6;
-        wC_SIZE |= wDummy;
-
-        /*
-         * Get the wC_SIZE_MULT
-         */
-        wC_SIZE_MULT  = (bData[9] & 0x03);
-        wC_SIZE_MULT |= wC_SIZE_MULT << 1;
-        wDummy        = (bData[10] & 0x80);
-        wDummy        = wDummy >> 7;
-        wC_SIZE_MULT |= wDummy;
-        wC_SIZE_MULT  = (1 << (wC_SIZE_MULT+2));
-
-        dTotalSectors  = wC_SIZE+1;
-        dTotalSectors *= wC_SIZE_MULT;
-
-        pDrive->dTotalSectors = dTotalSectors;
-        pDrive->wSectorSize   = wREAD_BL_LEN;
-
-        nError = MMC_OK;
-    }
-
-    return(nError);
-} /* GetCSD */
-
-#if 0
-/************************************************************/
-/* GetCID                                                   */
-/************************************************************/
-static void GetCID(void)
-{
-    int i;
-    BYTE bData[16];
-
-    MMCCommand(MMC_READ_CID, 0, 0);
-    if (MMCDataToken() != 0xfe)
-    {
-        printf("MMC: error during CID read\n");
-    }
-    else
-    {
-        printf("MMC: CID read\n");
-    }
-
-    for (i=0; i<16; i++)
-    {
-        bData[i] = SPIgetByte();
-    }
-
-    SPIputByte(0xff);    /* checksum -> don't care about it for now */
-    SPIputByte(0xff);    /* checksum -> don't care about it for now */
-
-    SPIdeselect();
-
-    printf("MMC: Product Name: %c%c%c%c%c%c\n",
-           bData[3], bData[4], bData[5],
-           bData[6], bData[7], bData[8]);
-} /* GetCID */
-#endif
-
-/************************************************************/
-/*  InitMMCCard                                             */
-/*                                                          */
-/* - flushes card receive buffer                            */
-/* - selects card                                           */
-/* - sends the reset command                                */
-/* - sends the initialization command, waits for card ready */
-/************************************************************/
-static int InitMMCCard(void)
-{
-    WORD i;
-
-    /* PragmaLab: disable initit of PINS and SPI, already done in 'SystemInitIO()'
-    SPIDDR = SCLK + MOSI + CS;
-    SPIPORT = 0x00;
-    Delay_1ms(250);
-    Delay_1ms(250);
-    SPIPORT |= CS;
-    SPCR = (1 << SPE) | (1 << MSTR);  // enable SPI as master, set clk divider
-                                      // set to max speed
-    Delay_1ms(250);
-
-
-    SPIdeselect();
-
-    // start off with 80 bits of high data with card deselected
-
-    PragmaLab: why send dummy bytes with card DEselected? This messes up the VS10XX init */
-    for (i = 0; i < 10; i++)
-    {
-        SPIputByte(0xff);
-    }
-
-    /*end PragmaLab */
-
-    /* send CMD0 - go to idle state */
-    MMCCommand(MMC_RESET, 0, 0);
-
-    if (MMCGet() != 1)
-    {
-        SPIdeselect();
-        return(MMC_ERROR);  // MMC Not detected
-    }
-
-    /* send CMD1 until we get a 0 back, indicating card is done initializing */
-    i = 0xffff;
-    while ((SPIgetByte() != 0) && (--i))
-    {
-        MMCCommand(MMC_INIT, 0, 0);
-    }
-    if (i == 0)
-    {
-        SPIdeselect();
-        return(MMC_ERROR);  // Init Fail
-    }
-
-    SPIdeselect();
-    return(MMC_OK);
-} /* InitMMCCard */
-
-/************************************************************/
-/*  ReadSectors                                             */
-/************************************************************/
-static int ReadSectors(DRIVE *pDrive, BYTE *pBuffer, DWORD dStartSector, WORD wSectorCount)
-{
-    int   nError = MMC_OK;
-    int   nSector;
-    WORD  wDataCount;
-    DWORD dReadSector;
-
-    pDrive = pDrive;
-
-    for (nSector=0; nSector<wSectorCount; nSector++)
-    {
-        dReadSector = dStartSector + nSector;
-
-        MMCCommand(17,(dReadSector>>7) & 0xffff, (dReadSector<<9) & 0xffff);
-        if (MMCDataToken() != 0xfe)
-        {
-            nError = MMC_ERROR;
-            SPIdeselect();
-            break;
-        }
-
-        for (wDataCount=0; wDataCount<512; wDataCount++)
-        { /* read the sector */
-            *pBuffer = SPIgetByte();
-            pBuffer++;
-        }
-
-        SPIputByte(0xff);    /* checksum -> don't care about it for now */
-        SPIputByte(0xff);    /* checksum -> don't care about it for now */
-        SPIdeselect();
-    }
-
-    return(nError);
-} /* ReadSectors */
-
-#if (MMC_SUPPORT_WRITE == 1)
-/************************************************************/
-/*  WriteSectors                                            */
-/************************************************************/
-static BYTE WriteSectors(DRIVE *pDrive, BYTE *pBuffer, DWORD dStartSector, WORD wSectorCount)
-{
-    int   nError = MMC_OK;
-    int   nSector;
-    WORD  wDataCount;
-    DWORD dWriteSector;
-
-    pDrive = pDrive;
-
-    for (nSector=0; nSector<wSectorCount; nSector++)
-    {
-        dWriteSector = dStartSector + nSector;
-
-        MMCCommand(24, (dWriteSector>>7)& 0xffff, (dWriteSector<<9)& 0xffff);
-        if (MMCGet() == 0xff)
-        {
-            nError = MMC_ERROR;
-            SPIdeselect();
-            break;
-        }
-
-        SPIputByte(0xfe);  // Send Start Byte
-
-        for (wDataCount=0; wDataCount<512; wDataCount++)
-        { /* read the sector */
-            SPIputByte(*pBuffer);
-            pBuffer++;
-        }
-
-        SPIputByte(0xff);  /* checksum -> don't care about it for now */
-        SPIputByte(0xff);  /* checksum -> don't care about it for now */
-        SPIputByte(0xff);  /* Read "data response byte"               */
-
-        wDataCount = 0xffff;
-        while ((SPIgetByte() == 0x00) && (--wDataCount)); /* wait for write finish */
-        if (wDataCount == 0)
-        {
-            nError = MMC_ERROR;
-            SPIdeselect();
-            break;
-        }
-
-        SPIdeselect();
-    }
-
-    return(nError);
-}
-#endif /* WriteSectors */
-
-/*==========================================================*/
-/*  DEFINE: All code exported                               */
-/*==========================================================*/
-/************************************************************/
-/*  MMCInit                                                 */
-/************************************************************/
-int MMCInit(int nMMCMode, MMC_MOUNT_FUNC *pMountFunc,
-            MMC_MOUNT_FUNC *pUnMountFunc)
-{
-    int  nError = MMC_OK;
-    BYTE bIndex;
-
-    nMMCMode         = nMMCMode;
-    pUserMountFunc   = pMountFunc;
-    pUserUnMountFunc = pUnMountFunc;
-
-    for (bIndex=0; bIndex<MMC_MAX_SUPPORTED_DEVICE; bIndex++)
-    {
-        memset((BYTE *) & sDrive[bIndex], 0x00, sizeof(DRIVE));
-
-        sDrive[bIndex].bDevice  = bIndex;
-    }
-
-    MMCSemaInit();
-
-    nError = InitMMCCard();
-    if (nError == MMC_OK)
-    {
-        sDrive[MMC_DRIVE_C].wFlags = MMC_READY;
-        //GetCID();
-    }
-
-    return(nError);
-} /* MMCInit */
-
-/************************************************************/
-/*  MMCMountAllDevices                                      */
-/************************************************************/
-int MMCMountAllDevices(int nMMCMode, BYTE *pSectorBuffer)
-{
-    int    nError = MMC_ERROR;
-    DRIVE *pDrive;
-
-    nMMCMode = nMMCMode;
-
-    pDrive = NULL;
-
-    MMCLock();
-
-    pDrive = &sDrive[MMC_DRIVE_C];
-    if (pDrive->wFlags & MMC_READY)
-    {
-        nError = GetCSD(pDrive);
-    }
-
-    MMCFree();
-
-    if (nError == MMC_OK)
-    {
-        nError = MMCReadSectors(MMC_DRIVE_C, pSectorBuffer, 0, 1);
-    }
-
-    return(nError);
-} /* MMCMountDevice */
-
-/************************************************************/
-/*  MMCGetSectorSize                                        */
-/************************************************************/
-int MMCGetSectorSize(BYTE bDevice)
-{
-    int    nSectorSize;
-    DRIVE *pDrive;
-
-    nSectorSize = 0;
-
-    MMCLock();
-
-    if (bDevice >= MMC_MAX_SUPPORTED_DEVICE)
-    {
-        nSectorSize = 0;
-    }
-    else
-    {
-        pDrive = &sDrive[bDevice];
-        nSectorSize = pDrive->wSectorSize;
-    }
-
-    MMCFree();
-
-    return(nSectorSize);
-} /* MMCGetSectorSize */
-
-/************************************************************/
-/*  MMCIsCDROMDevice                                        */
-/************************************************************/
-int MMCIsCDROMDevice(BYTE bDevice)
-{
-    return(FALSE);
-} /* MMCIsCDROMDevice */
-
-/************************************************************/
-/*  MMCIsZIPDevice                                          */
-/************************************************************/
-int MMCIsZIPDevice(BYTE bDevice)
-{
-    return(FALSE);
-} /* MMCIsZIPDevice */
-
-/************************************************************/
-/*  MMCUnMountDevice                                        */
-/************************************************************/
-int MMCUnMountDevice(BYTE bDevice)
-{
-    return(MMC_OK);
-} /* MMCUnMountDevice */
-
-/************************************************************/
-/*  MMCGetTotalSectors                                      */
-/************************************************************/
-DWORD MMCGetTotalSectors(BYTE bDevice)
-{
-    DWORD  dwTotalSectors;
-    DRIVE *pDrive;
-
-    dwTotalSectors = 0;
-
-    MMCLock();
-
-    if (bDevice >= MMC_MAX_SUPPORTED_DEVICE)
-    {
-        dwTotalSectors = 0;
-    }
-    else
-    {
-        pDrive = &sDrive[bDevice];
-        dwTotalSectors = pDrive->dTotalSectors;
-
-        //dwTotalSectors -= 64;
-    }
-
-    MMCFree();
-
-    return(dwTotalSectors);
-} /* MMCGetTotalSectors */
-
-/************************************************************/
-/*  MMCReadSectors                                          */
-/************************************************************/
-int MMCReadSectors(BYTE bDevice, void *pData, DWORD dwStartSector, WORD wSectorCount)
-{
-    int    nError;
-    WORD   wReadCount;
-    DRIVE *pDrive = 0;
-    BYTE  *pByte;
-
-    nError = MMC_OK;
-
-    MMCLock();
-
-    if (bDevice >= MMC_MAX_SUPPORTED_DEVICE)
-    {
-        nError = MMC_DRIVE_NOT_FOUND;
-    }
-    else
-    {
-        pDrive = &sDrive[bDevice];
-        if ((pDrive->wFlags & MMC_READY) == 0)
-        {
-            nError = MMC_DRIVE_NOT_FOUND;
-        }
-        else
-        {
-            if ((dwStartSector + wSectorCount) > pDrive->dTotalSectors)
-            {
-                nError = MMC_PARAM_ERROR;
-            }
-        }
-    }
-
-    if (nError == MMC_OK)
-    {
-        pByte = (BYTE *)pData;
-
-        if (wSectorCount != 1)
-        {
-            while (wSectorCount > 0)
-            {
-
-                if (wSectorCount < 256)
-                {
-                    wReadCount = wSectorCount;
-                }
-                else
-                {
-                    wReadCount = 256;
-                }
-
-                nError = ReadSectors(pDrive, pByte, dwStartSector, wReadCount);
-                if (nError != MMC_OK)
-                {
-                    break;
-                }
-
-                dwStartSector += wReadCount;
-                wSectorCount -= wReadCount;
-                pByte += (wReadCount * pDrive->wSectorSize);
-            }
-        }
-        else
-        {
-            nError = ReadSectors(pDrive, pByte, dwStartSector, 1);
-        }
-    }
-
-    MMCFree();
-
-    return(nError);
-} /* MMCReadSectors */
-
-#if (MMC_SUPPORT_WRITE == 1)
-/************************************************************/
-/*  MMCWriteSectors                                         */
-/************************************************************/
-int MMCWriteSectors(BYTE   bDevice,      void *pData,
-                    DWORD dwStartSector, WORD  wSectorCount)
-{
-    int    nError;
-    WORD   wWriteCount;
-    DRIVE *pDrive = 0;
-    BYTE  *pByte;
-
-    nError = MMC_OK;
-
-    MMCLock();
-
-    if (bDevice >= MMC_MAX_SUPPORTED_DEVICE)
-    {
-        nError = MMC_DRIVE_NOT_FOUND;
-    }
-    else
-    {
-        pDrive = &sDrive[bDevice];
-
-        if ((dwStartSector + wSectorCount) > pDrive->dTotalSectors)
-        {
-            nError = MMC_PARAM_ERROR;
-        }
-        if ((pDrive->wFlags & MMC_READY) == 0)
-        {
-            nError = MMC_DRIVE_NOT_FOUND;
-        }
-        if (pDrive->wFlags & MMC_READ_ONLY)
-        {
-            nError = MMC_NOT_SUPPORTED;
-        }
-    }
-
-    if (nError == MMC_OK)
-    {
-        pByte = (BYTE *) pData;
-        while (wSectorCount > 0)
-        {
-
-            if (wSectorCount < 256)
-            {
-                wWriteCount = wSectorCount;
-            }
-            else
-            {
-                wWriteCount = 256;
-            }
-
-            nError = WriteSectors(pDrive, pByte, dwStartSector, wWriteCount);
-            if (nError != MMC_OK)
-            {
-                break;
-            }
-
-            dwStartSector += wWriteCount;
-            wSectorCount  -= wWriteCount;
-            pByte         += (wWriteCount * MMC_SECTOR_SIZE);
-        }
-    }
-
-    MMCFree();
-
-    return(nError);
-} /* MMCWriteSectors */
-#endif
-
-
-
-

+ 0 - 100
lib/mmcdrv.h

@@ -1,100 +0,0 @@
-/****************************************************************************
-*  This file is part of the MMC device driver.
-*
-*  Copyright (c) 2002-2004 by Michael Fischer. All rights reserved.
-*
-*  Redistribution and use in source and binary forms, with or without 
-*  modification, are permitted provided that the following conditions 
-*  are met:
-*  
-*  1. Redistributions of source code must retain the above copyright 
-*     notice, this list of conditions and the following disclaimer.
-*  2. Redistributions in binary form must reproduce the above copyright
-*     notice, this list of conditions and the following disclaimer in the 
-*     documentation and/or other materials provided with the distribution.
-*  3. Neither the name of the author nor the names of its contributors may 
-*     be used to endorse or promote products derived from this software 
-*     without specific prior written permission.
-*
-*  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 
-*  "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 
-*  LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS 
-*  FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL 
-*  THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, 
-*  INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, 
-*  BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS 
-*  OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED 
-*  AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, 
-*  OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF 
-*  THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 
-*  SUCH DAMAGE.
-*
-****************************************************************************
-*  History:
-*
-*  10.10.04  mifi   First Version
-****************************************************************************/
-#ifndef __MMCDRV_H__
-#define __MMCDRV_H__
-
-#include "typedefs.h"
-
-/*-------------------------------------------------------------------------*/
-/* global defines                                                          */
-/*-------------------------------------------------------------------------*/
-//
-// Here we can switch on/off some
-// feature of the software
-//
-#define MMC_SUPPORT_WRITE               1
-
-#define MMC_OK                          0x00
-#define MMC_ERROR                       0x01
-#define MMC_DRIVE_NOT_FOUND             0x02
-#define MMC_PARAM_ERROR                 0x03
-#define MMC_BUSY                        0x04
-#define MMC_NOT_SUPPORTED               0x08
-
-#define MMC_DRIVE_C                     0
-
-//
-// Sector size
-//
-#define MMC_SECTOR_SIZE                 512
-#define MAX_SECTOR_SIZE                 MMC_SECTOR_SIZE
-
-/*-------------------------------------------------------------------------*/
-/* global types                                                            */
-/*-------------------------------------------------------------------------*/
-typedef void MMC_MOUNT_FUNC(int nDevice);
-
-/*-------------------------------------------------------------------------*/
-/* global macros                                                           */
-/*-------------------------------------------------------------------------*/
-
-/*-------------------------------------------------------------------------*/
-/* Prototypes                                                              */
-/*-------------------------------------------------------------------------*/
-int MMCInit(int nMMCMode, MMC_MOUNT_FUNC * pMountFunc, MMC_MOUNT_FUNC * pUnMountFunc);
-
-int MMCMountAllDevices(int nMMCMode, BYTE *pSectorBuffer);
-
-int MMCGetSectorSize(BYTE bDevice);
-
-int MMCIsCDROMDevice(BYTE bDevice);
-
-int MMCIsZIPDevice(BYTE bDevice);
-
-int MMCUnMountDevice(BYTE bDevice);
-
-DWORD MMCGetTotalSectors(BYTE bDevice);
-
-int MMCReadSectors(BYTE bDevice, void *pData, DWORD dwStartSector, WORD wSectorCount);
-
-#if (MMC_SUPPORT_WRITE == 1)
-
-int MMCWriteSectors(BYTE bDevice, void *pData, DWORD dwStartSector, WORD wSectorCount);
-
-#endif
-
-#endif /* !__MMCDRV_H__ */

+ 0 - 51
lib/platform.h

@@ -1,51 +0,0 @@
-#ifndef _Platform_H
-#define _Platform_H
-/*
- *  Copyright STREAMIT BV, 2010.
- *
- *  Project             : SIR
- *  Module              : Platform
- *  File name  $Workfile: Platform.h  $
- *       Last Save $Date: 2003/08/18 10:09:48  $
- *             $Revision: 0.1  $
- *  Creation Date       : 2003/08/18 10:09:48
- *
- *  Description         : Definitions which are dependent on the compiler and
- *                        or processor.
- */
-
-/*--------------------------------------------------------------------------*/
-/*  Include files                                                           */
-/*--------------------------------------------------------------------------*/
-
-/*--------------------------------------------------------------------------*/
-/*  Constant definitions                                                    */
-/*--------------------------------------------------------------------------*/
-#define LOBYTE(w)           ((u_char) ((w) & 0xFF))
-#define HIBYTE(w)           ((u_char) (((u_short) (w) >> 8) & 0xFF))
-#define LOWORD(l)           ((u_short) ((l) & 0xFFFF))
-#define HIWORD(l)           ((u_short) (((u_long) (l) >> 16) & 0xFFFF))
-
-#define MAKEWORD(bLow, bHigh) \
-    ((u_short) (((u_char) (bLow)) | ((u_short) ((u_char) (bHigh))) << 8))
-#define MAKEULONG(wLow, wHigh) \
-    ((u_long) (((u_short) (wLow)) | ((u_long) ((u_short) (wHigh))) << 16))
-
-/*--------------------------------------------------------------------------*/
-/*  Type declarations                                                       */
-/*--------------------------------------------------------------------------*/
-
-#ifndef prog_int
-#define prog_int        prog_int16_t
-#endif /* #ifndef prog_int */
-
-/*--------------------------------------------------------------------------*/
-/*  Global variables                                                        */
-/*--------------------------------------------------------------------------*/
-
-/*--------------------------------------------------------------------------*/
-/*  Global functions                                                        */
-/*--------------------------------------------------------------------------*/
-#define PRG_RDW(addr)   pgm_read_word(addr)
-
-#endif /* _Platform_H */

+ 0 - 142
lib/portio.h

@@ -1,142 +0,0 @@
-/* ========================================================================
- * [PROJECT]    SIR
- * [MODULE]     PortIO
- * [TITLE]      Port IO header file
- * [FILE]       portio.h
- * [VSN]        2.0
- * [CREATED]    030414
- * [LASTCHNGD]  072405
- * [COPYRIGHT]  Copyright (C) STREAMIT BV 2010
- * [PURPOSE]    support for low-level pinning
- * ======================================================================== */
-
-/*-------------------------------------------------------------------------*/
-/* global defines                                                          */
-/*-------------------------------------------------------------------------*/
-
-//      ********* PORT B ************
-
-//     7   6   5   4   3   2   1   0
-//   ÚÄÄÄÂÄÄÄÂÄÄÄÂÄÄÄÂÄÄÄÂÄÄÄÂÄÄÄÂÄÄÄ¿
-//  ³RES³CEN³CSC³XCS³SO ³ SI³CLK³CWP³
-// ÀÄÄÄÁÄÄÄÁÄÄÄÁÄÄÄÁÄÄÄÁÄÄÄÁÄÄÄÁÄÄÄÙ
-
-#define MMC_ENABLE      5           // active LOW!
-#define VS_ENABLE       6           // note that logic has changed since SIR80 V1
-
-#define MMCVS_OUT_DDR   DDRB        // data-direction of MMC/VS functions
-#define MMCVS_OUT_WRITE PORTB       // write PORTB (B as output)
-
-//      ********* PORT D ************
-
-//     7   6   5   4   3   2   1   0
-//   ÚÄÄÄÂÄÄÄÂÄÄÄÂÄÄÄÂÄÄÄÂÄÄÄÂÄÄÄÂÄÄÄ¿
-//  ³LD7³LD6³LD5³LD4³KC2³KC3³ EN³ - ³
-// ÀÄÄÄÁÄÄÄÁÄÄÄÁÄÄÄÁÄÄÄÁÄÄÄÁÄÄÄÁÄÄÄÙ
-
-#define LCD_EN          2           // LCD chip Enable (or: chip select)
-
-#define LCD_DATA_4      4
-#define LCD_DATA_5      5
-#define LCD_DATA_6      6
-#define LCD_DATA_7      7
-
-#define LCD_DATA_DDR    DDRD        // data-direction of LCD-data port
-#define LCD_DATA_PORT   PORTD       // port to write LCD-data
-#define LCD_IN_PORT     PIND        // port to read LCD-data
-
-#define LCD_EN_DDR      DDRE        // data-direction of LCD-control port
-#define LCD_EN_PORT     PORTE       // data of LCD-control port
-
-#define KB_OUT_DDR_B    DDRD        // data-direction of KB_OUT (second part)
-#define KB_OUT_WRITE_B  PORTD       // write PORTD (D as output)
-
-//      ********* PORT E ************
-
-//     7   6   5   4   3   2   1   0
-//   ÚÄÄÄÂÄÄÄÂÄÄÄÂÄÄÄÂÄÄÄÂÄÄÄÂÄÄÄÂÄÄÄ¿
-//  ³CSF³REQ³ETH³IR ³BL ³ - ³TXD³RXD³
-// ÀÄÄÄÁÄÄÄÁÄÄÄÁÄÄÄÁÄÄÄÁÄÄÄÁÄÄÄÁÄÄÄÙ
-
-#define FLASH_ENABLE    7       // active LOW!
-#define LCD_BL_BIT      3       // Backlight LCD
-#define IR_PIN          4       // Infrared receive PIN
-
-#define FLASH_OUT_WRITE PORTE   // write PORTE for Flash CS
-#define LCD_BL_PORT     PORTE
-
-
-
-//      ********* PORT F ************
-
-//     7   6   5   4   3   2   1   0
-//   ÚÄÄÄÂÄÄÄÂÄÄÄÂÄÄÄÂÄÄÄÂÄÄÄÂÄÄÄÂÄÄÄ¿
-//  ³KR3³KR2³KR1³KR0³LED³LRS³LRW³CRD³        // note TDI ( JTAG-pin) is shared with KR3
-// ÀÄÄÄÁÄÄÄÁÄÄÄÁÄÄÄÁÄÄÄÁÄÄÄÁÄÄÄÁÄÄÄÙ
-
-#define MMC_CDETECT         0       // signal card inserted/removed
-#define LCD_RW              1       // R/W LCD
-#define LCD_RS              2       // Register select LCD
-#define LED_PIN             3       // LED
-
-
-#define LCD_RS_DDR          DDRF    // data-direction of LCD-control port
-#define LCD_RS_PORT         PORTF   // data of LCD-control port
-#define LCD_RW_DDR          DDRF    // data-direction of LCD-control port
-#define LCD_RW_PORT         PORTF   // data of LCD-control port
-
-#define LED_OUT_DDR         DDRF    // data-direction of LED control pin
-#define LED_OUT_WRITE       PORTF   // write PORTF
-
-#define KB_IN_DDR           DDRF    // data-direction of KB_IN
-#define KB_IN_WRITE         PORTF   // write PORTF (F as output)
-#define KB_IN_READ          PINF    // read PINF (F as input)
-
-#define MMC_IN_DDR          DDRF    // data-direction of MMC_CDETECT
-#define MMC_IN_READ         PINF    // read PINF (F as input)
-
-
-//     7   6   5   4   3   2   1   0
-//   ÚÄÄÄÂÄÄÄÂÄÄÄÂÄÄÄÂÄÄÄÂÄÄÄÂÄÄÄÂÄÄÄ¿
-//  ³ - ³ - ³ - ³KC1³KC0³ - ³ - ³ - ³
-// ÀÄÄÄÁÄÄÄÁÄÄÄÁÄÄÄÁÄÄÄÁÄÄÄÁÄÄÄÁÄÄÄÙ
-
-#define KB_OUT_DDR_A    DDRG        // data-direction of KB_OUT (first part)
-#define KB_OUT_WRITE_A  PORTG       // write PORTG (G as output)
-
-
-#define JTAG_REG            MCUCR
-#define OVERFLOW_SIGNAL     sig_OVERFLOW0
-
-#define init_8_bit_timer()  \
-{                           \
-    TCCR0B |= (1<<CS02);    \
-    TIFR0 |= 1<<TOV0;       \
-    TIMSK0 |= 1<<TOIE0;     \
-}
-
-#define disable_8_bit_timer_ovfl_int()  \
-{                                       \
-    TIMSK0 &= ~(1<<TOIE0);              \
-}
-
-//      ********* PORT G ************
-
-/*-------------------------------------------------------------------------*/
-/* export global routines (interface)                                      */
-/*-------------------------------------------------------------------------*/
-
-/*  ÍÍÍÍ  End Of File  ÍÍÍÍÍÍÍÍ ÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ */
-
-
-
-
-
-
-
-
-
-
-
-
-

+ 0 - 151
lib/remcon.c

@@ -1,151 +0,0 @@
-/*! \file
- * remcon.c contains all interface- and low-level routines that
- * perform handling of the infrared bitstream
- * [COPYRIGHT]  Copyright (C) STREAMIT BV
- *  \version 1.0
- *  \date 26 september 2003
- */
-
-
-
-#define LOG_MODULE  LOG_REMCON_MODULE
-
-#include <stdlib.h>
-#include <fs/typedefs.h>
-#include <sys/heap.h>
-
-#include <sys/event.h>
-#include <sys/atom.h>
-#include <sys/types.h>
-#include <dev/irqreg.h>
-
-#include "system.h"
-#include "portio.h"
-#include "remcon.h"
-#include "display.h"
-#include "keyboard.h"
-#include "led.h"
-
-
-/*-------------------------------------------------------------------------*/
-/* local variable definitions                                              */
-/*-------------------------------------------------------------------------*/
-static HANDLE  hRCEvent;
-
-/*-------------------------------------------------------------------------*/
-/* local routines (prototyping)                                            */
-/*-------------------------------------------------------------------------*/
-static void RcInterrupt(void*);
-static void RcClearEvent(HANDLE*);
-
-
-/*!
- * \addtogroup RemoteControl
- */
-
-/*@{*/
-
-/*-------------------------------------------------------------------------*/
-/*                         start of code                                   */
-/*-------------------------------------------------------------------------*/
-
-
-
-/* ÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ */
-/*!
- * \brief ISR Remote Control Interrupt (ISR called by Nut/OS)
- *
- *  NEC-code consists of 5 parts:
- *
- *  - leader (9 msec high, 4,5 msec low)
- *  - address (8 bits)
- *  - inverted address (8 bits)
- *  - data (8 bits)
- *  - inverted data (8 bits)
- *
- *  The first sequence contains these 5 parts, next
- *  sequences only contain the leader + 1 '0' bit as long
- *  as the user holds down the button
- *  repetition time is 108 msec in that case
- *
- *  Resolution of the 16-bit timer we use here is 4,3 usec
- *
- *  13,5 msecs are 3109 ticks
- *  '0' is 1,25 msecs (260 ticks)
- *  '1' is 2,25 msecs (517 ticks)
- *
- * \param *p not used (might be used to pass parms from the ISR)
- */
-/* ÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ */
-static void RcInterrupt(void *p)
-{
-	// Hier ISR implementeren voor bijv. NEC protocol
-}
-
-/* ÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ */
-/*!
- * \brief Clear the eventbuffer of this module
- *
- * This routine is called during module initialization.
- *
- * \param *pEvent pointer to the event queue
- */
-/* ÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ */
-static void RcClearEvent(HANDLE *pEvent)
-{
-    NutEnterCritical();
-
-    *pEvent = 0;
-
-    NutExitCritical();
-}
-
-
-
-/* ÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ */
-/*!
- * \brief Initialise the Remote Control module
- *
- * - register the ISR in NutOS
- * - initialise the HW-timer that is used for this module (Timer1)
- * - initialise the external interrupt that inputs the infrared data
- * - flush the remote control buffer
- * - flush the eventqueue for this module
- */
-/* ÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ */
-void RcInit()
-{
-    int nError = 0;
-
-    EICRB &= ~RC_INT_SENS_MASK;    // clear b0, b1 of EICRB
-
-    // Install Remote Control interrupt
-    nError = NutRegisterIrqHandler(&sig_INTERRUPT4, RcInterrupt, NULL);
-    if (nError == FALSE)
-    {
-/*
- *  ToDo: control External Interrupt following NutOS calls
-#if (NUTOS_VERSION >= 421)
-        NutIrqSetMode(&sig_INTERRUPT4, NUT_IRQMODE_FALLINGEDGE);
-#else
-        EICRB |= RC_INT_FALLING_EDGE;
-#endif
-        EIMSK |= 1<<IRQ_INT4;         // enable interrupt
- */
-        EICRB |= RC_INT_FALLING_EDGE;
-        EIMSK |= 1<<IRQ_INT4;         // enable interrupt
-    }
-
-    // Initialise 16-bit Timer (Timer1)
-    TCCR1B |= (1<<CS11) | (1<<CS10); // clockdivider = 64
-    TIFR   |= 1<<ICF1;
-    //TIMSK = 1<<TICIE1;
-
-    RcClearEvent(&hRCEvent);
-
-
-}
-
-/* ---------- end of module ------------------------------------------------ */
-
-/*@}*/

+ 0 - 52
lib/remcon.h

@@ -1,52 +0,0 @@
-/* ========================================================================
- * [PROJECT]    SIR
- * [MODULE]     Remote Control
- * [TITLE]      remote control header file
- * [FILE]       remcon.h
- * [VSN]        1.0
- * [CREATED]    1 july 2003
- * [LASTCHNGD]  1 july 2003
- * [COPYRIGHT]  Copyright (C) STREAMIT BV 2010
- * [PURPOSE]    remote control routines for SIR
- * ======================================================================== */
-
-/*-------------------------------------------------------------------------*/
-/* global defines                                                          */
-/*-------------------------------------------------------------------------*/
-#define RC_OK                 0x00
-#define RC_ERROR              0x01
-#define RC_BUSY               0x04
-
-#define RCST_IDLE             0x00
-#define RCST_WAITFORLEADER    0x01
-#define RCST_SCANADDRESS      0x02
-#define RCST_SCANDATA         0x03
-
-#define RC_INT_SENS_MASK      0x03
-#define RC_INT_FALLING_EDGE   0x02
-#define RC_INT_RISING_EDGE    0x03
-
-#define IR_RECEIVE            4
-#define IR_BUFFER_SIZE        1
-
-
-/*-------------------------------------------------------------------------*/
-/* export global routines (interface)                                      */
-/*-------------------------------------------------------------------------*/
-void    RcInit(void);
-
-
-/*  ÍÍÍÍ  End Of File  ÍÍÍÍÍÍÍÍ ÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ */
-
-
-
-
-
-
-
-
-
-
-
-
-

+ 0 - 471
lib/rtc.c

@@ -1,471 +0,0 @@
-/* ========================================================================
- * [PROJECT]    SIR
- * [MODULE]     Real Time Clock
- * [TITLE]      High- and low level Routines for INtersil X1205 RTC chip
- * [FILE]       rtc.c
- * [VSN]        1.0
- * [CREATED]    13042007
- * [LASTCHNGD]  131042007
- * [COPYRIGHT]  Copyright (C) STREAMIT BV 2010
- * [PURPOSE]    contains all interface- and low-level routines to
- *              read/write date/time/status strings from the X1205
- * ======================================================================== */
-
-#define LOG_MODULE  LOG_RTC_MODULE
-
-#include <cfg/os.h>
-#include <dev/twif.h>
-#include <sys/event.h>
-#include <sys/timer.h>
-
-#include <time.h>
-#include <stdlib.h>
-#include <string.h>
-
-#include "rtc.h"
-#include "portio.h"
-
-#define I2C_SLA_RTC         0x6F
-#define I2C_SLA_EEPROM      0x57
-#define EEPROM_PAGE_SIZE    64
-
-
-static u_long rtc_status;
-
-/*!
- * \brief Enable or disable write access.
- *
- * \param on Write access is disabled if this parameter is 0, or
- *           enabled otherwise.
- *
- * \return 0 on success or -1 in case of an error.
- */
-static int X12WriteEnable(int on)
-{
-    int rc;
-    u_char buf[3];
-
-    buf[0] = 0;
-    buf[1] = 0x3F;
-    if (on)
-    {
-        buf[2] = 0x02;
-        if ((rc = TwMasterTransact(I2C_SLA_RTC, buf, 3, 0, 0, NUT_WAIT_INFINITE)) == 0)
-        {
-            buf[2] = 0x06;
-            rc = TwMasterTransact(I2C_SLA_RTC, buf, 3, 0, 0, NUT_WAIT_INFINITE);
-        }
-    }
-    else
-    {
-        buf[2] = 0x00;
-        rc = TwMasterTransact(I2C_SLA_RTC, buf, 3, 0, 0, NUT_WAIT_INFINITE);
-    }
-    return(rc);
-}
-
-/*!
- * \brief Wait until non-volatile write cycle finished.
- *
- * \return 0 on success or -1 in case of an error.
- */
-static int X12WaitReady(void)
-{
-    u_char poll;
-    int cnt = 20;
-
-    /* Poll for write cycle finished. */
-    while (--cnt && TwMasterTransact(I2C_SLA_EEPROM, 0, 0, &poll, 1, NUT_WAIT_INFINITE) == -1)
-    {
-        NutSleep(1);
-    }
-    return(cnt ? 0 : -1);
-}
-
-/*!
- * \brief Read RTC registers.
- *
- * \param reg  The first register to read.
- * \param buff Pointer to a buffer that receives the register contents.
- * \param cnt  The number of registers to read.
- *
- * \return 0 on success or -1 in case of an error.
- */
-int X12RtcReadRegs(u_char reg, u_char *buff, size_t cnt)
-{
-    int rc = -1;
-    u_char wbuf[2];
-
-    wbuf[0] = 0;
-    wbuf[1] = reg;
-    if (TwMasterTransact(I2C_SLA_RTC, wbuf, 2, buff, cnt, NUT_WAIT_INFINITE) == cnt)
-    {
-        rc = 0;
-    }
-    return(rc);
-}
-
-/*!
- * \brief Write to RTC registers.
- *
- * \param nv   Must be set to 1 when writing to non-volatile registers.
- *             In this case the routine will poll for write cycle
- *             completion before returning to the caller. Set to zero
- *             if writing to volatile registers.
- * \param buff This buffer must contain all bytes to be transfered to
- *             the RTC chip, including the register address.
- * \param cnt  Number of valid bytes in the buffer.
- *
- * \return 0 on success or -1 in case of an error.
- */
-int X12RtcWrite(int nv, CONST u_char *buff, size_t cnt)
-{
-    int rc;
-
-    if ((rc = X12WriteEnable(1)) == 0)
-    {
-        rc = TwMasterTransact(I2C_SLA_RTC, buff, cnt, 0, 0, NUT_WAIT_INFINITE);
-        if (rc == 0 && nv)
-        {
-            rc = X12WaitReady();
-        }
-        X12WriteEnable(0);
-    }
-    return(rc);
-}
-
-/*!
- * \brief Get date and time from an X12xx hardware clock.
- *
- * \deprecated New applications must use NutRtcGetTime().
- *
- * \param tm Points to a structure that receives the date and time
- *           information.
- *
- * \return 0 on success or -1 in case of an error.
- */
-int X12RtcGetClock(struct _tm *tm)
-{
-    int rc;
-    u_char data[8];
-
-    if ((rc = X12RtcReadRegs(X12RTC_SC, data, 8)) == 0)
-    {
-        tm->tm_sec = BCD2BIN(data[0]);
-        tm->tm_min = BCD2BIN(data[1]);
-        tm->tm_hour = BCD2BIN(data[2] & 0x3F);
-        tm->tm_mday = BCD2BIN(data[3]);
-        tm->tm_mon = BCD2BIN(data[4]) - 1;
-        tm->tm_year = BCD2BIN(data[5]) + 100;
-        if (BCD2BIN(data[7]) > 0x19)
-        {
-            tm->tm_year += 100;
-        }
-        tm->tm_wday = data[6];
-    }
-    return(rc);
-}
-
-/*!
- * \brief Set an X12xx hardware clock.
- *
- * \deprecated New applications must use NutRtcSetTime().
- *
- * New time will be taken over at the beginning of the next second.
- *
- * \param tm Points to a structure which contains the date and time
- *           information.
- *
- * \return 0 on success or -1 in case of an error.
- */
-int X12RtcSetClock(CONST struct _tm *tm)
-{
-    u_char data[10];
-
-    memset(data, 0, sizeof(data));
-    if (tm)
-    {
-        data[1] = X12RTC_SC;
-        data[2] = BIN2BCD(tm->tm_sec);
-        data[3] = BIN2BCD(tm->tm_min);
-        data[4] = BIN2BCD(tm->tm_hour) | 0x80;
-        data[5] = BIN2BCD(tm->tm_mday);
-        data[6] = BIN2BCD(tm->tm_mon + 1);
-        if (tm->tm_year > 99)
-        {
-            data[7] = BIN2BCD(tm->tm_year - 100);
-            data[9] = 0x20;
-        }
-        else
-        {
-            data[7] = BIN2BCD(tm->tm_year);
-            data[9] = 0x19;
-        }
-        data[8] = tm->tm_wday;
-    }
-    return(X12RtcWrite(0, data, 10));
-}
-
-/*!
- * \brief Get alarm date and time of an X12xx hardware clock.
- *
- * \deprecated New applications must use NutRtcGetAlarm().
- *
- * \param idx   Zero based index. Two alarms are supported.
- * \param tm    Points to a structure that receives the date and time
- *              information.
- * \param aflgs Points to an unsigned long that receives the enable flags.
- *
- * \return 0 on success or -1 in case of an error.
- *
- */
-int X12RtcGetAlarm(int idx, struct _tm *tm, int *aflgs)
-{
-    int rc;
-    u_char data[8];
-
-    *aflgs = 0;
-    memset(tm, 0, sizeof(struct _tm));
-    if ((rc = X12RtcReadRegs(idx * 8, data, 8)) == 0)
-    {
-        if (data[0] & X12RTC_SCA_ESC)
-        {
-            *aflgs |= RTC_ALARM_SECOND;
-            tm->tm_sec = BCD2BIN(data[0] & 0x7F);
-        }
-        if (data[1] & X12RTC_MNA_EMN)
-        {
-            *aflgs |= RTC_ALARM_MINUTE;
-            tm->tm_min = BCD2BIN(data[1]);
-        }
-        if (data[2] & X12RTC_HRA_EHR)
-        {
-            *aflgs |= RTC_ALARM_HOUR;
-            tm->tm_hour = BCD2BIN(data[2] & ~0x80);
-        }
-        if (data[3] & X12RTC_DTA_EDT)
-        {
-            *aflgs |= RTC_ALARM_MDAY;
-            tm->tm_mday = BCD2BIN(data[3]);
-        }
-        if (data[4] & X12RTC_MOA_EMO)
-        {
-            *aflgs |= RTC_ALARM_MONTH;
-            tm->tm_mon = BCD2BIN(data[4]) - 1;
-        }
-        if (data[6] & X12RTC_DWA_EDW)
-        {
-            *aflgs |= RTC_ALARM_WDAY;
-            tm->tm_wday = BCD2BIN(data[6]);
-        }
-    }
-    return(rc);
-}
-
-/*!
- * \brief Set alarm of an X12xx hardware clock.
- *
- * \deprecated New applications must use NutRtcSetAlarm().
- *
- * \param idx   Zero based index. Two alarms are supported.
- * \param tm    Points to a structure which contains the date and time
- *              information. May be NULL to clear the alarm.
- * \param aflgs Each bit enables a specific comparision.
- *              - Bit 0: Seconds
- *              - Bit 1: Minutes
- *              - Bit 2: Hours
- *              - Bit 3: Day of month
- *              - Bit 4: Month
- *              - Bit 7: Day of week (Sunday is zero)
- *
- * \return 0 on success or -1 in case of an error.
- */
-int X12RtcSetAlarm(int idx, CONST struct _tm *tm, int aflgs)
-{
-    u_char data[10];
-
-    memset(data, 0, sizeof(data));
-    data[1] = idx * 8;
-    if (tm)
-    {
-        if (aflgs & RTC_ALARM_SECOND)
-        {
-            data[2] = BIN2BCD(tm->tm_sec) | X12RTC_SCA_ESC;
-        }
-        if (aflgs & RTC_ALARM_MINUTE)
-        {
-            data[3] = BIN2BCD(tm->tm_min) | X12RTC_MNA_EMN;
-        }
-        if (aflgs & RTC_ALARM_HOUR)
-        {
-            data[4] = BIN2BCD(tm->tm_hour) | X12RTC_HRA_EHR;
-        }
-        if (aflgs & RTC_ALARM_MDAY)
-        {
-            data[5] = BIN2BCD(tm->tm_mday) | X12RTC_DTA_EDT;
-        }
-        if (aflgs & RTC_ALARM_MONTH)
-        {
-            data[6] = BIN2BCD(tm->tm_mon + 1) | X12RTC_MOA_EMO;
-        }
-        if (aflgs & RTC_ALARM_WDAY)
-        {
-            data[8] = BIN2BCD(tm->tm_wday) | X12RTC_DWA_EDW;
-        }
-    }
-    return(X12RtcWrite(1, data, 10));
-}
-
-/*!
- * \brief Query RTC status flags.
- *
- * \deprecated New applications must use NutRtcGetStatus().
- *
- * \param sflgs Points to an unsigned long that receives the status flags.
- *              - Bit 0: Power fail.
- *              - Bit 5: Alarm 0 occured.
- *              - Bit 6: Alarm 1 occured.
- *
- * \return 0 on success or -1 in case of an error.
- */
-int X12RtcGetStatus(u_long *sflgs)
-{
-    int rc;
-    u_char data;
-
-    if ((rc = X12RtcReadRegs(X12RTC_SR, &data, 1)) == 0)
-    {
-        rtc_status |= data;
-        *sflgs = rtc_status;
-    }
-    return(rtc_status);
-}
-
-/*!
- * \brief Clear RTC status flags.
- *
- * \deprecated New applications must use NutRtcClearStatus().
- *
- * \param sflgs Status flags to clear.
- *
- * \return Always 0.
- */
-int X12RtcClearStatus(u_long sflgs)
-{
-    rtc_status &= ~sflgs;
-
-    return(0);
-}
-
-/*!
- * \brief Read contents from non-volatile EEPROM.
- *
- * \param addr  Start location.
- * \param buff  Points to a buffer that receives the contents.
- * \param len   Number of bytes to read.
- *
- * \return 0 on success or -1 in case of an error.
- */
-int X12EepromRead(u_int addr, void *buff, size_t len)
-{
-    int rc = -1;
-    u_char wbuf[2];
-
-    wbuf[0] = (u_char)(addr >> 8);
-    wbuf[1] = (u_char)addr;
-    if (TwMasterTransact(I2C_SLA_EEPROM, wbuf, 2, buff, len, NUT_WAIT_INFINITE) == len)
-    {
-        rc = 0;
-    }
-    return(rc);
-}
-
-/*!
- * \brief Store buffer contents in non-volatile EEPROM.
- *
- * The EEPROM of the X122x has a capacity of 512 bytes, while the X1286 is
- * able to store 32 kBytes.
- *
- * \param addr  Storage start location.
- * \param buff  Points to a buffer that contains the bytes to store.
- * \param len   Number of valid bytes in the buffer.
- *
- * \return 0 on success or -1 in case of an error.
- */
-int X12EepromWrite(u_int addr, CONST void *buff, size_t len)
-{
-    int rc = 0;
-    u_char *wbuf;
-    size_t wlen;
-    CONST u_char *wp = buff;
-
-    /*
-     * Loop for each page to be written to.
-     */
-    while (len)
-    {
-        /* Do not cross page boundaries. */
-        wlen = EEPROM_PAGE_SIZE - (addr & (EEPROM_PAGE_SIZE - 1));
-        if (wlen > len)
-        {
-            wlen = len;
-        }
-
-        /* Allocate and set a TWI write buffer. */
-        if ((wbuf = malloc(wlen + 2)) == 0)
-        {
-            rc = -1;
-            break;
-        }
-        wbuf[0] = (u_char)(addr >> 8);
-        wbuf[1] = (u_char)addr;
-        memcpy(wbuf + 2, (void *)wp, wlen);
-
-        /* Enable EEPROM write access and send the write buffer. */
-        if ((rc = X12WriteEnable(1)) == 0)
-        {
-            rc = TwMasterTransact(I2C_SLA_EEPROM, wbuf, wlen + 2, 0, 0, NUT_WAIT_INFINITE);
-        }
-
-        /* Release the buffer and check the result. */
-        free(wbuf);
-        if (rc)
-        {
-            break;
-        }
-        len -= wlen;
-        addr += wlen;
-        wp += wlen;
-
-        /* Poll for write cycle finished. */
-        if ((rc = X12WaitReady()) != 0)
-        {
-            break;
-        }
-    }
-    X12WriteEnable(0);
-
-    return(rc);
-}
-
-/*!
- * \brief Initialize the interface to an Intersil X12xx hardware clock.
- *
- * \deprecated New applications must use NutRegisterRtc().
- *
- * \return 0 on success or -1 in case of an error.
- *
- */
-int X12Init(void)
-{
-    int rc;
-    u_long tmp;
-
-    if ((rc = TwInit(0)) == 0)
-    {
-        rc = X12RtcGetStatus(&tmp);
-    }
-    return (rc);
-}
-
-

+ 0 - 158
lib/rtc.h

@@ -1,158 +0,0 @@
-#ifndef _RTC_H_
-#define	_RTC_H_
-
-/* ========================================================================
- * [PROJECT]    SIR
- * [MODULE]     Real Time Clock
- * [TITLE]      High- and low level Routines for INtersil X1205 RTC chip
- * [FILE]       rtc.c
- * [VSN]        1.0
- * [CREATED]    13042007
- * [LASTCHNGD]  131042007
- * [COPYRIGHT]  Copyright (C) STREAMIT BV 2010
- * [PURPOSE]    contains all interface- and low-level routines to
- *              read/write date/time/status strings from the X1205
- * ======================================================================== */
-#include <time.h>           // for tm-struct
-                            //
-/*! \name Non-Volatile Alarm Registers */
-/*@{*/
-#define X12RTC_SCA0         0x00    /*!< \brief Alarm 0 second. */
-#define X12RTC_SCA1         0x08    /*!< \brief Alarm 1 second. */
-#define X12RTC_SCA_ESC      0x80    /*!< \brief Second alarm enabled. */
-
-#define X12RTC_MNA0         0x01    /*!< \brief Alarm 0 minute. */
-#define X12RTC_MNA1         0x09    /*!< \brief Alarm 1 minute. */
-#define X12RTC_MNA_EMN      0x80    /*!< \brief Minute alarm enabled. */
-
-#define X12RTC_HRA0         0x02    /*!< \brief Alarm 0 hour. */
-#define X12RTC_HRA1         0x0A    /*!< \brief Alarm 1 hour. */
-#define X12RTC_HRA_EHR      0x80    /*!< \brief Hour alarm enabled. */
-
-#define X12RTC_DTA0         0x03    /*!< \brief Alarm 0 day of month. */
-#define X12RTC_DTA1         0x0B    /*!< \brief Alarm 1 day of month. */
-#define X12RTC_DTA_EDT      0x80    /*!< \brief Day of month alarm enabled. */
-
-#define X12RTC_MOA0         0x04    /*!< \brief Alarm 0 month. */
-#define X12RTC_MOA1         0x0C    /*!< \brief Alarm 1 month. */
-#define X12RTC_MOA_EMO      0x80    /*!< \brief Month alarm enabled. */
-
-#define X12RTC_YRA0         0x05    /*!< \brief Currently unused alarm 0 register. */
-#define X12RTC_YRA1         0x0D    /*!< \brief Currently unused alarm 1 register. */
-
-#define X12RTC_DWA0         0x06    /*!< \brief Alarm 0 weekday. */
-#define X12RTC_DWA1         0x0E    /*!< \brief Alarm 1 weekday. */
-#define X12RTC_DWA_EDW      0x80    /*!< \brief Weekday alarm enabled. */
-
-#define X12RTC_Y2K0         0x07    /*!< \brief Alarm 0 . */
-#define X12RTC_Y2K1         0x0F    /*!< \brief Alarm 1 . */
-/*@}*/
-
-/*! \name Non-Volatile Control Registers */
-/*@{*/
-#define X12RTC_BL           0x10    /*!< \brief Block protection and watchdog register. */
-
-#define X12RTC_BL_WD        0x14    /*!< \brief Watchdog configuration. */
-#define X12RTC_BL_WD_1750   0x00    /*!< \brief Timeout after 1.75 seconds. */
-#define X12RTC_BL_WD_750    0x04    /*!< \brief Timeout after 750 milliseconds. */
-#define X12RTC_BL_WD_250    0x10    /*!< \brief Timeout after 250 milliseconds. */
-#define X12RTC_BL_WD_OFF    0x14    /*!< \brief Disabled. */
-
-#define X12RTC_BL_BP        0xE0    /*!< \brief Block protection. */
-#define X12RTC_BL_BP_NONE   0x00    /*!< \brief No protection. */
-#define X12RTC_BL_BP_UQUAD  0x20    /*!< \brief Upper quarter protected. */
-#define X12RTC_BL_BP_UHALF  0x40    /*!< \brief Upper half protected. */
-#define X12RTC_BL_BP_FULL   0x60    /*!< \brief Full array protected. */
-#define X12RTC_BL_BP_FIRST1 0x80    /*!< \brief First page protected. */
-#define X12RTC_BL_BP_FIRST2 0xA0    /*!< \brief First 2 pages protected. */
-#define X12RTC_BL_BP_FIRST3 0xC0    /*!< \brief First 4 pages protected. */
-#define X12RTC_BL_BP_FIRST8 0xE0    /*!< \brief First 8 pages protected. */
-
-#define X12RTC_INT          0x11    /*!< \brief Interrupt control and freq. output register. */
-
-#define X12RTC_INT_FO       0x14    /*!< \brief Programmable frequency output bits. */
-#define X12RTC_INT_FO_IRQ   0x00    /*!< \brief Alarm interrupt. */
-#define X12RTC_INT_FO_32KHZ 0x04    /*!< \brief 32.768kHz. */
-#define X12RTC_INT_FO_100HZ 0x10    /*!< \brief 100Hz. */
-#define X12RTC_INT_FO_1HZ   0x14    /*!< \brief 1Hz. */
-
-#define X12RTC_INT_AL0E     0x20    /*!< \brief Alarm 0 interrupt enable. */
-#define X12RTC_INT_AL1E     0x40    /*!< \brief Alarm 1 interrupt enable. */
-#define X12RTC_INT_IM       0x80    /*!< \brief Repetitive alarm. */
-
-#define X12RTC_ATR          0x12    /*!< \brief Analog trimming register. */
-
-#define X12RTC_DTR          0x13    /*!< \brief Digital trimming register. */
-#define X12RTC_DTR_NONE     0x00    /*!< \brief 0 PPM. */
-#define X12RTC_DTR_PLUS10   0x02    /*!< \brief +10 PPM. */
-#define X12RTC_DTR_PLUS20   0x01    /*!< \brief +20 PPM. */
-#define X12RTC_DTR_PLUS30   0x03    /*!< \brief +30 PPM. */
-#define X12RTC_DTR_MINUS10  0x06    /*!< \brief -10 PPM. */
-#define X12RTC_DTR_MINUS20  0x05    /*!< \brief -20 PPM. */
-#define X12RTC_DTR_MINUS30  0x07    /*!< \brief -30 PPM. */
-/*@}*/
-
-/*! \name Volatile Date and Time Registers */
-/*@{*/
-#define X12RTC_SC           0x30    /*!< Seconds register, 0 - 59. */
-#define X12RTC_MN           0x31    /*!< Minutes register, 0 - 59. */
-#define X12RTC_HR           0x32    /*!< Hours register, 0 - 23. */
-#define X12RTC_HR_MIL       0x80    /*!< Use 24h format. */
-#define X12RTC_DT           0x33    /*!< Day register, 1 - 31. */
-#define X12RTC_MO           0x34    /*!< Month register, 1 - 12. */
-#define X12RTC_YR           0x35    /*!< Year register, 0 - 99. */
-#define X12RTC_DW           0x36    /*!< Day of the weeks register, 0 - 6. */
-#define X128xRTC_SSEC       0x37    /*!< X1286 1/100 second register, 0 - 99 (read only). */
-#define X122xRTC_Y2K        0x37    /*!< X1226 epoch register, 19 or 20. */
-/*@}*/
-
-/*! \name Volatile Status Register */
-/*@{*/
-#define X12RTC_SR           0x3F    /*!< Status register. */
-#define X12RTC_SR_RTCF      0x01    /*!< Power failure. */
-#define X12RTC_SR_WEL       0x02    /*!< Memory write enable. */
-#define X12RTC_SR_RWEL      0x04    /*!< Register write enable. */
-#define X12RTC_SR_AL0       0x20    /*!< Alarm 0 indicator. */
-#define X12RTC_SR_AL1       0x40    /*!< Alarm 1 indicator. */
-#define X12RTC_SR_BAT       0x80    /*!< Operating from battery. */
-/*@}*/
-
-#define RTC_STATUS_PF       0x00000001
-#define RTC_STATUS_AL0      0x00000020
-#define RTC_STATUS_AL1      0x00000040
-
-#define RTC_ALARM_SECOND    0x00000001
-#define RTC_ALARM_MINUTE    0x00000002
-#define RTC_ALARM_HOUR      0x00000004
-#define RTC_ALARM_MDAY      0x00000008
-#define RTC_ALARM_MONTH     0x00000010
-#define RTC_ALARM_WDAY      0x00000080
-
-/*!
- * \brief Convert binary coded decimal to binary value.
- */
-#define BCD2BIN(x) ((((u_char)(x)) >> 4) * 10 + ((x) & 0x0F))
-
-/*!
- * \brief Convert binary to binary coded decimal value.
- */
-#define BIN2BCD(x) (((((u_char)(x)) / 10) << 4) + (x) % 10)
-
-
-/* Prototypes */
-extern int X12Init(void);
-
-extern int X12RtcGetClock(tm *tm);
-extern int X12RtcSetClock(CONST tm *tm);
-extern int X12RtcGetAlarm(int idx, tm *tm, int *aflgs);
-extern int X12RtcSetAlarm(int idx, CONST tm *tm, int aflgs);
-extern int X12RtcGetStatus(u_long *sflgs);
-extern int X12RtcClearStatus(u_long sflgs);
-extern int X12RtcReadRegs(u_char addr, u_char *buff, size_t len);
-extern int X12RtcWrite(int nv, CONST u_char *buff, size_t len);
-
-extern int X12EepromRead(u_int addr, void *buff, size_t len);
-extern int X12EepromWrite(u_int addr, CONST void *buff, size_t len);
-
-/* End of prototypes */
-#endif

+ 0 - 228
lib/spidrv.c

@@ -1,228 +0,0 @@
-/* ========================================================================
- * [PROJECT]    SIR100
- * [MODULE]     SPI
- * [TITLE]      SPI source file
- * [FILE]       spi.c
- * [VSN]        1.0
- * [CREATED]    06102006
- * [LASTCHNGD]  06102006
- * [COPYRIGHT]  Copyright (C) STREAMIT BV 2010
- * [PURPOSE]    contains all interface- and low-level routines to
- *              control audiofunctions of the VS1003//AT45DBXX/MMC-SD(HC)card
- * ======================================================================== */
-
-#define LOG_MODULE  LOG_SPIDRV_MODULE
-
-/*-------------------------------------------------------------------------*/
-/* includes                                                                */
-/*-------------------------------------------------------------------------*/
-#include <stdio.h>
-
-#include "system.h"
-#include "spidrv.h"
-#include "portio.h"
-#include "log.h"
-
-#include "vs10xx.h"
-
-#include <sys/timer.h>
-
-/*-------------------------------------------------------------------------*/
-/* local defines                                                           */
-/*-------------------------------------------------------------------------*/
-/*-------------------------------------------------------------------------*/
-/* typedefs & structs                                                      */
-/*-------------------------------------------------------------------------*/
-/*-------------------------------------------------------------------------*/
-/* local variable definitions                                              */
-/*-------------------------------------------------------------------------*/
-static u_char g_Speedmode;
-
-/*-------------------------------------------------------------------------*/
-/* local routines (prototyping)                                            */
-/*-------------------------------------------------------------------------*/
-
-/*!
- * \addtogroup Drivers
- */
-
-/*@{*/
-
-/*-------------------------------------------------------------------------*/
-/*                         start of code                                   */
-/*-------------------------------------------------------------------------*/
-/*!
- * \brief enable SPI-logic for given device
- *
- * SPI bits:
- * SPSR:  SPI2X         double speed as set in SPR0, SPR1
- * SPCR:  SPIE:         SPI interrupt enable
- *        SPE:          SPI enable
- *        SPR1, SPR0:   clockrate
- *        MSTR:         set to master
- *
- * SPI2X SPR1 SPR0 for a ATMEGA @  14.7456 MHz
- *
- * 1     0    0:  fosc/2  = 136 ns  -> 7.37 MHz
- * 0     0    0:  fosc/4  = 271 ns  -> 3.6864 MHz
- * 1     0    1:  fosc/8  = 542 ns  -> 1.8432 MHz
- * 0     0    1:  fosc/16 = 1085 ns -> 0.9216 MHz
- *
- */
-
-void SPIselect(TSPIDevice Device)
-{
-
-    // set SPI-speed for selected device
-    if (Device==SPI_DEV_VS10XX)
-    {
-        if (g_Speedmode==SPEED_SLOW)
-        {
-            // set speed to Fosc/8
-            outb(SPSR, BV(SPI2X));
-            outb(SPCR, BV(MSTR) | BV(SPE) | BV(SPR0));
-        }
-        else if (g_Speedmode==SPEED_FAST)
-        {
-            // set speed to Fosc/4
-            outb(SPSR, 0);
-            outb(SPCR, BV(MSTR) | BV(SPE));
-        }
-        else if (g_Speedmode==SPEED_ULTRA_FAST)
-        {
-            // set speed to Fosc/2
-            outb(SPSR, BV(SPI2X));
-            outb(SPCR, BV(MSTR) | BV(SPE));
-        }
-        else
-        {
-            LogMsg_P(LOG_ERR,PSTR("invalid Speed"));
-        }
-    }
-    else if (Device==SPI_DEV_FLASH)
-    {
-        // set speed for flash to Fosc/2
-        outb(SPSR, BV(SPI2X));
-        outb(SPCR, BV(MSTR) | BV(SPE));
-    }
-    else
-    {
-        // set speed for flash to Fosc/2
-//        outb(SPSR, BV(SPI2X));
-//        outb(SPCR, BV(MSTR) | BV(SPE));
-
-        // set speed for card to Fosc/4
-        outb(SPSR, 0);
-        outb(SPCR, BV(MSTR) | BV(SPE));
-
-        // set speed for card to Fosc/8
-//        outb(SPSR, BV(SPI2X));
-//        outb(SPCR, BV(MSTR) | BV(SPE) | BV(SPR0));
-
-        // set speed for card to Fosc/16
-//        outb(SPSR, 0);
-//        outb(SPCR, BV(MSTR) | BV(SPE) | BV(SPR0));
-    }
-
-    // enable selected device
-    switch (Device)
-    {
-        case SPI_DEV_VS10XX:
-            {
-                sbi(FLASH_OUT_WRITE, FLASH_ENABLE);    // disable serial Flash
-                sbi(MMCVS_OUT_WRITE, MMC_ENABLE);      // disable MMC/SDHC
-                sbi(MMCVS_OUT_WRITE, VS_ENABLE);       // enable VS10XX
-                break;
-            }
-        case SPI_DEV_FLASH:
-            {
-                sbi(MMCVS_OUT_WRITE, MMC_ENABLE);      // disable MMC/SDHC
-                cbi(MMCVS_OUT_WRITE, VS_ENABLE);       // disable VS10XX
-                cbi(FLASH_OUT_WRITE, FLASH_ENABLE);    // enable serial Flash
-                break;
-            }
-        case SPI_DEV_MMC:
-            {
-                sbi(FLASH_OUT_WRITE, FLASH_ENABLE);    // disable serial Flash
-                cbi(MMCVS_OUT_WRITE, VS_ENABLE);       // disable VS10XX
-                cbi(MMCVS_OUT_WRITE, MMC_ENABLE);      // enable MMC/SDHC
-                break;
-            }
-        default: break;
-    }
-}
-
-/*!
- * \brief disable SPI-logic for ALL devices
- *
- */
-void SPIdeselect()
-{
-    sbi(FLASH_OUT_WRITE, FLASH_ENABLE);    // disable serial Flash
-    cbi(MMCVS_OUT_WRITE, VS_ENABLE);       // disable VS10XX
-    sbi(MMCVS_OUT_WRITE, MMC_ENABLE);      // disable MMC/SDHC
-}
-
-/*!
- * \brief not all devices can operate always on maximum speed. This routine determines the several speed modes.
- *
- */
-void SPImode(u_char data)
-{
-    g_Speedmode = data;
-}
-
-u_char SPIgetmode(void)
-{
-    return(g_Speedmode);
-}
-/*!
- * \brief send a byte using SPI, ignore result
- *
- */
-void SPIputByte(u_char data)
-{
-    SPDR = data;
-    while (!(SPSR & (1<<SPIF)));     // wait for completion
-}
-
-/*!
- * \brief read byte using SPI, don't use any input
- *
- */
-u_char SPIgetByte()
-{
-    SPDR = 0xFF;                     // dummy
-    while (!(SPSR & (1<<SPIF)));     // wait for completion
-    return(SPDR);                    // return with byte shifted in from receiver
-}
-
-/*!
- * \brief send byte using SPI, return result
- *
- */
-u_char SPItransferByte(u_char data)
-{
-    SPDR = data;
-    while (!(SPSR & (1<<SPIF)));     // wait for completion
-    return(SPDR);                    // return with byte shifted in from receiver
-}
-
-/*!
- * \brief Initialise SPI registers (speed)
- *
- *  Note that the IO-lines (SCK, SI, SO) are already set in 'SysInitIO()'
- *  in the main-module
- *
- */
-void SPIinit()
-{
-    sbi(FLASH_OUT_WRITE, FLASH_ENABLE);    // disable serial Flash
-    cbi(MMCVS_OUT_WRITE, VS_ENABLE);       // disable VS10XX
-    sbi(MMCVS_OUT_WRITE, MMC_ENABLE);      // disable MMC/SDHC
-}
-
-
-/*  ÍÍÍÍ  End Of File  ÍÍÍÍÍÍÍÍ ÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ */
-
-

+ 0 - 53
lib/spidrv.h

@@ -1,53 +0,0 @@
-/* ========================================================================
- * [PROJECT]    SIR100
- * [MODULE]     SPI
- * [TITLE]      spi header file
- * [FILE]       spi.h
- * [VSN]        1.0
- * [CREATED]    12052007
- * [LASTCHNGD]  12052007
- * [COPYRIGHT]  Copyright (C) STREAMIT BV 2010
- * [PURPOSE]    API and global defines for SPI module
- * ======================================================================== */
-
-#ifndef _SPI_H
-#define _SPI_H
-
-
-/*-------------------------------------------------------------------------*/
-/* global defines                                                          */
-/*-------------------------------------------------------------------------*/
-#define SPEED_SLOW         0
-#define SPEED_FAST         1
-#define SPEED_ULTRA_FAST   2
-
-/*-------------------------------------------------------------------------*/
-/* typedefs & structs                                                      */
-/*-------------------------------------------------------------------------*/
-typedef enum
-{
-    SPI_DEV_VS10XX=0,
-    SPI_DEV_FLASH,
-    SPI_DEV_MMC,
-
-    SPI_NROF_DEVICES        // keep last
-}TSPIDevice;
-/*--------------------------------------------------------------------------*/
-/*  Global variables                                                        */
-/*--------------------------------------------------------------------------*/
-
-/*-------------------------------------------------------------------------*/
-/* export global routines (interface)                                      */
-/*-------------------------------------------------------------------------*/
-extern void SPIselect(TSPIDevice Device);
-extern void SPIdeselect(void);
-extern void SPIputByte(u_char bByte);       // send byte using SPI, ignore result
-extern u_char SPIgetByte(void);             // read byte using SPI, don't use any input
-extern u_char SPItransferByte(u_char);      // send byte using SPI, return result
-extern void SPIinit(void);                  // initialise SPI-registers (speed, mode)
-extern void SPImode(u_char data);
-extern u_char SPIgetmode(void);
-
-#endif /* _SPI_H */
-/*  ÍÍÍÍ  End Of File  ÍÍÍÍÍÍÍÍ ÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ */
-

+ 0 - 144
lib/system.h

@@ -1,144 +0,0 @@
-/* ========================================================================
- * [PROJECT]    SIR
- * [MODULE]     global module
- * [TITLE]      system header file
- * [FILE]       system.h
- * [VSN]        1.0
- * [CREATED]    18 august 2003
- * [LASTCHNGD]  18 august 2003
- * [COPYRIGHT]  Copyright (C) STREAMIT BV 2010
- * [PURPOSE]    global defines and prototypes for Lucas project
- * ======================================================================== */
-
-/*--------------------------------------------------------------------------*/
-/*  Include files                                                           */
-/*--------------------------------------------------------------------------*/
-#include "typedefs.h"
-/*-------------------------------------------------------------------------*/
-/* global defines                                                          */
-/*-------------------------------------------------------------------------*/
-#define ON    (1)
-#define OFF   (0)
-
-#define NO_CHANNEL      200     // make sure this is > SETTINGS_NROF_CHANNELS
-#define NO_PLAYLIST     200     // make sure this is > SETTINGS_NROF_PLAYLISTS
-
-
-/*!\brief System status bit definitions */
-#define STATUS_STARTING_UP              0x01        // true during startup and Setup Wizzard
-#define STATUS_IP_MODE                  0x02        // do we use DHCP or Static IP?
-#define STATUS_POWER                    0x04        // if set, we are on
-#define STATUS_SELFTEST                 0x08        // switch to re-direct keys from Menu to Selftest module
-#define STATUS_CONFIGURED               0x10        // if set, we are configured
-#define STATUS_GPB_INVALID              0x20        // if set, we cannot rely on Productcode, Remote Updatemode, etc
-#define STATUS_FALLBACK_ACTIVE          0x40        // if set, we cannot play from the internet and if a card is present, we play from card
-
-#define STATUS_STARTING_UP_MASK         0x01
-#define STATUS_IP_MODE_MASK             0x02
-#define STATUS_POWER_MASK               0x04
-#define STATUS_SELFTEST_MASK            0x08
-#define STATUS_CONFIGURED_MASK          0x10
-#define STATUS_GPB_INVALID_MASK         0x20
-#define STATUS_FALLBACK_ACTIVE_MASK     0x40
-
-#define ONE_SECOND      225             // 225 times 4,44 msecs makes 1 second
-#define ONE_MINUTE      60
-#define ONE_HOUR        60
-
-
-/*!\brief define possible languages */
-#define LANGUAGE_NL     0
-#define LANGUAGE_EN     1
-#define LANGUAGE_DE     2
-
-/*!\brief define possible IP_Modes */
-#define IP_MODE_DHCP    0
-#define IP_MODE_STATIC  1
-
-/*!\brief define possible countrycodes (mainly used for the modem) */
-#define COUNTRY_US      0
-#define COUNTRY_UK      1
-#define COUNTRY_SA      2
-#define COUNTRY_NL_V92  3
-#define COUNTRY_NL_V34  4
-#define COUNTRY_NROF    5
-
-/*!\brief Maximum size to use for threadnames */
-#define THREADNAME_SIZE 9
-
-enum
-{
-        IRQ_INT0,
-        IRQ_INT1,
-        IRQ_INT2,
-        IRQ_INT3,
-        IRQ_INT4,
-        IRQ_INT5,
-        IRQ_INT6,
-        IRQ_INT7,
-        IRQ_TIMER2_COMP,
-        IRQ_TIMER2_OVF,
-        IRQ_TIMER1_CAPT,
-        IRQ_TIMER1_COMPA,
-        IRQ_TIMER1_COMPB,
-        IRQ_TIMER1_OVF,
-        IRQ_TIMER0_COMP,
-        IRQ_TIMER0_OVF,
-        IRQ_SPI_STC,
-        IRQ_UART_RX,
-        IRQ_UART_UDRE,
-        IRQ_UART_TX,
-        IRQ_ADC,
-        IRQ_EE_RDY,
-        IRQ_ANA_COMP,
-        IRQ_TIMER1_COMPC,
-        IRQ_TIMER3_CAP,
-        IRQ_TIMER3_COMPA,
-        IRQ_TIMER3_COMPB,
-        IRQ_TIMER3_COMPC,
-        IRQ_TIMER3_OVF,
-        IRQ_UART1_RX,
-        IRQ_UART1_UDRE,
-        IRQ_UART1_TX,
-        IRQ_I2C,
-        IRQ_SPM_RDY,
-        IRQ_MAX
-};
-
-
-/*-------------------------------------------------------------------------*/
-/* typedefs & structs                                                      */
-/*-------------------------------------------------------------------------*/
-typedef struct
-{
-    u_char KeyLockStatus;               // overall lock, if ACTIVE, keyboard is locked
-    u_char KeyLockEditStatus;           // used when user wants to change the status of the Keylock
-    u_char KeyLockTempStatus;           // after entering a valid PIN, this goes to INACTIVE for 30 secs
-    u_short KeyLockPIN;                 // range = [0]..[5555]
-} TKeyLock;
-
-typedef u_char TIPMode;
-typedef u_char TLanguage;
-
-/*-------------------------------------------------------------------------*/
-/* export global variables                                                 */
-/*-------------------------------------------------------------------------*/
-extern u_char           SystemStatus;
-
-extern TLanguage        SystemLanguage;
-extern TIPMode          SystemIPMode;
-extern TKeyLock         SystemKeyLock;
-
-/*-------------------------------------------------------------------------*/
-/* export global routines (interface)                                      */
-/*-------------------------------------------------------------------------*/
-extern void SysInitVars(void);
-extern void SysPowerOn(void);
-extern void SysPowerOff(void);
-extern void SysInitIO(void);
-extern void SystemShowSysInfo(void);
-
-
-/*  ÍÍÍÍ  End Of File  ÍÍÍÍÍÍÍÍ ÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ */
-
-

+ 0 - 183
lib/typedefs.h

@@ -1,183 +0,0 @@
-#ifndef _Typedefs_H
-#define _Typedefs_H
-/* ========================================================================
- * [PROJECT]    SIR
- * [MODULE]     global module
- * [TITLE]      system header file
- * [FILE]       typedefs.h
- * [VSN]        1.0
- * [CREATED]    09 november 2003
- * [LASTCHNGD]  09 november 2003
- * [COPYRIGHT]  Copyright (C) STREAMIT BV 2010
- * [PURPOSE]    global typedefs
- * ======================================================================== */
-
-
-/*--------------------------------------------------------------------------*/
-/*  Include files                                                           */
-/*--------------------------------------------------------------------------*/
-#include <fs/typedefs.h>
-
-/*--------------------------------------------------------------------------*/
-/*  Constant definitions                                                    */
-/*--------------------------------------------------------------------------*/
-
-/*--------------------------------------------------------------------------*/
-/*  Type declarations                                                       */
-/*--------------------------------------------------------------------------*/
-/* RL: this 'table' has now a mirror table in 'Display.c' (LcdErrorStrings) */
-/*     Make sure that any modification made to this table are reflected by  */
-/*     the LcdErrorStirngs table! (an error is bad but showing the wrong    */
-/*     error is too much....) */
-typedef enum _TERRORCODE
-{
-    OK = 0,                             /* All ok */
-
-    /*
-     * Status messages
-     */
-    CHANNEL_CONNECTING,                 /* Channel connecting */
-    CHANNEL_RETRIEVING,                 /* Retrieving channels */
-    STREAMER_CONNECTING,                /* Connecting to stream */
-    STREAMER_BUFFERING,                 /* Buffering audio */
-    STREAMER_PLAYING,                   /* Playing audio from a stream */
-    STREAMER_FALLBACK,                  /* trying card now, inet failed*/
-    UPDATE_CONNECTING,                  /* connecting to update server */
-    CARD_BUFFERING,                     /* Buffering audio */
-    CARD_PLAYING,                       /* Playing audio from a card */
-
-    USER_ABORT,                         /* User abort */
-
-    /*
-     * Warnings. In other words, problems that are
-     * probably recoverable by a retry
-     */
-    PLAYER_WARNINGS = 200,
-    CHANNEL_HOSTNOTFOUND,               /* Could not resolve hostname */
-    CHANNEL_NEW_ISP,                    /* New ISP settings received */
-    CHANNEL_NEW_DB,                     /* New DB URL info received */
-    CHANNEL_NEW_CHANNEL,                /* New channel info received */
-    CHANNEL_NOCONNECT,                  /* Could not connect (will retry) */
-
-    CHANNEL_TOO_MANY_NOCONNECTS,        /* Could not connect */
-    CHANNEL_REDIRECT,                   /* Redirect (will retry) */
-    CHANNEL_TOO_MANY_REDIRECTS,         /* Too many redirects */
-    CHANNEL_BADRESPONSE,                /* Bad server response (will retry) */
-    CHANNEL_TOO_MANY_BADRESPONSES,      /* Bad server response */
-
-    STREAM_HOSTNOTFOUND,                /* Could not resolve hostname */
-    STREAM_NOCONNECT,                   /* Could not connect (will retry) */
-    STREAM_REDIRECT,                    /* Redirect (will retry) */
-    STREAM_BADRESPONSE,                 /* Bad server response (will retry) */
-
-    INET_HOSTNOTFOUND,                  /* Could not resolve hostname (will retry) */
-    INET_NOCONNECT,                     /* Could not connect (will retry) */
-    INET_BADRESPONSE,                   /* Bad server response (will retry) */
-    INET_REDIRECT,                      /* Redirect (will retry) */
-    INET_ACCESS_RESTRICTED,             /* Access needs login info (will retry) */
-
-    STREAM_TIMEOUT,                     /* Network timeout */
-    STREAM_BADAUDIO,                    /* Audio data seems invalid */
-    STREAM_DISCONNECTED,                /* Server closed the connection */
-    STREAM_BUFFEREMPTY,                 /* Audio buffer ran out of data */
-    STREAM_BADCHANNEL,                  /* Bad channel number */
-
-    UPDATE_NEEDED,                      /* Firmware update is needed */
-
-    PLAYER_WAITPLAY,                    /* Player has nothing to do */
-    PLAYER_STARTING,
-
-    CARD_BUFFEREMPTY,                   /* Audio buffer ran out of data */
-    CARD_BADPLAYLIST,                   /* non-existing or invalid playlist requested */
-    CARD_BADAUDIO,                      /* Audio data seems invalid */
-
-    /*
-     * Errors.
-     * User interaction (e.g. select a different channel) can solve these
-     */
-    PLAYER_ERRORS = 400,
-    BADCHANNEL,                         /* Bad channel number                   - no longer used */
-    STREAM_TOO_MANY_NOCONNECTS,         /* Too many no connects */
-    STREAM_TOO_MANY_BADRESPONSES,       /* Too many bad server responses */
-    STREAM_TOO_MANY_REDIRECTS,          /* Too many redirects */
-    UPDATE_FAILED,                      /* not specified, just failed */
-
-    CHANNEL_NODATA,                     /* Didn't receive any data */
-
-    STREAM_BAD_FILETYPE,                /* Bad type of file */
-    STREAM_BAD_NETWORK,                 /* Too many network failures            - no longer used */
-    STREAM_DISCONNECTED_UNUSED,         /* Server closed the connection         - no longer used */
-    STREAM_BUFFEREMPTY_UNUSED,          /* Audio buffer ran out of data         - no longer used */
-
-    INET_HOST_NONEXISTANT,              /* Hostname unknown */
-    INET_TOO_MANY_NOCONNECTS,           /* Too many no connects */
-    INET_TOO_MANY_REDIRECTS,            /* Too many redirects */
-    INET_TOO_MANY_BADRESPONSES,         /* Too many bad server responses */
-    INET_ACCESS_DENIED,                 /* Access to the server was denied */
-
-    CARD_NO_SONG,                       /* no (more) songs found on this card */
-    CARD_PLAYLIST_IN_USE,               /* trying to open a playlist that was open already */
-    CARD_CREATE_STREAM,                 /* Failed to create a stream */
-    CARD_NO_CARD,                       /* card not present to perfom desired action */
-    CARD_NO_HEAP,                       /* unable to allocate RAM */
-    CARD_NOT_REGISTERED,                /* card present but not know in the system */
-    CARD_WRONG_HASH,                    /* hash results in a non-valid flash-address */
-    /*
-     * System Errors.
-     * These include programming errors but also:
-     * errors that may (or may not..) be solved by a reboot (indicated by REBOOT)
-     */
-    PLAYER_SYSTEMERRORS = 500,
-    PLAYER_NOTREADY,                    /* Player was not successfully initialised */
-    SESSION_NODEVICE,                   /* Could not register devices */
-    SESSION_NODHCP_NOEEPROM,            /* No DHCP and no previous IP address. REBOOT */
-    SESSION_MDMNOINIT,                  /* Could not initialise modem. REBOOT */
-    SESSION_MDMNODISCONNECT,            /* Modem is still connected. REBOOT */
-
-    SESSION_PPPINIT,                    /* Could not initialise PPP */
-    SESSION_PPPSTART,                   /* Could not start PPP (username/password incorrect?)
-                                           Note that NutOs ALWAYS requires a REBOOT in this case! */
-    SESSION_NOROUTEADD,                 /* Could not add route to routetable */
-    CHANNEL_NOMEM,                      /* Not enough memory for channel */
-    CHANNEL_CREATE_SOCKET,              /* Failed to create a socket */
-
-    CHANNEL_SOCK_RCVTO,                 /* Could not set socket option RCVTO */
-    CHANNEL_CREATE_STREAM,              /* Failed to create a stream */
-    STREAM_NOTHREAD,                    /* Could not start streamer thread */
-    STREAM_NOMEM,                       /* Not enough memory for streamer */
-    STREAM_CREATE_SOCKET,               /* Failed to create a socket */
-
-    STREAM_CREATE_STREAM,               /* Failed to create a stream */
-    STREAM_SOCK_MSS,                    /* Could not set socket option MSS */
-    STREAM_SOCK_RCVTO,                  /* Could not set socket option RCVTO */
-    STREAM_SOCK_RXBUF,                  /* Could not set socket option RXBUF */
-
-    UPDATE_WRONG_NROF_BYTES,            /* nrof bytes not as specified in 'update.inf' */
-    UPDATE_CODESIZE_OVERFLOW,           /* codesize exceeds 126KB (note: 2KB needed for bootloader) */
-    UPDATE_CRC_ERROR,                   /* CRC of downloaded code in RAM incorrect */
-    UPDATE_NOT_ALLOWED,                 /* either ISP or bootloader prohibits Remote Update functionality */
-
-    INET_NOMEM,                         /* Not enough memory */
-    INET_CREATE_SOCKET,                 /* Failed to create a socket */
-    INET_SOCK_MSS,                      /* Could not set socket option MSS */
-    INET_SOCK_RCVTO,                    /* Could not set socket option RCVTO */
-    INET_SOCK_RXBUF,                    /* Could not set socket option RXBUF */
-    INET_CREATE_STREAM,                 /* Failed to create a stream */
-    INET_SEND_FAIL,                     /* Failed to send data */
-
-    STREAM_TOO_MANY_ERRORS,             /* Seen too many errors */
-
-    PLAYER_NO_THREAD,                   /* Could not start player thread */
-    PLAYER_NO_SOURCE,                   /* No source to play audio from */
-} TError;
-
-
-/*--------------------------------------------------------------------------*/
-/*  Global variables                                                        */
-/*--------------------------------------------------------------------------*/
-
-/*--------------------------------------------------------------------------*/
-/*  Global functions                                                        */
-/*--------------------------------------------------------------------------*/
-
-#endif /* _Typedefs_H */

+ 0 - 151
lib/uart0driver.c

@@ -1,151 +0,0 @@
-/*!
- * Copyright (C) 2003 by Streamit All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- *
- * 1. Redistributions of source code must retain the above copyright
- *    notice, this list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright
- *    notice, this list of conditions and the following disclaimer in the
- *    documentation and/or other materials provided with the distribution.
- * 3. All advertising materials mentioning features or use of this
- *    software must display the following acknowledgement:
- *
-  *    This product includes software developed by Streamit
- *    and its contributors.
- *
- * THIS SOFTWARE IS PROVIDED BY STREAMIT AND CONTRIBUTORS
- * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
- * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
- * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL CALL DIRECT
- * CELLULAR SOLUTIONS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
- * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
- * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
- * OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
- * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
- * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF
- * THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
- * SUCH DAMAGE.
- *
- * For additional information see http://www.streamit.nl/
- */
-
-/*!
- *
- * COPYRIGHT STREAMIT BV 2010
- * Tested except for the DTR code. This will be done when the final hardware is available
- *
- *
- * [Note] this UART0 is used for serial communication with LTP (or a PC in general).
- */
-
-
-#define LOG_MODULE  LOG_UART0DRIVER_MODULE
-
-#include <stdio.h>
-#include <stdlib.h>
-#include <string.h>
-#include <io.h>
-
-#include <dev/uartavr.h>
-//#include <sys/heap.h>
-#include <sys/thread.h>
-#include <sys/timer.h>
-
-//#pragma text:appcode
-
-#include "system.h"
-#include "uart0driver.h"
-
-
-//----------------------------------------------------------
-
-static FILE *stream=NULL;
-
-//----------------------------------------------------------
-
-/*!
- * \brief Handle input.
- */
-// THREAD(Uart0KeyEvents, arg)
-// {
-    // NutThreadSetPriority(254);  // low prio
-    // for (;;)
-    // {
-        // if (stream==NULL)
-        // {
-            // NutSleep(2000);           //Mhe
-            // continue;
-        // }
-
-       // CommandHandler(stream);
-    // }
-// }
-
-//----------------------------------------------------------
-
-/*!
- * \brief return stream that is connected to terminal program (serial or TCP/IP)
- */
-FILE *Uart0DriverGetStream(void)
-{
-    return(stream);
-}
-
-/*!
- * \brief Uart0 process initialisation. Uses stdout in combination with Uart0.
- */
-void Uart0DriverInit(void)
-{
-    stream = NULL;
-
-    // register Uart0
-    NutRegisterDevice(&devUart0, 0, 0);
-}
-
-/*!
- * \brief Creates a thread to handle incoming data from User.
- */
-void Uart0DriverStart(void)
-{
-    u_long baud = 115200;
-    char DeviceNameBuffer[6];
-    char FileModeBuffer[3];
-
-    strcpy_P(DeviceNameBuffer, PSTR("uart0"));
-    strcpy_P(FileModeBuffer, PSTR("w"));
-
-    /* Open the stream, connect to stdout */
-    if ((stream=freopen(DeviceNameBuffer, FileModeBuffer, stdout)) != NULL)
-    {
-        _ioctl(_fileno(stream), UART_SETSPEED, &baud);
-    }
-
-    // if (stream != NULL)
-    // {
-        // if (GetThreadByName(DeviceNameBuffer) == NULL)
-        // {
-            // NutThreadCreate(DeviceNameBuffer, Uart0KeyEvents, 0, 512);
-        // }
-    // }
-}
-
-void Uart0DriverSetCookedMode(u_long CookedMode)
-{
-    _ioctl(_fileno(stream), UART_SETCOOKEDMODE, &CookedMode);
-}
-
-/*!
- * \brief Close the stream.
- */
-void Uart0DriverStop(void)
-{
-    if (stream)
-    {
-        // needed? (void)_close(_fileno(stream));
-        (void)fclose(stream);
-        stream = NULL;
-    }
-}

+ 0 - 60
lib/uart0driver.h

@@ -1,60 +0,0 @@
-#ifndef _UART0DRIVER_H_
-#define _UART0DRIVER_H_
-/*!
- * Copyright (C) 2003 by Streamit All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- *
- * 1. Redistributions of source code must retain the above copyright
- *    notice, this list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright
- *    notice, this list of conditions and the following disclaimer in the
- *    documentation and/or other materials provided with the distribution.
- * 3. All advertising materials mentioning features or use of this
- *    software must display the following acknowledgement:
- *
-  *    This product includes software developed by Streamit
- *    and its contributors.
- *
- * THIS SOFTWARE IS PROVIDED BY STREAMIT AND CONTRIBUTORS
- * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
- * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
- * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL CALL DIRECT
- * CELLULAR SOLUTIONS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
- * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
- * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
- * OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
- * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
- * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF
- * THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
- * SUCH DAMAGE.
- *
- * For additional information see http://www.streamit.eu/
- */
-/*!
- *
- * COPYRIGHT STREAMIT BV 2010
- * Created
- *
- *
- */
-/*--------------------------------------------------------------------------*/
-/*  Include files                                                           */
-/*--------------------------------------------------------------------------*/
-#include <stdio.h>
-
-#define UART_COOKEDMODE_RAW    0L
-#define UART_COOKEDMODE_EOL    1L
-
-extern void  Uart0DriverInit(void);
-extern void  Uart0DriverStart(void);
-extern void  Uart0DriverStop(void);
-extern FILE *Uart0DriverGetStream(void);
-extern int   Uart0DriverGetNumber(PGM_P prompt, int dflt);
-extern int   Uart0DriverKey(void);
-extern void  Uart0DriverSetCookedMode(u_long Mode);
-
-
-#endif

+ 0 - 164
lib/vs10xx.h

@@ -1,164 +0,0 @@
-/*
- * Copyright (C) 2001-2003 by egnite Software GmbH. All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- *
- * 1. Redistributions of source code must retain the above copyright
- *    notice, this list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright
- *    notice, this list of conditions and the following disclaimer in the
- *    documentation and/or other materials provided with the distribution.
- * 3. Neither the name of the copyright holders nor the names of
- *    contributors may be used to endorse or promote products derived
- *    from this software without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY EGNITE SOFTWARE GMBH AND CONTRIBUTORS
- * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
- * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
- * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL EGNITE
- * SOFTWARE GMBH OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
- * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
- * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
- * OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
- * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
- * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF
- * THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
- * SUCH DAMAGE.
- *
- * For additional information see http://www.ethernut.de/
- *
- * -
- * Portions Copyright (C) 2001 Jesper Hansen <jesperh@telia.com>.
- *
- * This file is part of the yampp system.
- *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU General Public License
- * as published by the Free Software Foundation; either version 2
- * of the License, or (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software Foundation,
- * Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
- */
-
-/*
- *
- * Revision 2.0  2004/09/30 19:37:39  johan van der stoel
- * Fully rewritten to support VS1011 / VS1003. For VS1001: use driver from
- * Ethernut distribution
- *
- * Revision 1.2  2003/07/13 19:37:39  haraldkipp
- * Enable application to control decoder interrupts.
- *
- *
- */
-
-#include <sys/nutconfig.h>
-#include <sys/types.h>
-
-/*-------------------------------------------------------------------------*/
-/* global defines                                                          */
-/*-------------------------------------------------------------------------*/
-
-// Instruction opcodes
-#define VS_OPCODE_READ      3
-#define VS_OPCODE_WRITE     2
-
-// Decoder registers VS1011/VS1003
-#define VS_MODE_REG         0
-#define VS_STATUS_REG       1
-#define VS_BASS_REG         2
-#define VS_CLOCKF_REG       3
-#define VS_DECODE_TIME_REG  4
-#define VS_AUDATA_REG       5
-#define VS_WRAM_REG         6
-#define VS_WRAMADDR_REG     7
-#define VS_HDAT0_REG        8
-#define VS_HDAT1_REG        9
-#define VS_AIADDR_REG      10
-#define VS_VOL_REG         11
-#define VS_AICTRL0_REG     12
-#define VS_AICTRL1_REG     13
-#define VS_AICTRL2_REG     14
-#define VS_AICTRL3_REG     15
-
-#define NROF_VS_REGS       (VS_AICTRL3_REG+1)
-
-// SCI Mode register bits VS1011/VS1003
-#define VS_SM_DIFF          0x0001
-#define VS_SM_JUMP          0x0002 /* VS1011 */
-#define VS_SM_SETTOZERO     0x0002 /* VS1003 */
-#define VS_SM_RESET         0x0004
-#define VS_SM_OUTOFWAV      0x0008
-#define VS_SM_PDOWN         0x0010
-#define VS_SM_TESTS         0x0020
-#define VS_SM_STREAM        0x0040
-#define VS_SM_SETTOZERO1    0x0080 /* VS1011 */
-#define VS_SM_PLUSV         0x0080 /* VS1003 */
-#define VS_SM_DACT          0x0100
-#define VS_SM_SDIORD        0x0200 /* VS1011 */
-#define VS_SM_SDISHARE      0x0400 /* VS1011 */
-#define VS_SM_SDINEW        0x0800 /* VS1011 */
-#define VS_SM_SETTOZERO2    0x1000 /* VS1011 */
-#define VS_SM_ADPCM         0x1000 /* VS1003 */
-#define VS_SM_SETTOZERO3    0x2000 /* VS1011 */
-#define VS_SM_ADPCM_HP      0x2000 /* VS1003 */
-#define VS_SM_LINE_IN       0x4000 /* VS1003 */
-
-// SCI Status register bits 6-4 contains the ID number of the chip
-#define VS_VS1001           0   /* not supported by this driver */
-#define VS_VS1011           1
-#define VS_VS1011e          2   /* VS1002 also returns this, but is not supported by this driver */
-#define VS_VS1003           3
-#define VS_VS1053           4
-#define VS_VS1033           5
-
-
-// Status of the decoder
-#define VS_STATUS_STOPPED   0
-#define VS_STATUS_RUNNING   1
-#define VS_STATUS_EOF       2
-#define VS_STATUS_EMPTY     4
-
-/*-------------------------------------------------------------------------*/
-/* typedefs & structs                                                      */
-/*-------------------------------------------------------------------------*/
-
-/*-------------------------------------------------------------------------*/
-/* export global variables                                                 */
-/*-------------------------------------------------------------------------*/
-
-/*-------------------------------------------------------------------------*/
-/* export global routines (interface)                                      */
-/*-------------------------------------------------------------------------*/
-extern int VsPlayerInit(void);
-extern int VsPlayerReset(u_short mode);
-extern int VsPlayerSetMode(u_short mode);
-extern int VsPlayerKick(void);
-extern int VsPlayerStop(void);
-extern u_char VsPlayerInterrupts(u_char enable);
-
-extern u_char VsGetStatus(void);
-extern u_short VsMemoryTest(void);
-extern u_short VsGetType(void);
-extern u_short VsGetTypeHex(void);
-extern int VsSetVolume(u_char left, u_char right);
-extern u_short VsGetVolume(void);
-extern int VsBeep(u_char fsin, u_short ms);
-extern int VsBeepStart(u_char fsin);
-extern int VsBeepStartRaw(u_char Raw);
-extern int VsBeepStop(void);
-extern u_short VsRegInfo(u_char reg);
-extern void VsRegWrite(u_char reg, u_short data);
-extern u_short VsStreamValid(void);
-
-
-/*@}*/

+ 0 - 48
main.c

@@ -1,48 +0,0 @@
-#define LOG_MODULE  LOG_MAIN_MODULE
-
-/*--------------------------------------------------------------------------*/
-/*  Include files                                                           */
-/*--------------------------------------------------------------------------*/
-#include <stdio.h>
-#include <string.h>
-
-#include <sys/thread.h>
-#include <sys/timer.h>
-#include <sys/version.h>
-#include <dev/irqreg.h>
-#include <time.h>
-
-/*--------------------------------------------------------------------------*/
-/*  Stream-IT Lib files                                                     */
-/*--------------------------------------------------------------------------*/
-#include "lib/led.h"
-#include "lib/system.h"
-#include "lib/portio.h"
-#include "lib/display.h"
-#include "lib/remcon.h"
-#include "lib/keyboard.h"
-#include "lib/log.h"
-#include "lib/uart0driver.h"
-#include "lib/mmc.h"
-//#include "lib/watchdog.h"
-#include "lib/flash.h"
-#include "lib/spidrv.h"
-#include "lib/rtc.h"
-
-
-int main(void)
-{
-    LedInit();
-    Uart0DriverInit();
-    Uart0DriverStart();
-    LogInit();
-    LogMsg_P(LOG_INFO, PSTR("Hello World"));
-    LcdBackLight(LCD_BACKLIGHT_ON);
-
-    for (;;)
-    {
-        LedControl(LED_TOGGLE);
-        NutSleep(1000);
-    }
-    return(0);
-}

+ 0 - 38
nutos/nut/Makedefs.arm-ecross-gcc

@@ -1,38 +0,0 @@
-#
-# Copyright (C) 2010 by Thermotemp GmbH, Embedded-IT, based on template from Egnite
-#
-# All rights reserved.
-#
-# Redistribution and use in source and binary forms, with or without
-# modification, are permitted provided that the following conditions
-# are met:
-#
-# 1. Redistributions of source code must retain the above copyright
-#    notice, this list of conditions and the following disclaimer.
-# 2. Redistributions in binary form must reproduce the above copyright
-#    notice, this list of conditions and the following disclaimer in the
-#    documentation and/or other materials provided with the distribution.
-# 3. Neither the name of the copyright holders nor the names of
-#    contributors may be used to endorse or promote products derived
-#    from this software without specific prior written permission.
-#
-# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-# ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
-# FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
-# COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
-# INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
-# BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
-# OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
-# AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
-# OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF
-# THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
-# SUCH DAMAGE.
-#
-# For additional information see http://www.ethernut.de/
-#
-# $Id: Makedefs.arm-eCross-gcc $
-#
-
-# Inherit arm-gcc variables.
-include $(top_srcdir)/Makevars.arm-ecross-gcc

+ 0 - 46
nutos/nut/Makedefs.arm-ecross-gccdbg

@@ -1,46 +0,0 @@
-#
-# Copyright (C) 2010 by Thermotemp GmbH, Embedded-IT, based on template from Egnite
-#
-# All rights reserved.
-#
-# Redistribution and use in source and binary forms, with or without
-# modification, are permitted provided that the following conditions
-# are met:
-#
-# 1. Redistributions of source code must retain the above copyright
-#    notice, this list of conditions and the following disclaimer.
-# 2. Redistributions in binary form must reproduce the above copyright
-#    notice, this list of conditions and the following disclaimer in the
-#    documentation and/or other materials provided with the distribution.
-# 3. Neither the name of the copyright holders nor the names of
-#    contributors may be used to endorse or promote products derived
-#    from this software without specific prior written permission.
-#
-# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-# ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
-# FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
-# COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
-# INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
-# BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
-# OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
-# AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
-# OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF
-# THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
-# SUCH DAMAGE.
-#
-# For additional information see http://www.ethernut.de/
-#
-# $Id: Makedefs.arm-eCross-gccdbg $
-#
-
-# Inherit arm-gcc variables.
-include $(top_srcdir)/Makevars.arm-ecross-gcc
-
-# Override compiler options to create debug code.
-CFLAGS_OPT   = -O0 -g3
-CXXFLAGS_OPT = -O0 -g3 -fno-delete-null-pointer-checks -fno-exceptions -fno-rtti
-
-# Debug code needs much more stack space.
-DEFS = -DNUT_THREAD_STACK_MULT=3 $(HWDEF)
-

+ 0 - 39
nutos/nut/Makedefs.arm-gcc

@@ -1,39 +0,0 @@
-#
-# Copyright (C) 2001-2006 by egnite Software GmbH
-# Copyright (C) 2009 by egnite GmbH
-#
-# All rights reserved.
-#
-# Redistribution and use in source and binary forms, with or without
-# modification, are permitted provided that the following conditions
-# are met:
-#
-# 1. Redistributions of source code must retain the above copyright
-#    notice, this list of conditions and the following disclaimer.
-# 2. Redistributions in binary form must reproduce the above copyright
-#    notice, this list of conditions and the following disclaimer in the
-#    documentation and/or other materials provided with the distribution.
-# 3. Neither the name of the copyright holders nor the names of
-#    contributors may be used to endorse or promote products derived
-#    from this software without specific prior written permission.
-#
-# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-# ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
-# FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
-# COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
-# INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
-# BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
-# OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
-# AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
-# OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF
-# THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
-# SUCH DAMAGE.
-#
-# For additional information see http://www.ethernut.de/
-#
-# $Id: Makedefs.arm-gcc 2599 2009-04-15 13:09:02Z haraldkipp $
-#
-
-# Inherit arm-gcc variables.
-include $(top_srcdir)/Makevars.arm-gcc

+ 0 - 47
nutos/nut/Makedefs.arm-gccdbg

@@ -1,47 +0,0 @@
-#
-# Copyright (C) 2001-2007 by egnite Software GmbH
-# Copyright (C) 2009 by egnite GmbH
-#
-# All rights reserved.
-#
-# Redistribution and use in source and binary forms, with or without
-# modification, are permitted provided that the following conditions
-# are met:
-#
-# 1. Redistributions of source code must retain the above copyright
-#    notice, this list of conditions and the following disclaimer.
-# 2. Redistributions in binary form must reproduce the above copyright
-#    notice, this list of conditions and the following disclaimer in the
-#    documentation and/or other materials provided with the distribution.
-# 3. Neither the name of the copyright holders nor the names of
-#    contributors may be used to endorse or promote products derived
-#    from this software without specific prior written permission.
-#
-# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-# ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
-# FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
-# COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
-# INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
-# BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
-# OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
-# AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
-# OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF
-# THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
-# SUCH DAMAGE.
-#
-# For additional information see http://www.ethernut.de/
-#
-# $Id: Makedefs.arm-gccdbg 5553 2014-01-18 12:10:24Z u_bonnes $
-#
-
-# Inherit arm-gcc variables.
-include $(top_srcdir)/Makevars.arm-gcc
-
-# Override compiler options to create debug code.
-CFLAGS_OPT   = -O0 -g3
-CXXFLAGS_OPT = -O0 -g3 -fno-delete-null-pointer-checks -fno-exceptions -fno-rtti
-
-# Debug code needs much more stack space.
-DEFS = -DNUT_THREAD_STACK_MULT=3 $(HWDEF)
-

+ 0 - 45
nutos/nut/Makedefs.arm-thumb-gcc

@@ -1,45 +0,0 @@
-#
-# Copyright (C) 2001-2006 by egnite Software GmbH
-# Copyright (C) 2009-2011 by egnite GmbH
-#
-# All rights reserved.
-#
-# Redistribution and use in source and binary forms, with or without
-# modification, are permitted provided that the following conditions
-# are met:
-#
-# 1. Redistributions of source code must retain the above copyright
-#    notice, this list of conditions and the following disclaimer.
-# 2. Redistributions in binary form must reproduce the above copyright
-#    notice, this list of conditions and the following disclaimer in the
-#    documentation and/or other materials provided with the distribution.
-# 3. Neither the name of the copyright holders nor the names of
-#    contributors may be used to endorse or promote products derived
-#    from this software without specific prior written permission.
-#
-# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-# ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
-# FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
-# COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
-# INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
-# BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
-# OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
-# AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
-# OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF
-# THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
-# SUCH DAMAGE.
-#
-# For additional information see http://www.ethernut.de/
-#
-# $Id: Makedefs.arm-thumb-gcc 4256 2012-06-15 09:04:14Z haraldkipp $
-#
-
-# Inherit arm-gcc variables.
-include $(top_srcdir)/Makevars.arm-gcc
-
-# Override compiler options to create thumb code.
-CFLAGS_MCU = $(MCFLAGS) -mthumb -fomit-frame-pointer
-
-# Problems have been reported with -Os.
-CFLAGS_OPT = -O0

+ 0 - 39
nutos/nut/Makedefs.avr-gcc

@@ -1,39 +0,0 @@
-#
-# Copyright (C) 2001-2005 by egnite Software GmbH
-# Copyright (C) 2009 by egnite GmbH
-#
-# All rights reserved.
-#
-# Redistribution and use in source and binary forms, with or without
-# modification, are permitted provided that the following conditions
-# are met:
-#
-# 1. Redistributions of source code must retain the above copyright
-#    notice, this list of conditions and the following disclaimer.
-# 2. Redistributions in binary form must reproduce the above copyright
-#    notice, this list of conditions and the following disclaimer in the
-#    documentation and/or other materials provided with the distribution.
-# 3. Neither the name of the copyright holders nor the names of
-#    contributors may be used to endorse or promote products derived
-#    from this software without specific prior written permission.
-#
-# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-# ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
-# FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
-# COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
-# INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
-# BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
-# OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
-# AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
-# OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF
-# THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
-# SUCH DAMAGE.
-#
-# For additional information see http://www.ethernut.de/
-#
-# $Id: Makedefs.avr-gcc 2599 2009-04-15 13:09:02Z haraldkipp $
-#
-
-# Inherit avr-gcc variables.
-include $(top_srcdir)/Makevars.avr-gcc

+ 0 - 46
nutos/nut/Makedefs.avr-gccdbg

@@ -1,46 +0,0 @@
-#
-# Copyright (C) 2001-2005 by egnite Software GmbH
-# Copyright (C) 2009 by egnite GmbH
-#
-# All rights reserved.
-#
-# Redistribution and use in source and binary forms, with or without
-# modification, are permitted provided that the following conditions
-# are met:
-#
-# 1. Redistributions of source code must retain the above copyright
-#    notice, this list of conditions and the following disclaimer.
-# 2. Redistributions in binary form must reproduce the above copyright
-#    notice, this list of conditions and the following disclaimer in the
-#    documentation and/or other materials provided with the distribution.
-# 3. Neither the name of the copyright holders nor the names of
-#    contributors may be used to endorse or promote products derived
-#    from this software without specific prior written permission.
-#
-# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-# ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
-# FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
-# COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
-# INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
-# BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
-# OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
-# AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
-# OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF
-# THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
-# SUCH DAMAGE.
-#
-# For additional information see http://www.ethernut.de/
-#
-# $Id: Makedefs.avr-gccdbg 5553 2014-01-18 12:10:24Z u_bonnes $
-#
-
-# Inherit avr-gcc variables.
-include $(top_srcdir)/Makevars.avr-gcc
-
-# Override compiler options to create debug code.
-CFLAGS_OPT   = -O0 -g3 -fno-delete-null-pointer-checks
-CXXFLAGS_OPT = -O0 -g3 -fno-delete-null-pointer-checks -fno-exceptions -fno-rtti
-
-# Debug code needs much more stack space.
-DEFS  = -DNUT_THREAD_STACK_ADD=256 $(HWDEF)

+ 0 - 51
nutos/nut/Makedefs.avr-icc7

@@ -1,51 +0,0 @@
-#
-# Copyright (C) 2008-2009 by egnite GmbH
-#
-# All rights reserved.
-#
-# Redistribution and use in source and binary forms, with or without
-# modification, are permitted provided that the following conditions
-# are met:
-#
-# 1. Redistributions of source code must retain the above copyright
-#    notice, this list of conditions and the following disclaimer.
-# 2. Redistributions in binary form must reproduce the above copyright
-#    notice, this list of conditions and the following disclaimer in the
-#    documentation and/or other materials provided with the distribution.
-# 3. Neither the name of the copyright holders nor the names of
-#    contributors may be used to endorse or promote products derived
-#    from this software without specific prior written permission.
-#
-# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-# ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
-# FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
-# COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
-# INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
-# BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
-# OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
-# AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
-# OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF
-# THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
-# SUCH DAMAGE.
-#
-# For additional information see http://www.ethernut.de/
-#
-# $Id: Makedefs.avr-icc7 5439 2013-10-25 20:20:35Z olereinhardt $
-#
-
-DEFS = -DATMEGA -D_MCU_$(MCU) $(HWDEF)
-
-INCPRE=-I
-INCDIR = $(INCPRE)$(top_srcdir)/include/crt/iccavr $(INCPRE)$(top_srcdir)/include $(INCPRE)$(top_srcdir)/include/contrib
-
-CC  = iccavr
-AR  = ilibw
-CP  = cp
-AS  = iccavr
-
-CPFLAGS = $(INCFIRST) $(INCPRE). $(INCDIR) $(INCLAST) -e $(DEFS) -l -MLongJump -MHasMul -M$(MCU)
-#CPFLAGS = -I$(INCDIR) -I$(AVR)/include -e $(DEFS) -l -g -Mavr_$(MCU)
-LDFLAGS = -m -Wl,-Map=$(PROJ).map,--cref
-ARFLAGS = -a
-ASFLAGS = $(INCLAST) -e -l -g -Wa-W -Wa-n

+ 0 - 40
nutos/nut/Makedefs.avr32-gcc

@@ -1,40 +0,0 @@
-#
-# Copyright (C) 2001-2005 by egnite Software GmbH
-# Copyright (C) 2009 by egnite GmbH
-#
-# All rights reserved.
-#
-# Redistribution and use in source and binary forms, with or without
-# modification, are permitted provided that the following conditions
-# are met:
-#
-# 1. Redistributions of source code must retain the above copyright
-#    notice, this list of conditions and the following disclaimer.
-# 2. Redistributions in binary form must reproduce the above copyright
-#    notice, this list of conditions and the following disclaimer in the
-#    documentation and/or other materials provided with the distribution.
-# 3. Neither the name of the copyright holders nor the names of
-#    contributors may be used to endorse or promote products derived
-#    from this software without specific prior written permission.
-#
-# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-# ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
-# FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
-# COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
-# INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
-# BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
-# OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
-# AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
-# OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF
-# THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
-# SUCH DAMAGE.
-#
-# For additional information see http://www.ethernut.de/
-#
-# $Id$
-#
-
-# Inherit avr32-gcc variables.
-include $(top_srcdir)/Makevars.avr32-gcc
-

+ 0 - 46
nutos/nut/Makedefs.avr32-gccdbg

@@ -1,46 +0,0 @@
-#
-# Copyright (C) 2001-2005 by egnite Software GmbH
-# Copyright (C) 2009 by egnite GmbH
-#
-# All rights reserved.
-#
-# Redistribution and use in source and binary forms, with or without
-# modification, are permitted provided that the following conditions
-# are met:
-#
-# 1. Redistributions of source code must retain the above copyright
-#    notice, this list of conditions and the following disclaimer.
-# 2. Redistributions in binary form must reproduce the above copyright
-#    notice, this list of conditions and the following disclaimer in the
-#    documentation and/or other materials provided with the distribution.
-# 3. Neither the name of the copyright holders nor the names of
-#    contributors may be used to endorse or promote products derived
-#    from this software without specific prior written permission.
-#
-# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-# ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
-# FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
-# COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
-# INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
-# BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
-# OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
-# AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
-# OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF
-# THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
-# SUCH DAMAGE.
-#
-# For additional information see http://www.ethernut.de/
-#
-# $Id$
-#
-
-# Inherit avr32-gcc variables.
-include $(top_srcdir)/Makevars.avr32-gcc
-
-# Override compiler options to create debug code.
-CFLAGS_OPT   = -O0 -g3
-CXXFLAGS_OPT = -O0 -g3 -fno-delete-null-pointer-checks -fno-exceptions -fno-rtti
-
-# Debug code needs much more stack space.
-DEFS  = -DNUT_THREAD_STACK_MULT=3 $(HWDEF)

+ 0 - 52
nutos/nut/Makedefs.avrext-icc7

@@ -1,52 +0,0 @@
-#
-# Copyright (C) 2008-2009 by egnite GmbH
-#
-# All rights reserved.
-#
-# Redistribution and use in source and binary forms, with or without
-# modification, are permitted provided that the following conditions
-# are met:
-#
-# 1. Redistributions of source code must retain the above copyright
-#    notice, this list of conditions and the following disclaimer.
-# 2. Redistributions in binary form must reproduce the above copyright
-#    notice, this list of conditions and the following disclaimer in the
-#    documentation and/or other materials provided with the distribution.
-# 3. Neither the name of the copyright holders nor the names of
-#    contributors may be used to endorse or promote products derived
-#    from this software without specific prior written permission.
-#
-# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-# ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
-# FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
-# COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
-# INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
-# BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
-# OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
-# AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
-# OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF
-# THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
-# SUCH DAMAGE.
-#
-# For additional information see http://www.ethernut.de/
-#
-# $Id: Makedefs.avrext-icc7 5439 2013-10-25 20:20:35Z olereinhardt $
-#
-
-DEFS = -DATMEGA -DATMega2561 -D_EE_EXTIO -D_MCU_$(MCU) $(HWDEF)
-
-# LIBDIR = $(top_srcdir)/lib/icc/$(MCU)
-
-INCPRE=-I
-INCDIR = $(INCPRE)$(top_srcdir)/include/crt/iccavr $(INCPRE)$(top_srcdir)/include $(INCPRE)$(top_srcdir)/include/contrib
-
-CC  = iccavr
-AR  = ilibw
-CP  = cp
-AS  = iccavr
-
-CPFLAGS = $(INCFIRST) $(INCPRE). $(INCDIR) $(INCLAST) -e $(DEFS) -l -g -MLongJump -MHasMul -M$(MCU) -Wf-use_elpm
-LDFLAGS = -m -Wl,-Map=$(PROJ).map,--cref
-ARFLAGS = -a
-ASFLAGS = $(INCLAST) -e -l -g -Wa-W -Wa-n

+ 0 - 38
nutos/nut/Makedefs.cm3-ecross-gcc

@@ -1,38 +0,0 @@
-#
-# Copyright (C) 2010 by Thermotemp GmbH, Embedded-IT, based on template from Egnite
-#
-# All rights reserved.
-#
-# Redistribution and use in source and binary forms, with or without
-# modification, are permitted provided that the following conditions
-# are met:
-#
-# 1. Redistributions of source code must retain the above copyright
-#    notice, this list of conditions and the following disclaimer.
-# 2. Redistributions in binary form must reproduce the above copyright
-#    notice, this list of conditions and the following disclaimer in the
-#    documentation and/or other materials provided with the distribution.
-# 3. Neither the name of the copyright holders nor the names of
-#    contributors may be used to endorse or promote products derived
-#    from this software without specific prior written permission.
-#
-# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-# ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
-# FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
-# COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
-# INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
-# BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
-# OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
-# AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
-# OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF
-# THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
-# SUCH DAMAGE.
-#
-# For additional information see http://www.ethernut.de/
-#
-# $Id: Makedefs.cm3-ecross-gcc $
-#
-
-# Inherit arm-gcc variables.
-include $(top_srcdir)/Makevars.cm3-ecross-gcc

+ 0 - 52
nutos/nut/Makedefs.cm3-ecross-gccdbg

@@ -1,52 +0,0 @@
-#
-# Copyright (C) 2010 by Thermotemp GmbH, Embedded-IT, based on template from Egnite
-#
-# All rights reserved.
-#
-# Redistribution and use in source and binary forms, with or without
-# modification, are permitted provided that the following conditions
-# are met:
-#
-# 1. Redistributions of source code must retain the above copyright
-#    notice, this list of conditions and the following disclaimer.
-# 2. Redistributions in binary form must reproduce the above copyright
-#    notice, this list of conditions and the following disclaimer in the
-#    documentation and/or other materials provided with the distribution.
-# 3. Neither the name of the copyright holders nor the names of
-#    contributors may be used to endorse or promote products derived
-#    from this software without specific prior written permission.
-#
-# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-# ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
-# FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
-# COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
-# INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
-# BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
-# OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
-# AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
-# OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF
-# THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
-# SUCH DAMAGE.
-#
-# For additional information see http://www.ethernut.de/
-#
-# $Id: Makedefs.cm3-ecross-gccdbg $
-#
-
-# Inherit arm-gcc variables.
-include $(top_srcdir)/Makevars.cm3-ecross-gcc
-
-# Override compiler options to create debug code.
-CFLAGS_OPT   = -O0 -Wall -Wstrict-prototypes -fverbose-asm -Wa,-ahlms=$(<:.c=.lst) $(DEFS)
-CXXFLAGS_OPT = -O0 -fno-delete-null-pointer-checks -fno-exceptions -fno-rtti
-LDFLAGS   = $(MCFLAGS) -g -nostartfiles -L$(LDPATH) -T$(LDSCRIPT) -Wl,-Map=$(PROJ).map,--cref,--no-warn-mismatch -L$(LIBDIR)
-
-ELFCOF    = $(BIN) --debugging \
-	--change-section-address .data-0x08000000 \
-	--change-section-address .bss-0x08000000 \
-	--change-section-address .noinit-0x08000000 \
-	--change-section-address .rodata-0x08000000
-
-# Debug code needs much more stack space.
-DEFS = -DNUT_THREAD_STACK_MULT=3 $(HWDEF)

+ 0 - 39
nutos/nut/Makedefs.cm3-gcc

@@ -1,39 +0,0 @@
-#
-# Copyright (C) 2001-2006 by egnite Software GmbH
-# Copyright (C) 2009 by egnite GmbH
-#
-# All rights reserved.
-#
-# Redistribution and use in source and binary forms, with or without
-# modification, are permitted provided that the following conditions
-# are met:
-#
-# 1. Redistributions of source code must retain the above copyright
-#    notice, this list of conditions and the following disclaimer.
-# 2. Redistributions in binary form must reproduce the above copyright
-#    notice, this list of conditions and the following disclaimer in the
-#    documentation and/or other materials provided with the distribution.
-# 3. Neither the name of the copyright holders nor the names of
-#    contributors may be used to endorse or promote products derived
-#    from this software without specific prior written permission.
-#
-# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-# ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
-# FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
-# COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
-# INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
-# BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
-# OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
-# AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
-# OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF
-# THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
-# SUCH DAMAGE.
-#
-# For additional information see http://www.ethernut.de/
-#
-# $Id: Makedefs.cm3-gcc 4163 2012-05-15 12:09:43Z olereinhardt $
-#
-
-# Inherit arm-gcc variables.
-include $(top_srcdir)/Makevars.cm3-gcc

+ 0 - 54
nutos/nut/Makedefs.cm3-gccdbg

@@ -1,54 +0,0 @@
-#
-# Copyright (C) 2001-2007 by egnite Software GmbH
-# Copyright (C) 2009 by egnite GmbH
-#
-# All rights reserved.
-#
-# Redistribution and use in source and binary forms, with or without
-# modification, are permitted provided that the following conditions
-# are met:
-#
-# 1. Redistributions of source code must retain the above copyright
-#    notice, this list of conditions and the following disclaimer.
-# 2. Redistributions in binary form must reproduce the above copyright
-#    notice, this list of conditions and the following disclaimer in the
-#    documentation and/or other materials provided with the distribution.
-# 3. Neither the name of the copyright holders nor the names of
-#    contributors may be used to endorse or promote products derived
-#    from this software without specific prior written permission.
-#
-# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-# ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
-# FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
-# COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
-# INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
-# BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
-# OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
-# AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
-# OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF
-# THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
-# SUCH DAMAGE.
-#
-# For additional information see http://www.ethernut.de/
-#
-# $Id: Makedefs.cm3-gccdbg 5684 2014-05-01 18:34:40Z olereinhardt $
-#
-
-# Inherit arm-gcc variables.
-include $(top_srcdir)/Makevars.cm3-gcc
-
-# Override compiler options to create debug code.
-CFLAGS_OPT   = -O0 -g3 -Wall -Wstrict-prototypes -fverbose-asm -Wa,-ahlms=$(<:.c=.lst) $(MDEBUG)
-CXXFLAGS_OPT = -O0 -g3 -fno-delete-null-pointer-checks -fno-exceptions -fno-rtti
-LDFLAGS   = $(MCFLAGS) -g -nostartfiles -L$(LDPATH) -T$(LDSCRIPT) -Wl,-Map=$(PROJ).map,--cref,--no-warn-mismatch -L$(LIBDIR)
-
-ELFCOF    = $(BIN) --debugging \
-	--change-section-address .data-0x08000000 \
-	--change-section-address .bss-0x08000000 \
-	--change-section-address .noinit-0x08000000 \
-	--change-section-address .rodata-0x08000000
-
-# Debug code needs much more stack space.
-DEFS = -DNUT_THREAD_STACK_MULT=3 $(HWDEF)
-

+ 0 - 65
nutos/nut/Makedefs.h8-gcc

@@ -1,65 +0,0 @@
-#
-# Copyright (C) 2001-2004 by egnite Software GmbH
-# Copyright (C) 2009 by egnite GmbH
-#
-# All rights reserved.
-#
-# Redistribution and use in source and binary forms, with or without
-# modification, are permitted provided that the following conditions
-# are met:
-#
-# 1. Redistributions of source code must retain the above copyright
-#    notice, this list of conditions and the following disclaimer.
-# 2. Redistributions in binary form must reproduce the above copyright
-#    notice, this list of conditions and the following disclaimer in the
-#    documentation and/or other materials provided with the distribution.
-# 3. Neither the name of the copyright holders nor the names of
-#    contributors may be used to endorse or promote products derived
-#    from this software without specific prior written permission.
-#
-# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-# ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
-# FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
-# COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
-# INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
-# BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
-# OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
-# AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
-# OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF
-# THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
-# SUCH DAMAGE.
-#
-# For additional information see http://www.ethernut.de/
-#
-# $Id: Makedefs.h8-gcc 2599 2009-04-15 13:09:02Z haraldkipp $
-#
-
-include $(top_srcdir)/UserConf.mk
-
-DEFS = -DNUT_CPU_FREQ=22118400 $(HWDEF)
-#DEFS = -DNUT_CPU_FREQ=22118400 -DNUTDEBUG $(HWDEF)
-#DEFS  = $(HWDEF)
-#DEFS = -DNUTDEBUG $(HWDEF)
-#DEFS = -DNUT_CPU_FREQ=14745600 $(HWDEF)
-#DEFS = -DNUT_CPU_FREQ=3686400 $(HWDEF)
-
-LIBDIR = $(top_srcdir)/lib/gcc/$(MCU)
-INCDIR = $(top_srcdir)/include
-HWINC = $(top_srcdir)/arch/$(ARCH)/include
-
-MODDIR = $(top_srcdir)/mod
-MODINC = $(MODDIR)/include
-
-include $(top_srcdir)/Makevars.gcc
-
-TRGT   = h8300-elf-
-LD     = $(TRGT)ld
-CP     = cp
-
-MCFLAGS = $(MCUOPTS)
-CPFLAGS = $(MCFLAGS) -Os -fomit-frame-pointer -Wall -Werror -Wstrict-prototypes -fverbose-asm -Wa,-ahlms=$(<:.c=.lst) $(DEFS)
-#CPFLAGS = -g $(MCFLAGS) -O1 -Wall -Wstrict-prototypes -fverbose-asm -Wa,-ahlms=$(<:.c=.lst) $(DEFS)
-LDFLAGS = $(MCFLAGS) -Wl,-T$(LDSCRIPT),-Map=$(PROJ).map,--relax,--sort-common,--strip-all,--cref -L$(LIBDIR) $(LDDIRS)
-ARFLAGS = rsv
-ASFLAGS = $(MCFLAGS) -DROMSTART $(RUNFLAG) -Wa,-amhls=$(<:.S=.lst) $(DEFS)

+ 0 - 42
nutos/nut/Makedefs.m68k-gcc

@@ -1,42 +0,0 @@
-#
-# Copyright (C) 2001-2005 by egnite Software GmbH
-# Copyright (C) 2009 by egnite GmbH
-#
-# All rights reserved.
-#
-# Redistribution and use in source and binary forms, with or without
-# modification, are permitted provided that the following conditions
-# are met:
-#
-# 1. Redistributions of source code must retain the above copyright
-#    notice, this list of conditions and the following disclaimer.
-# 2. Redistributions in binary form must reproduce the above copyright
-#    notice, this list of conditions and the following disclaimer in the
-#    documentation and/or other materials provided with the distribution.
-# 3. Neither the name of the copyright holders nor the names of
-#    contributors may be used to endorse or promote products derived
-#    from this software without specific prior written permission.
-#
-# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-# ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
-# FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
-# COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
-# INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
-# BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
-# OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
-# AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
-# OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF
-# THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
-# SUCH DAMAGE.
-#
-# For additional information see http://www.ethernut.de/
-#
-# $Id$
-#
-
-# Inherit m68k-gcc variables.
-include $(top_srcdir)/Makevars.m68k-gcc
-
-# Override compiler options to create mode detailed listings
-CFLAGS_ASM = -Wa,-aghlms=$(@:.o=.lst)

+ 0 - 48
nutos/nut/Makedefs.m68k-gccdbg

@@ -1,48 +0,0 @@
-#
-# Copyright (C) 2001-2005 by egnite Software GmbH
-# Copyright (C) 2009 by egnite GmbH
-#
-# All rights reserved.
-#
-# Redistribution and use in source and binary forms, with or without
-# modification, are permitted provided that the following conditions
-# are met:
-#
-# 1. Redistributions of source code must retain the above copyright
-#    notice, this list of conditions and the following disclaimer.
-# 2. Redistributions in binary form must reproduce the above copyright
-#    notice, this list of conditions and the following disclaimer in the
-#    documentation and/or other materials provided with the distribution.
-# 3. Neither the name of the copyright holders nor the names of
-#    contributors may be used to endorse or promote products derived
-#    from this software without specific prior written permission.
-#
-# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-# ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
-# FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
-# COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
-# INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
-# BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
-# OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
-# AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
-# OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF
-# THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
-# SUCH DAMAGE.
-#
-# For additional information see http://www.ethernut.de/
-#
-# $Id$
-#
-
-# Inherit m68k-gcc variables.
-include $(top_srcdir)/Makevars.m68k-gcc
-
-# Override compiler options to create debug code.
-CFLAGS_OPT   = -O0 -g3
-
-# Override compiler options to create mode detailed listings
-CFLAGS_ASM = -Wa,-aghlms=$(@:.o=.lst)
-
-# Debug code needs much more stack space.
-DEFS  = -DNUT_THREAD_STACK_MULT=3 $(HWDEF)

+ 0 - 63
nutos/nut/Makedefs.unix-gcc

@@ -1,63 +0,0 @@
-#
-# Copyright (C) 2001-2005 by egnite Software GmbH
-# Copyright (C) 2009 by egnite GmbH
-#
-# All rights reserved.
-#
-# Redistribution and use in source and binary forms, with or without
-# modification, are permitted provided that the following conditions
-# are met:
-#
-# 1. Redistributions of source code must retain the above copyright
-#    notice, this list of conditions and the following disclaimer.
-# 2. Redistributions in binary form must reproduce the above copyright
-#    notice, this list of conditions and the following disclaimer in the
-#    documentation and/or other materials provided with the distribution.
-# 3. Neither the name of the copyright holders nor the names of
-#    contributors may be used to endorse or promote products derived
-#    from this software without specific prior written permission.
-#
-# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-# ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
-# FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
-# COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
-# INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
-# BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
-# OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
-# AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
-# OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF
-# THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
-# SUCH DAMAGE.
-#
-# For additional information see http://www.ethernut.de/
-#
-# $Id: Makedefs.unix-gcc 5472 2013-12-06 00:16:28Z olereinhardt $
-#
-
-include $(top_srcdir)/UserConf.mk
-
-DEFS  = $(HWDEF) -D__NUT_EMULATION__
-
-LIBDIR = $(top_srcdir)/lib/gcc/$(MCU)
-INCPRE = -I
-INCDIR = $(top_srcdir)/include
-
-include $(top_srcdir)/Makevars.gcc
-
-TRGT   = 
-CP     = cp
-
-# C++ compiler options.
-CPFLAGS = -g -Os -Wall -Werror -Wstrict-prototypes $(DEFS)
-
-# Linker options and flags.
-LDFLAGS = -L$(LIBDIR) $(LIBS)
-
-# Assembler options.
-ASFLAGS =  -Wa,-amhls=$(<:.S=.lst) $(DEFS)
-
-# Librarian options.
-#ARFLAGS = rsv
-# More silent version
-ARFLAGS = rsc

+ 0 - 57
nutos/nut/Makerules.all

@@ -1,57 +0,0 @@
-#
-# Copyright (C) 2001-2006 by egnite Software GmbH
-# Copyright (C) 2009 by egnite GmbH
-#
-# All rights reserved.
-#
-# Redistribution and use in source and binary forms, with or without
-# modification, are permitted provided that the following conditions
-# are met:
-#
-# 1. Redistributions of source code must retain the above copyright
-#    notice, this list of conditions and the following disclaimer.
-# 2. Redistributions in binary form must reproduce the above copyright
-#    notice, this list of conditions and the following disclaimer in the
-#    documentation and/or other materials provided with the distribution.
-# 3. All advertising materials mentioning features or use of this
-#    software must display the following acknowledgement:
-#
-#    This product includes software developed by egnite Software GmbH
-#    and its contributors.
-#
-# THIS SOFTWARE IS PROVIDED BY EGNITE SOFTWARE GMBH AND CONTRIBUTORS
-# ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
-# FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL EGNITE
-# SOFTWARE GMBH OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
-# INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
-# BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
-# OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
-# AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
-# OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF
-# THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
-# SUCH DAMAGE.
-#
-# For additional information see http://www.ethernut.de/
-#
-# $Id$
-#
-
-include $(top_srcdir)/Makerules.licenses
-
-help-libs:
-	$(info 'make all'       Creates all libraries. This is the default.)
-	$(info 'make clean'     Deletes all files that had been created by 'make all')
-	$(info 'make distclean' Deletes everything that can be reconstructed and all temporary files)
-	$(info 'make install'   Creates all libries and installs them for actual use.)
-	$(info 'make uninstall' Removes all installed libraries.)
-
-help: help-libs
-
-cleanedit: tempclean
-
-tempclean:
-	-rm -f $(SRCS:.c=.bak)
-	-rm -f $(SRCS:.c=.c~)
-
-.PHONY: cleanedit tempclean help help-libs help-apps

+ 0 - 37
nutos/nut/Makerules.arm-ecross-gcc

@@ -1,37 +0,0 @@
-#
-# Copyright (C) 2010 by Thermotemp GmbH, Embedded-IT, based on template from Egnite
-#
-# All rights reserved.
-#
-# Redistribution and use in source and binary forms, with or without
-# modification, are permitted provided that the following conditions
-# are met:
-#
-# 1. Redistributions of source code must retain the above copyright
-#    notice, this list of conditions and the following disclaimer.
-# 2. Redistributions in binary form must reproduce the above copyright
-#    notice, this list of conditions and the following disclaimer in the
-#    documentation and/or other materials provided with the distribution.
-# 3. Neither the name of the copyright holders nor the names of
-#    contributors may be used to endorse or promote products derived
-#    from this software without specific prior written permission.
-#
-# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-# ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
-# FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
-# COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
-# INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
-# BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
-# OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
-# AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
-# OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF
-# THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
-# SUCH DAMAGE.
-#
-# For additional information see http://www.ethernut.de/
-#
-# $Id: Makerules.arm-eCross-gcc $
-#
-
-include $(top_srcdir)/Makerules.gcc

+ 0 - 37
nutos/nut/Makerules.arm-ecross-gccdbg

@@ -1,37 +0,0 @@
-#
-# Copyright (C) 2010 by Thermotemp GmbH, Embedded-IT, based on template from Egnite
-#
-# All rights reserved.
-#
-# Redistribution and use in source and binary forms, with or without
-# modification, are permitted provided that the following conditions
-# are met:
-#
-# 1. Redistributions of source code must retain the above copyright
-#    notice, this list of conditions and the following disclaimer.
-# 2. Redistributions in binary form must reproduce the above copyright
-#    notice, this list of conditions and the following disclaimer in the
-#    documentation and/or other materials provided with the distribution.
-# 3. Neither the name of the copyright holders nor the names of
-#    contributors may be used to endorse or promote products derived
-#    from this software without specific prior written permission.
-#
-# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-# ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
-# FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
-# COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
-# INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
-# BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
-# OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
-# AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
-# OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF
-# THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
-# SUCH DAMAGE.
-#
-# For additional information see http://www.ethernut.de/
-#
-# $Id: Makerules.arm-eCross-gccdbg $
-#
-
-include $(top_srcdir)/Makerules.gcc

+ 0 - 38
nutos/nut/Makerules.arm-gcc

@@ -1,38 +0,0 @@
-#
-# Copyright (C) 2001-2006 by egnite Software GmbH
-# Copyright (C) 2009 by egnite GmbH
-#
-# All rights reserved.
-#
-# Redistribution and use in source and binary forms, with or without
-# modification, are permitted provided that the following conditions
-# are met:
-#
-# 1. Redistributions of source code must retain the above copyright
-#    notice, this list of conditions and the following disclaimer.
-# 2. Redistributions in binary form must reproduce the above copyright
-#    notice, this list of conditions and the following disclaimer in the
-#    documentation and/or other materials provided with the distribution.
-# 3. Neither the name of the copyright holders nor the names of
-#    contributors may be used to endorse or promote products derived
-#    from this software without specific prior written permission.
-#
-# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-# ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
-# FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
-# COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
-# INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
-# BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
-# OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
-# AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
-# OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF
-# THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
-# SUCH DAMAGE.
-#
-# For additional information see http://www.ethernut.de/
-#
-# $Id: Makerules.arm-gcc 2599 2009-04-15 13:09:02Z haraldkipp $
-#
-
-include $(top_srcdir)/Makerules.gcc

+ 0 - 38
nutos/nut/Makerules.arm-gccdbg

@@ -1,38 +0,0 @@
-#
-# Copyright (C) 2001-2007 by egnite Software GmbH
-# Copyright (C) 2009 by egnite GmbH
-#
-# All rights reserved.
-#
-# Redistribution and use in source and binary forms, with or without
-# modification, are permitted provided that the following conditions
-# are met:
-#
-# 1. Redistributions of source code must retain the above copyright
-#    notice, this list of conditions and the following disclaimer.
-# 2. Redistributions in binary form must reproduce the above copyright
-#    notice, this list of conditions and the following disclaimer in the
-#    documentation and/or other materials provided with the distribution.
-# 3. Neither the name of the copyright holders nor the names of
-#    contributors may be used to endorse or promote products derived
-#    from this software without specific prior written permission.
-#
-# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-# ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
-# FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
-# COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
-# INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
-# BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
-# OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
-# AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
-# OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF
-# THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
-# SUCH DAMAGE.
-#
-# For additional information see http://www.ethernut.de/
-#
-# $Id: Makerules.arm-gccdbg 2599 2009-04-15 13:09:02Z haraldkipp $
-#
-
-include $(top_srcdir)/Makerules.gcc

+ 0 - 38
nutos/nut/Makerules.arm-thumb-gcc

@@ -1,38 +0,0 @@
-#
-# Copyright (C) 2001-2006 by egnite Software GmbH
-# Copyright (C) 2009-2011 by egnite GmbH
-#
-# All rights reserved.
-#
-# Redistribution and use in source and binary forms, with or without
-# modification, are permitted provided that the following conditions
-# are met:
-#
-# 1. Redistributions of source code must retain the above copyright
-#    notice, this list of conditions and the following disclaimer.
-# 2. Redistributions in binary form must reproduce the above copyright
-#    notice, this list of conditions and the following disclaimer in the
-#    documentation and/or other materials provided with the distribution.
-# 3. Neither the name of the copyright holders nor the names of
-#    contributors may be used to endorse or promote products derived
-#    from this software without specific prior written permission.
-#
-# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-# ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
-# FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
-# COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
-# INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
-# BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
-# OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
-# AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
-# OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF
-# THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
-# SUCH DAMAGE.
-#
-# For additional information see http://www.ethernut.de/
-#
-# $Id: Makerules.arm-thumb-gcc 4256 2012-06-15 09:04:14Z haraldkipp $
-#
-
-include $(top_srcdir)/Makerules.gcc

+ 0 - 38
nutos/nut/Makerules.avr-gcc

@@ -1,38 +0,0 @@
-#
-# Copyright (C) 2001-2005 by egnite Software GmbH
-# Copyright (C) 2009 by egnite GmbH
-#
-# All rights reserved.
-#
-# Redistribution and use in source and binary forms, with or without
-# modification, are permitted provided that the following conditions
-# are met:
-#
-# 1. Redistributions of source code must retain the above copyright
-#    notice, this list of conditions and the following disclaimer.
-# 2. Redistributions in binary form must reproduce the above copyright
-#    notice, this list of conditions and the following disclaimer in the
-#    documentation and/or other materials provided with the distribution.
-# 3. Neither the name of the copyright holders nor the names of
-#    contributors may be used to endorse or promote products derived
-#    from this software without specific prior written permission.
-#
-# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-# ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
-# FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
-# COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
-# INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
-# BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
-# OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
-# AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
-# OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF
-# THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
-# SUCH DAMAGE.
-#
-# For additional information see http://www.ethernut.de/
-#
-# $Id: Makerules.avr-gcc 2599 2009-04-15 13:09:02Z haraldkipp $
-#
-
-include $(top_srcdir)/Makerules.gcc

+ 0 - 38
nutos/nut/Makerules.avr-gccdbg

@@ -1,38 +0,0 @@
-#
-# Copyright (C) 2001-2005 by egnite Software GmbH
-# Copyright (C) 2009 by egnite GmbH
-#
-# All rights reserved.
-#
-# Redistribution and use in source and binary forms, with or without
-# modification, are permitted provided that the following conditions
-# are met:
-#
-# 1. Redistributions of source code must retain the above copyright
-#    notice, this list of conditions and the following disclaimer.
-# 2. Redistributions in binary form must reproduce the above copyright
-#    notice, this list of conditions and the following disclaimer in the
-#    documentation and/or other materials provided with the distribution.
-# 3. Neither the name of the copyright holders nor the names of
-#    contributors may be used to endorse or promote products derived
-#    from this software without specific prior written permission.
-#
-# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-# ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
-# FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
-# COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
-# INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
-# BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
-# OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
-# AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
-# OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF
-# THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
-# SUCH DAMAGE.
-#
-# For additional information see http://www.ethernut.de/
-#
-# $Id: Makerules.avr-gccdbg 2599 2009-04-15 13:09:02Z haraldkipp $
-#
-
-include $(top_srcdir)/Makerules.gcc

+ 0 - 72
nutos/nut/Makerules.avr-icc7

@@ -1,72 +0,0 @@
-#
-# Copyright (C) 2008-2009 by egnite GmbH
-#
-# All rights reserved.
-#
-# Redistribution and use in source and binary forms, with or without
-# modification, are permitted provided that the following conditions
-# are met:
-#
-# 1. Redistributions of source code must retain the above copyright
-#    notice, this list of conditions and the following disclaimer.
-# 2. Redistributions in binary form must reproduce the above copyright
-#    notice, this list of conditions and the following disclaimer in the
-#    documentation and/or other materials provided with the distribution.
-# 3. Neither the name of the copyright holders nor the names of
-#    contributors may be used to endorse or promote products derived
-#    from this software without specific prior written permission.
-#
-# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-# ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
-# FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
-# COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
-# INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
-# BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
-# OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
-# AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
-# OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF
-# THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
-# SUCH DAMAGE.
-#
-# For additional information see http://www.ethernut.de/
-#
-# $Id: Makerules.avr-icc7 3418 2011-05-16 09:55:13Z haraldkipp $
-#
-
-%.o : %.c
-	$(CC) -c $(CPFLAGS) $<
-
-%.o : %.S
-	$(AS) -c $(ASFLAGS) $< -o $@
-
-%.s : %.c
-	$(CC) -S $(CPFLAGS) $< -o $@
-
-%.elf: $(OBJS)
-	$(CC) $(OBJS) $(LIB) $(LDFLAGS) -o $@
-
-%.obj: %.elf
-	$(BIN) -O avrobj $< $@
-
-%.rom: %.elf
-	$(BIN) -O srec $< $@
-
-%.eep: %.elf
-	$(BIN) -j .eeprom --set-section-flags=.eeprom="alloc,load" -O srec $< $@
-
-%.a: $(OBJS)
-	$(AR) $(ARFLAGS) $@ $(?F)
-
-.PHONY: cleancc
-cleancc:
-	-rm -f $(OBJS)
-	-rm -f $(TARG)
-	-rm -f $(SRCS:.c=.lst)
-	-rm -f $(SRCS:.c=.lis)
-	-rm -f $(SRCS:.c=.s)
-
-.PHONY: cleanedit
-cleanedit:
-	-rm -f $(SRCS:.c=.bak)
-	-rm -f $(SRCS:.c=.c~)

+ 0 - 38
nutos/nut/Makerules.avr32-gcc

@@ -1,38 +0,0 @@
-#
-# Copyright (C) 2001-2006 by egnite Software GmbH
-# Copyright (C) 2009 by egnite GmbH
-#
-# All rights reserved.
-#
-# Redistribution and use in source and binary forms, with or without
-# modification, are permitted provided that the following conditions
-# are met:
-#
-# 1. Redistributions of source code must retain the above copyright
-#    notice, this list of conditions and the following disclaimer.
-# 2. Redistributions in binary form must reproduce the above copyright
-#    notice, this list of conditions and the following disclaimer in the
-#    documentation and/or other materials provided with the distribution.
-# 3. Neither the name of the copyright holders nor the names of
-#    contributors may be used to endorse or promote products derived
-#    from this software without specific prior written permission.
-#
-# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-# ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
-# FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
-# COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
-# INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
-# BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
-# OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
-# AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
-# OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF
-# THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
-# SUCH DAMAGE.
-#
-# For additional information see http://www.ethernut.de/
-#
-# $Id$
-#
-
-include $(top_srcdir)/Makerules.gcc

+ 0 - 38
nutos/nut/Makerules.avr32-gccdbg

@@ -1,38 +0,0 @@
-#
-# Copyright (C) 2001-2006 by egnite Software GmbH
-# Copyright (C) 2009 by egnite GmbH
-#
-# All rights reserved.
-#
-# Redistribution and use in source and binary forms, with or without
-# modification, are permitted provided that the following conditions
-# are met:
-#
-# 1. Redistributions of source code must retain the above copyright
-#    notice, this list of conditions and the following disclaimer.
-# 2. Redistributions in binary form must reproduce the above copyright
-#    notice, this list of conditions and the following disclaimer in the
-#    documentation and/or other materials provided with the distribution.
-# 3. Neither the name of the copyright holders nor the names of
-#    contributors may be used to endorse or promote products derived
-#    from this software without specific prior written permission.
-#
-# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-# ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
-# FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
-# COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
-# INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
-# BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
-# OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
-# AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
-# OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF
-# THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
-# SUCH DAMAGE.
-#
-# For additional information see http://www.ethernut.de/
-#
-# $Id$
-#
-
-include $(top_srcdir)/Makerules.gcc

+ 0 - 72
nutos/nut/Makerules.avrext-icc7

@@ -1,72 +0,0 @@
-#
-# Copyright (C) 2008-2009 by egnite GmbH
-#
-# All rights reserved.
-#
-# Redistribution and use in source and binary forms, with or without
-# modification, are permitted provided that the following conditions
-# are met:
-#
-# 1. Redistributions of source code must retain the above copyright
-#    notice, this list of conditions and the following disclaimer.
-# 2. Redistributions in binary form must reproduce the above copyright
-#    notice, this list of conditions and the following disclaimer in the
-#    documentation and/or other materials provided with the distribution.
-# 3. Neither the name of the copyright holders nor the names of
-#    contributors may be used to endorse or promote products derived
-#    from this software without specific prior written permission.
-#
-# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-# ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
-# FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
-# COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
-# INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
-# BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
-# OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
-# AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
-# OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF
-# THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
-# SUCH DAMAGE.
-#
-# For additional information see http://www.ethernut.de/
-#
-# $Id: Makerules.avrext-icc7 3418 2011-05-16 09:55:13Z haraldkipp $
-#
-
-%.o : %.c
-	$(CC) -c $(CPFLAGS) $<
-
-%.o : %.S
-	$(AS) -c $(ASFLAGS) $< -o $@
-
-%.s : %.c
-	$(CC) -S $(CPFLAGS) $< -o $@
-
-%.elf: $(OBJS)
-	$(CC) $(OBJS) $(LIB) $(LDFLAGS) -o $@
-
-%.obj: %.elf
-	$(BIN) -O avrobj $< $@
-
-%.rom: %.elf
-	$(BIN) -O srec $< $@
-
-%.eep: %.elf
-	$(BIN) -j .eeprom --set-section-flags=.eeprom="alloc,load" -O srec $< $@
-
-%.a: $(OBJS)
-	$(AR) $(ARFLAGS) $@ $(?F)
-
-.PHONY: cleancc
-cleancc:
-	-rm -f $(OBJS)
-	-rm -f $(TARG)
-	-rm -f $(SRCS:.c=.lst)
-	-rm -f $(SRCS:.c=.lis)
-	-rm -f $(SRCS:.c=.s)
-
-.PHONY: cleanedit
-cleanedit:
-	-rm -f $(SRCS:.c=.bak)
-	-rm -f $(SRCS:.c=.c~)

+ 0 - 37
nutos/nut/Makerules.cm3-ecross-gcc

@@ -1,37 +0,0 @@
-#
-# Copyright (C) 2010 by Thermotemp GmbH, Embedded-IT, based on template from Egnite
-#
-# All rights reserved.
-#
-# Redistribution and use in source and binary forms, with or without
-# modification, are permitted provided that the following conditions
-# are met:
-#
-# 1. Redistributions of source code must retain the above copyright
-#    notice, this list of conditions and the following disclaimer.
-# 2. Redistributions in binary form must reproduce the above copyright
-#    notice, this list of conditions and the following disclaimer in the
-#    documentation and/or other materials provided with the distribution.
-# 3. Neither the name of the copyright holders nor the names of
-#    contributors may be used to endorse or promote products derived
-#    from this software without specific prior written permission.
-#
-# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-# ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
-# FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
-# COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
-# INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
-# BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
-# OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
-# AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
-# OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF
-# THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
-# SUCH DAMAGE.
-#
-# For additional information see http://www.ethernut.de/
-#
-# $Id: Makerules.cm3-ecross-gcc $
-#
-
-include $(top_srcdir)/Makerules.gcc

+ 0 - 37
nutos/nut/Makerules.cm3-ecross-gccdbg

@@ -1,37 +0,0 @@
-#
-# Copyright (C) 2010 by Thermotemp GmbH, Embedded-IT, based on template from Egnite
-#
-# All rights reserved.
-#
-# Redistribution and use in source and binary forms, with or without
-# modification, are permitted provided that the following conditions
-# are met:
-#
-# 1. Redistributions of source code must retain the above copyright
-#    notice, this list of conditions and the following disclaimer.
-# 2. Redistributions in binary form must reproduce the above copyright
-#    notice, this list of conditions and the following disclaimer in the
-#    documentation and/or other materials provided with the distribution.
-# 3. Neither the name of the copyright holders nor the names of
-#    contributors may be used to endorse or promote products derived
-#    from this software without specific prior written permission.
-#
-# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-# ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
-# FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
-# COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
-# INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
-# BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
-# OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
-# AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
-# OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF
-# THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
-# SUCH DAMAGE.
-#
-# For additional information see http://www.ethernut.de/
-#
-# $Id: Makerules.cm3-ecross-gccdbg $
-#
-
-include $(top_srcdir)/Makerules.gcc

+ 0 - 38
nutos/nut/Makerules.cm3-gcc

@@ -1,38 +0,0 @@
-#
-# Copyright (C) 2001-2006 by egnite Software GmbH
-# Copyright (C) 2009 by egnite GmbH
-#
-# All rights reserved.
-#
-# Redistribution and use in source and binary forms, with or without
-# modification, are permitted provided that the following conditions
-# are met:
-#
-# 1. Redistributions of source code must retain the above copyright
-#    notice, this list of conditions and the following disclaimer.
-# 2. Redistributions in binary form must reproduce the above copyright
-#    notice, this list of conditions and the following disclaimer in the
-#    documentation and/or other materials provided with the distribution.
-# 3. Neither the name of the copyright holders nor the names of
-#    contributors may be used to endorse or promote products derived
-#    from this software without specific prior written permission.
-#
-# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-# ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
-# FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
-# COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
-# INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
-# BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
-# OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
-# AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
-# OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF
-# THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
-# SUCH DAMAGE.
-#
-# For additional information see http://www.ethernut.de/
-#
-# $Id: Makerules.cm3-gcc 4163 2012-05-15 12:09:43Z olereinhardt $
-#
-
-include $(top_srcdir)/Makerules.gcc

+ 0 - 38
nutos/nut/Makerules.cm3-gccdbg

@@ -1,38 +0,0 @@
-#
-# Copyright (C) 2001-2007 by egnite Software GmbH
-# Copyright (C) 2009 by egnite GmbH
-#
-# All rights reserved.
-#
-# Redistribution and use in source and binary forms, with or without
-# modification, are permitted provided that the following conditions
-# are met:
-#
-# 1. Redistributions of source code must retain the above copyright
-#    notice, this list of conditions and the following disclaimer.
-# 2. Redistributions in binary form must reproduce the above copyright
-#    notice, this list of conditions and the following disclaimer in the
-#    documentation and/or other materials provided with the distribution.
-# 3. Neither the name of the copyright holders nor the names of
-#    contributors may be used to endorse or promote products derived
-#    from this software without specific prior written permission.
-#
-# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-# ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
-# FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
-# COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
-# INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
-# BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
-# OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
-# AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
-# OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF
-# THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
-# SUCH DAMAGE.
-#
-# For additional information see http://www.ethernut.de/
-#
-# $Id: Makerules.cm3-gccdbg 4163 2012-05-15 12:09:43Z olereinhardt $
-#
-
-include $(top_srcdir)/Makerules.gcc

+ 0 - 65
nutos/nut/Makerules.gcc

@@ -1,65 +0,0 @@
-#
-# Copyright (C) 2001-2006 by egnite Software GmbH
-# Copyright (C) 2009 by egnite GmbH
-#
-# All rights reserved.
-#
-# Redistribution and use in source and binary forms, with or without
-# modification, are permitted provided that the following conditions
-# are met:
-#
-# 1. Redistributions of source code must retain the above copyright
-#    notice, this list of conditions and the following disclaimer.
-# 2. Redistributions in binary form must reproduce the above copyright
-#    notice, this list of conditions and the following disclaimer in the
-#    documentation and/or other materials provided with the distribution.
-# 3. Neither the name of the copyright holders nor the names of
-#    contributors may be used to endorse or promote products derived
-#    from this software without specific prior written permission.
-#
-# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-# ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
-# FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
-# COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
-# INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
-# BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
-# OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
-# AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
-# OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF
-# THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
-# SUCH DAMAGE.
-#
-# For additional information see http://www.ethernut.de/
-#
-# $Id: Makerules.gcc 5472 2013-12-06 00:16:28Z olereinhardt $
-#
-
-include $(top_srcdir)/Makerules.all
-CPPFLAGS += -MD -MP
-
-%.o : %.c
-	$(CC) -c $(CPPFLAGS) $(CFLAGS) -o $@ $<
-
-%.o : %.cc
-	$(CXX) -c $(CPPFLAGS) $(CXXFLAGS) -o $@ $<
-
-%.o : %.S
-	$(AS) -c $(CPPFLAGS) $(ASFLAGS) -o $@ $<
-
-%.a: $(OBJS)
-	$(AR) $(ARFLAGS) $@ $?
-
-# No idea why the pattern rule above doesn't work on some
-# make versions (No rule to make...). 
-# This little hack seems to fix it:
-$(PROJ).a: $(OBJS)
-
-cleancc:
-	-rm -f $(OBJS) $(SRCS:%.c=%.d) $(OBJ1:.o=.d)
-	-rm -f $(OBJS:.o=.lst) $(OBJ1:.o=.lst) $(OBJ2:.o=.lst) $(OBJ3:.o=.lst) $(OBJ4:.o=.lst) $(OBJ5:.o=.lst)
-
-ifndef NODEPS
-# http://www.microhowto.info/howto/automatically_generate_makefile_dependencies.html
--include $(SRCS:%.c=%.d) $(OBJ1:.o=.d)
-endif

+ 0 - 52
nutos/nut/Makerules.h8-gcc

@@ -1,52 +0,0 @@
-#
-# Copyright (C) 2001-2004 by egnite Software GmbH
-# Copyright (C) 2009 by egnite GmbH
-#
-# All rights reserved.
-#
-# Redistribution and use in source and binary forms, with or without
-# modification, are permitted provided that the following conditions
-# are met:
-#
-# 1. Redistributions of source code must retain the above copyright
-#    notice, this list of conditions and the following disclaimer.
-# 2. Redistributions in binary form must reproduce the above copyright
-#    notice, this list of conditions and the following disclaimer in the
-#    documentation and/or other materials provided with the distribution.
-# 3. Neither the name of the copyright holders nor the names of
-#    contributors may be used to endorse or promote products derived
-#    from this software without specific prior written permission.
-#
-# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-# ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
-# FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
-# COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
-# INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
-# BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
-# OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
-# AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
-# OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF
-# THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
-# SUCH DAMAGE.
-#
-# For additional information see http://www.ethernut.de/
-#
-# $Id: Makerules.h8-gcc 2599 2009-04-15 13:09:02Z haraldkipp $
-#
-
-include $(top_srcdir)/Makerules.all
-include $(top_srcdir)/Makerules.gcc
-
-%elf: $(OBJS)
-	$(CC) $(OBJS) $(LIB) $(LDFLAGS) -o $@
-
-%obj: %elf
-	$(BIN) -O avrobj $< $@
-
-%rom: %elf
-	$(BIN) -O srec $< $@
-
-%eep: %elf
-	$(BIN) -j .eeprom --set-section-flags=.eeprom="alloc,load" -O srec $< $@
-

+ 0 - 70
nutos/nut/Makerules.licenses

@@ -1,70 +0,0 @@
-#
-# Copyright (C) 2013 by Ole Reinhardt <ole.reinhardt@embedded-it.de>
-#
-# All rights reserved.
-#
-# Redistribution and use in source and binary forms, with or without
-# modification, are permitted provided that the following conditions
-# are met:
-#
-# 1. Redistributions of source code must retain the above copyright
-#    notice, this list of conditions and the following disclaimer.
-# 2. Redistributions in binary form must reproduce the above copyright
-#    notice, this list of conditions and the following disclaimer in the
-#    documentation and/or other materials provided with the distribution.
-# 3. All advertising materials mentioning features or use of this
-#    software must display the following acknowledgement:
-#
-#    This product includes software developed by egnite Software GmbH
-#    and its contributors.
-#
-# THIS SOFTWARE IS PROVIDED BY EGNITE SOFTWARE GMBH AND CONTRIBUTORS
-# ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
-# FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL EGNITE
-# SOFTWARE GMBH OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
-# INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
-# BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
-# OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
-# AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
-# OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF
-# THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
-# SUCH DAMAGE.
-#
-# For additional information see http://www.ethernut.de/
-#
-# $Id$
-#
-
-ifeq ($(PROJ),libnutarch)
-
-ifeq ($(MCD_LICENSE),y)
-
-ifneq ($(LICENSE_ST_GUIDANCE),y)
-MSG_LICENSE += "\n"
-MSG_LICENSE += "******************************************************************************\n"
-MSG_LICENSE += "*          WARNING: STM32 License ST Guidance Only not accepted.             *\n"
-MSG_LICENSE += "*             Not all files will be compiled, build may fail!                *\n"
-MSG_LICENSE += "******************************************************************************\n"
-MSG_LICENSE += "\n"
-LOG_CMD = echo -e $(MSG_LICENSE) >&2
-endif
-
-ifneq ($(LICENSE_MCD_ST_LIBERTY),y)
-MSG_LICENSE += "\n"
-MSG_LICENSE += "******************************************************************************\n"
-MSG_LICENSE += "*      WARNING: STM32 MCD-ST Liberty SW License Agreement V2 not accepted    *\n"
-MSG_LICENSE += "*              Not all files will be compiled, build may fail!               *\n"
-MSG_LICENSE += "******************************************************************************\n"
-MSG_LICENSE += "\n"
-LOG_CMD = echo -e $(MSG_LICENSE) >&2
-endif
-
-endif
-
-endif
-
-check-licenses:
-	@$(LOG_CMD)
-
-.PHONY: check-licenses

+ 0 - 38
nutos/nut/Makerules.m68k-gcc

@@ -1,38 +0,0 @@
-#
-# Copyright (C) 2001-2006 by egnite Software GmbH
-# Copyright (C) 2009 by egnite GmbH
-#
-# All rights reserved.
-#
-# Redistribution and use in source and binary forms, with or without
-# modification, are permitted provided that the following conditions
-# are met:
-#
-# 1. Redistributions of source code must retain the above copyright
-#    notice, this list of conditions and the following disclaimer.
-# 2. Redistributions in binary form must reproduce the above copyright
-#    notice, this list of conditions and the following disclaimer in the
-#    documentation and/or other materials provided with the distribution.
-# 3. Neither the name of the copyright holders nor the names of
-#    contributors may be used to endorse or promote products derived
-#    from this software without specific prior written permission.
-#
-# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-# ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
-# FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
-# COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
-# INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
-# BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
-# OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
-# AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
-# OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF
-# THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
-# SUCH DAMAGE.
-#
-# For additional information see http://www.ethernut.de/
-#
-# $Id$
-#
-
-include $(top_srcdir)/Makerules.gcc

+ 0 - 38
nutos/nut/Makerules.m68k-gccdbg

@@ -1,38 +0,0 @@
-#
-# Copyright (C) 2001-2006 by egnite Software GmbH
-# Copyright (C) 2009 by egnite GmbH
-#
-# All rights reserved.
-#
-# Redistribution and use in source and binary forms, with or without
-# modification, are permitted provided that the following conditions
-# are met:
-#
-# 1. Redistributions of source code must retain the above copyright
-#    notice, this list of conditions and the following disclaimer.
-# 2. Redistributions in binary form must reproduce the above copyright
-#    notice, this list of conditions and the following disclaimer in the
-#    documentation and/or other materials provided with the distribution.
-# 3. Neither the name of the copyright holders nor the names of
-#    contributors may be used to endorse or promote products derived
-#    from this software without specific prior written permission.
-#
-# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-# ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
-# FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
-# COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
-# INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
-# BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
-# OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
-# AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
-# OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF
-# THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
-# SUCH DAMAGE.
-#
-# For additional information see http://www.ethernut.de/
-#
-# $Id$
-#
-
-include $(top_srcdir)/Makerules.gcc

+ 0 - 49
nutos/nut/Makerules.unix-gcc

@@ -1,49 +0,0 @@
-#
-# Copyright (C) 2001 by egnite Software GmbH
-# Copyright (C) 2009 by egnite GmbH
-#
-# All rights reserved.
-#
-# Redistribution and use in source and binary forms, with or without
-# modification, are permitted provided that the following conditions
-# are met:
-#
-# 1. Redistributions of source code must retain the above copyright
-#    notice, this list of conditions and the following disclaimer.
-# 2. Redistributions in binary form must reproduce the above copyright
-#    notice, this list of conditions and the following disclaimer in the
-#    documentation and/or other materials provided with the distribution.
-# 3. Neither the name of the copyright holders nor the names of
-#    contributors may be used to endorse or promote products derived
-#    from this software without specific prior written permission.
-#
-# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-# ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
-# FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
-# COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
-# INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
-# BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
-# OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
-# AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
-# OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF
-# THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
-# SUCH DAMAGE.
-#
-# For additional information see http://www.ethernut.de/
-#
-# $Id: Makerules.unix-gcc 2599 2009-04-15 13:09:02Z haraldkipp $
-#
-
-%elf: $(OBJS)
-	$(CC) $(OBJS) $(LIB) $(LDFLAGS) -o $@
-
-%obj: %elf
-	$(BIN) -O avrobj $< $@
-
-%rom: %elf
-	$(BIN) -O srec $< $@
-
-%eep: %elf
-	$(BIN) -j .eeprom --set-section-flags=.eeprom="alloc,load" -O srec $< $@
-

+ 0 - 51
nutos/nut/Makevars.all

@@ -1,51 +0,0 @@
-#
-# Copyright (C) 2001-2006 by egnite Software GmbH
-# Copyright (C) 2009 by egnite GmbH
-#
-# All rights reserved.
-#
-# Redistribution and use in source and binary forms, with or without
-# modification, are permitted provided that the following conditions
-# are met:
-#
-# 1. Redistributions of source code must retain the above copyright
-#    notice, this list of conditions and the following disclaimer.
-# 2. Redistributions in binary form must reproduce the above copyright
-#    notice, this list of conditions and the following disclaimer in the
-#    documentation and/or other materials provided with the distribution.
-# 3. Neither the name of the copyright holders nor the names of
-#    contributors may be used to endorse or promote products derived
-#    from this software without specific prior written permission.
-#
-# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-# ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
-# FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
-# COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
-# INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
-# BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
-# OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
-# AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
-# OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF
-# THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
-# SUCH DAMAGE.
-#
-# For additional information see http://www.ethernut.de/
-#
-# $Id$
-#
-
-# default make target, depends on all and check-licenses
-
-.PHONY: default
-
-default: check-licenses all
-
-# Command used for copying files.
-CP = cp
-
-# Root directory of Nut/OS header files.
-INCDIR = $(top_srcdir)/include
-
-# Root directory of Nut/OS Contrib header files.
-INCDIRCONTRIB = $(top_srcdir)/include/contrib

+ 0 - 44
nutos/nut/Makevars.arm-ecross-gcc

@@ -1,44 +0,0 @@
-#
-# Copyright (C) 2010 by Thermotemp GmbH, Embedded-IT, based on template from Egnite
-#
-# All rights reserved.
-#
-# Redistribution and use in source and binary forms, with or without
-# modification, are permitted provided that the following conditions
-# are met:
-#
-# 1. Redistributions of source code must retain the above copyright
-#    notice, this list of conditions and the following disclaimer.
-# 2. Redistributions in binary form must reproduce the above copyright
-#    notice, this list of conditions and the following disclaimer in the
-#    documentation and/or other materials provided with the distribution.
-# 3. Neither the name of the copyright holders nor the names of
-#    contributors may be used to endorse or promote products derived
-#    from this software without specific prior written permission.
-#
-# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-# ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
-# FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
-# COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
-# INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
-# BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
-# OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
-# AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
-# OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF
-# THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
-# SUCH DAMAGE.
-#
-# For additional information see http://www.ethernut.de/
-#
-# $Id: Makevars.arm-eCross-gcc $
-#
-
-# Inherit general gcc variables.
-include $(top_srcdir)/Makevars.gcc
-
-# Set target specific variables.
-TRGT       = arm-eCross-eabi-
-MCFLAGS    = -mcpu=$(MCU)
-CFLAGS_MCU = $(MCFLAGS) -mthumb-interwork
-CXXFLAGS_MCU = $(CFLAGS_MCU)

+ 0 - 46
nutos/nut/Makevars.arm-gcc

@@ -1,46 +0,0 @@
-#
-# Copyright (C) 2001-2006 by egnite Software GmbH
-# Copyright (C) 2009 by egnite GmbH
-#
-# All rights reserved.
-#
-# Redistribution and use in source and binary forms, with or without
-# modification, are permitted provided that the following conditions
-# are met:
-#
-# 1. Redistributions of source code must retain the above copyright
-#    notice, this list of conditions and the following disclaimer.
-# 2. Redistributions in binary form must reproduce the above copyright
-#    notice, this list of conditions and the following disclaimer in the
-#    documentation and/or other materials provided with the distribution.
-# 3. Neither the name of the copyright holders nor the names of
-#    contributors may be used to endorse or promote products derived
-#    from this software without specific prior written permission.
-#
-# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-# ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
-# FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
-# COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
-# INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
-# BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
-# OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
-# AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
-# OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF
-# THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
-# SUCH DAMAGE.
-#
-# For additional information see http://www.ethernut.de/
-#
-# $Id$
-#
-
-# Inherit general gcc variables.
-include $(top_srcdir)/Makevars.gcc
-
-# Set target specific variables.
-#TRGT       = arm-elf-
-TRGT       = arm-none-eabi-
-MCFLAGS    = -mcpu=$(MCU)
-CFLAGS_MCU = $(MCFLAGS) -mthumb-interwork
-CXXFLAGS_MCU = $(CFLAGS_MCU)

+ 0 - 50
nutos/nut/Makevars.avr-gcc

@@ -1,50 +0,0 @@
-#
-# Copyright (C) 2001-2006 by egnite Software GmbH
-# Copyright (C) 2009 by egnite GmbH
-#
-# All rights reserved.
-#
-# Redistribution and use in source and binary forms, with or without
-# modification, are permitted provided that the following conditions
-# are met:
-#
-# 1. Redistributions of source code must retain the above copyright
-#    notice, this list of conditions and the following disclaimer.
-# 2. Redistributions in binary form must reproduce the above copyright
-#    notice, this list of conditions and the following disclaimer in the
-#    documentation and/or other materials provided with the distribution.
-# 3. All advertising materials mentioning features or use of this
-#    software must display the following acknowledgement:
-#
-#    This product includes software developed by egnite Software GmbH
-#    and its contributors.
-#
-# THIS SOFTWARE IS PROVIDED BY EGNITE SOFTWARE GMBH AND CONTRIBUTORS
-# ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
-# FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL EGNITE
-# SOFTWARE GMBH OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
-# INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
-# BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
-# OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
-# AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
-# OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF
-# THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
-# SUCH DAMAGE.
-#
-# For additional information see http://www.ethernut.de/
-#
-# $Id$
-#
-
-# Inherit general gcc variables.
-include $(top_srcdir)/Makevars.gcc
-
-# Set target specific variables.
-ARCH    = avr
-TRGT    = avr-
-MCFLAGS = -mmcu=$(MCU)
-
-CFLAGS_MCU = $(MCFLAGS)
-CFLAGS_OPT = -Os -ffunction-sections -fno-delete-null-pointer-checks
-CXXFLAGS_MCU = $(CFLAGS_MCU)

+ 0 - 48
nutos/nut/Makevars.avr32-gcc

@@ -1,48 +0,0 @@
-#
-# Copyright (C) 2001-2006 by egnite Software GmbH
-# Copyright (C) 2009 by egnite GmbH
-#
-# All rights reserved.
-#
-# Redistribution and use in source and binary forms, with or without
-# modification, are permitted provided that the following conditions
-# are met:
-#
-# 1. Redistributions of source code must retain the above copyright
-#    notice, this list of conditions and the following disclaimer.
-# 2. Redistributions in binary form must reproduce the above copyright
-#    notice, this list of conditions and the following disclaimer in the
-#    documentation and/or other materials provided with the distribution.
-# 3. Neither the name of the copyright holders nor the names of
-#    contributors may be used to endorse or promote products derived
-#    from this software without specific prior written permission.
-#
-# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-# ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
-# FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
-# COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
-# INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
-# BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
-# OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
-# AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
-# OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF
-# THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
-# SUCH DAMAGE.
-#
-# For additional information see http://www.ethernut.de/
-#
-# $Id$
-#
-
-# Inherit general gcc variables.
-include $(top_srcdir)/Makevars.gcc
-
-# Set target specific variables.
-ARCH         = avr32
-TRGT         = avr32-
-MCFLAGS      = -mpart=$(MCU)
-CFLAGS_MCU   = $(MCFLAGS)
-CFLAGS_OPT   = -Os -ffunction-sections -fdata-sections -fomit-frame-pointer
-CXXFLAGS_MCU = $(CFLAGS_MCU)
-CXXFLAGS_OPT = $(CFLAGS_OPT)

+ 0 - 67
nutos/nut/Makevars.cm3-ecross-gcc

@@ -1,67 +0,0 @@
-#
-# Copyright (C) 2010 by Thermotemp GmbH, Embedded-IT, based on template from Egnite
-#
-# All rights reserved.
-#
-# Redistribution and use in source and binary forms, with or without
-# modification, are permitted provided that the following conditions
-# are met:
-#
-# 1. Redistributions of source code must retain the above copyright
-#    notice, this list of conditions and the following disclaimer.
-# 2. Redistributions in binary form must reproduce the above copyright
-#    notice, this list of conditions and the following disclaimer in the
-#    documentation and/or other materials provided with the distribution.
-# 3. Neither the name of the copyright holders nor the names of
-#    contributors may be used to endorse or promote products derived
-#    from this software without specific prior written permission.
-#
-# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-# ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
-# FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
-# COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
-# INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
-# BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
-# OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
-# AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
-# OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF
-# THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
-# SUCH DAMAGE.
-#
-# For additional information see http://www.ethernut.de/
-#
-# $Id: Makevars.cm3-ecross-gcc $
-#
-
-# Inherit general gcc variables.
-include $(top_srcdir)/Makevars.gcc
-
-# Set target specific variables.
-ARCH       = cm3
-TRGT       = arm-eCross-eabi-
-MCFLAGS    = -mcpu=$(MCU) -mthumb -mlittle-endian -D__CORTEX__
-
-// CXXFLAGS_OPT = -Os -fno-delete-null-pointer-checks -fno-exceptions -fno-rtti 
-LDFLAGS   = $(MCFLAGS) -g -nostartfiles -L$(LDPATH) -T$(LDSCRIPT) -Wl,-Map=$(PROJ).map,--cref,--no-warn-mismatch -L$(LIBDIR)
-
-CFLAGS_MCU   = $(MCFLAGS) -ffunction-sections -fdata-sections -fomit-frame-pointer $(MFIX)
-CXXFLAGS_MCU = $(CFLAGS_MCU) -fno-delete-null-pointer-checks -fno-exceptions -fno-rtti 
-
-# C compiler options.
-CFLAGS_ASM = -Wa,-a=$(@:.o=.lst)
-CFLAGS_WRN = -Wall -Wstrict-prototypes -Werror
-CFLAGS_OPT = -Os
-CFLAGS     = $(CFLAGS_MCU) $(CFLAGS_OPT) $(CFLAGS_WRN) $(CFLAGS_ASM) $(UCPFLAGS) $(DEFS)
-
-# C++ compiler options.
-CXXFLAGS_WRN = -Wall
-CXXFLAGS_ASM = $(CFLAGS_ASM)
-CXXFLAGS_OPT = $(CFLAGS_OPT) 
-CXXFLAGS     = $(CXXFLAGS_MCU) $(CXXFLAGS_OPT) $(CXXFLAGS_WRN) $(CXXFLAGS_ASM) $(UCPFLAGS)
-
-ELFCOF    = $(BIN) \
-	--change-section-address .data-0x08000000 \
-	--change-section-address .bss-0x08000000 \
-	--change-section-address .noinit-0x08000000 \
-	--change-section-address .rodata-0x08000000

+ 0 - 69
nutos/nut/Makevars.cm3-gcc

@@ -1,69 +0,0 @@
-#
-# Copyright (C) 2001-2006 by egnite Software GmbH
-# Copyright (C) 2009 by egnite GmbH
-#
-# All rights reserved.
-#
-# Redistribution and use in source and binary forms, with or without
-# modification, are permitted provided that the following conditions
-# are met:
-#
-# 1. Redistributions of source code must retain the above copyright
-#    notice, this list of conditions and the following disclaimer.
-# 2. Redistributions in binary form must reproduce the above copyright
-#    notice, this list of conditions and the following disclaimer in the
-#    documentation and/or other materials provided with the distribution.
-# 3. Neither the name of the copyright holders nor the names of
-#    contributors may be used to endorse or promote products derived
-#    from this software without specific prior written permission.
-#
-# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-# ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
-# FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
-# COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
-# INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
-# BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
-# OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
-# AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
-# OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF
-# THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
-# SUCH DAMAGE.
-#
-# For additional information see http://www.ethernut.de/
-#
-# $Id$
-#
-
-# Inherit general gcc variables.
-include $(top_srcdir)/Makevars.gcc
-
-# Set target specific variables.
-ARCH       = cm3
-TRGT       = arm-none-eabi-
-MCFLAGS    = -mcpu=$(MCU) -mthumb -D__CORTEX__ $(FPUFLAGS)
-
-# CXXFLAGS_OPT = -Os -g3 -fno-delete-null-pointer-checks -fno-exceptions -fno-rtti
-LDFLAGS   = $(MCFLAGS) -g -nostartfiles -L$(LDPATH) -T$(LDSCRIPT) -Wl,-Map=$(PROJ).map,--cref,--no-warn-mismatch -L$(LIBDIR)
-
-CFLAGS_MCU   = $(MCFLAGS) -ffunction-sections -fdata-sections -fomit-frame-pointer $(MFIX)
-CXXFLAGS_MCU = $(CFLAGS_MCU) -fno-delete-null-pointer-checks -fno-exceptions -fno-rtti 
-
-# C compiler options.
-CFLAGS_ASM = -Wa,-a=$(@:.o=.lst)
-CFLAGS_WRN = -Wall -Wstrict-prototypes -Werror
-CFLAGS_OPT ?= -Os
-CFLAGS     = $(CFLAGS_MCU) $(CFLAGS_OPT) $(CFLAGS_WRN) $(CFLAGS_ASM) $(UCPFLAGS) $(MDEBUG)
-
-# C++ compiler options.
-CXXFLAGS_WRN = -Wall
-CXXFLAGS_ASM = $(CFLAGS_ASM)
-CXXFLAGS_OPT = $(CFLAGS_OPT) 
-CXXFLAGS     = $(CXXFLAGS_MCU) $(CXXFLAGS_OPT) $(CXXFLAGS_WRN) $(CXXFLAGS_ASM) $(UCPFLAGS)
-
-ELFCOF    = $(BIN) \
-	--change-section-address .data-0x08000000 \
-	--change-section-address .bss-0x08000000 \
-	--change-section-address .noinit-0x08000000 \
-	--change-section-address .rodata-0x08000000
-

+ 0 - 78
nutos/nut/Makevars.gcc

@@ -1,78 +0,0 @@
-#
-# Copyright (C) 2001-2006 by egnite Software GmbH
-# Copyright (C) 2009 by egnite GmbH
-#
-# All rights reserved.
-#
-# Redistribution and use in source and binary forms, with or without
-# modification, are permitted provided that the following conditions
-# are met:
-#
-# 1. Redistributions of source code must retain the above copyright
-#    notice, this list of conditions and the following disclaimer.
-# 2. Redistributions in binary form must reproduce the above copyright
-#    notice, this list of conditions and the following disclaimer in the
-#    documentation and/or other materials provided with the distribution.
-# 3. Neither the name of the copyright holders nor the names of
-#    contributors may be used to endorse or promote products derived
-#    from this software without specific prior written permission.
-#
-# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-# ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
-# FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
-# COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
-# INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
-# BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
-# OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
-# AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
-# OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF
-# THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
-# SUCH DAMAGE.
-#
-# For additional information see http://www.ethernut.de/
-#
-# $Id$
-#
-
-# Inherit general variables.
-include $(top_srcdir)/Makevars.all
-
-# Toolchain commands.
-# CC compiles C sources to object files.
-# CXX compiles C++ sources to object files.
-# AS assembles assembly sources to object files.
-# AR creates libraries from object files.
-# TRGT is a target specific prefix like 'arm-elf-' or 'avr-'.
-CC     = $(TRGT)gcc
-CXX    = $(TRGT)g++
-AS     = $(TRGT)gcc -x assembler-with-cpp
-AR     = $(TRGT)ar
-CP     = cp
-RM     = rm -f
-RANLIN = $(TRGT)ranlib
-
-# Preprocessor options.
-DEFS     = $(HWDEF)
-INCPRE   = -I
-CPPFLAGS = $(INCFIRST) -I$(INCDIR) -I$(INCDIRCONTRIB) $(INCLAST) $(DEFS) $(UCPFLAGS)
-
-# C compiler options.
-CFLAGS_ASM = -Wa,-a=$(@:.o=.lst)
-CFLAGS_WRN = -Wall -Wstrict-prototypes -Werror
-CFLAGS_OPT ?= -Os
-CFLAGS     = $(CFLAGS_MCU) $(CFLAGS_OPT) $(CFLAGS_WRN) $(CFLAGS_ASM) $(UCPFLAGS)
-
-# C++ compiler options.
-CXXFLAGS_WRN = -Wall
-CXXFLAGS_ASM = $(CFLAGS_ASM)
-CXXFLAGS_OPT = -Os -fno-delete-null-pointer-checks -fno-exceptions -fno-rtti 
-CXXFLAGS     = $(CXXFLAGS_MCU) $(CXXFLAGS_OPT) $(CXXFLAGS_WRN) $(CXXFLAGS_ASM) $(UCPFLAGS)
-
-# Assembler options.
-ASFLAGS  = $(CFLAGS) $(UASFLAG)
-
-# Librarian options.
-#ARFLAGS = rsv
-# More silent version
-ARFLAGS = rsc

+ 0 - 45
nutos/nut/Makevars.m68k-gcc

@@ -1,45 +0,0 @@
-#
-# Copyright (C) 2001-2006 by egnite Software GmbH
-# Copyright (C) 2009 by egnite GmbH
-#
-# All rights reserved.
-#
-# Redistribution and use in source and binary forms, with or without
-# modification, are permitted provided that the following conditions
-# are met:
-#
-# 1. Redistributions of source code must retain the above copyright
-#    notice, this list of conditions and the following disclaimer.
-# 2. Redistributions in binary form must reproduce the above copyright
-#    notice, this list of conditions and the following disclaimer in the
-#    documentation and/or other materials provided with the distribution.
-# 3. Neither the name of the copyright holders nor the names of
-#    contributors may be used to endorse or promote products derived
-#    from this software without specific prior written permission.
-#
-# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-# ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
-# FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
-# COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
-# INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
-# BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
-# OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
-# AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
-# OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF
-# THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
-# SUCH DAMAGE.
-#
-# For additional information see http://www.ethernut.de/
-#
-# $Id$
-#
-
-# Inherit general gcc variables.
-include $(top_srcdir)/Makevars.gcc
-
-# Set target specific variables.
-ARCH         = m68k
-TRGT         = m68k-elf-
-MCFLAGS      = -mcpu=$(MCU)
-CFLAGS_MCU   = $(MCFLAGS)

+ 0 - 3
nutos/nut/app/Makeburn.arm-jom

@@ -1,3 +0,0 @@
-BURN=jtagomat
-BURNMEMORY=FLASHNN
-BURNFLAGS=-DDEVICE=0x1F0F0F0F -DIMAGE=./$(ITARG) BATCH at91-upl.jom $(BURNMEMORY)

+ 0 - 209
nutos/nut/app/Makeburn.arm-oocd

@@ -1,209 +0,0 @@
-## Upload Configuration for OpenOCD
-## ================================
-## When properly configured, you can conveniently use
-##  make clean all burn
-## to build, upload and run the binary.
-##
-## If your target hardware is supported, you only need
-## to specify the programming adapter. Everything else
-## will be automatically set near the end of this file.
-
-
-## Choose the programming adapter
-## ------------------------------
-## A file with this name and extension .cfg must exist in
-## the OpenOCD interface directory.
-
-## Use this with Turtelizer 2
-# BURNDONGLE = turtelizer2
-
-## Hubert Hoegl's original USB to JTAG
-# BURNDONGLE = openocd-usb
-
-
-## Choose the executable
-## ---------------------
-## Your OpenOCD executable may have a different name.
-BURN=openocd
-
-## Directory containing OpenOCD configuration files.
-BURNCONFDIR=$(top_srcdir)/tools/turtelizer2
-
-
-## Choose the target board
-## -----------------------
-## A file with this name and extension .cfg must exist in
-## the OpenOCD board directory.
-
-# BURNBOARD = myboard
-
-
-## Choose the target CPU
-## ---------------------
-## Typically this is specified in the board configuration.
-
-# BURNTARGET = sam7x256
-
-
-## Choose the command sequence
-## ---------------------------
-##
-
-## Terminates configuration stage. Use with all targets.
-BURNCMDS  = -c init
-
-## Example for an explicit command sequence.
-# BURNCMDS=-c init -c "reset init" -c "load_image $IMGFILE 0" -c "verify_image $IMGFILE 0" -c "resume 0" -c shutdown
-
-## Example for command line chaining.
-# BURNCMDS += -f $(top_srcdir)/tools/flash/flash.script
-# BURNCMDS += -c "reset init"
-# BURNCMDS += -c "halt"
-# BURNCMDS += -c "arm7_9 dcc_downloads enable"
-# BURNCMDS += -c "flash write_image erase $(ITARG) 0x00100000 bin"
-# BURNCMDS += -c "reset run"
-# BURNCMDS += -f $(top_srcdir)/tools/flash/flash-exit.script
-
-
-## Try to determine everything automatically
-## -----------------------------------------
-##
-ifeq ($(PLATFORM), AT91SAM7X_EK)
-BURNBOARD = at91sam7x-ek
-BURNCMDS += -c "reset halt"
-BURNCMDS += -c "flash write_image erase $(ITARG) 0x100000 bin"
-# BURNCMDS += -c "verify_image $(ITARG) 0x100000 bin"
-BURNCMDS += -c "at91sam7 gpnvm 2 set"
-BURNCMDS += -c "reset"
-endif
-
-ifeq ($(PLATFORM), AT91SAM9260_EK)
-BURNBOARD = atmel_at91sam9260-ek
-BURNCMDS += -c "reset init"
-BURNCMDS += -c "load_image $(ITARG) 0x20000000"
-BURNCMDS += -c "verify_image $(ITARG) 0x20000000"
-BURNCMDS += -c "resume 0x20000000"
-endif
-
-ifeq ($(PLATFORM), ELEKTOR_IR1)
-BURNBOARD = eir
-# Initialize clocks and SDRAM.
-BURNCMDS += -c "reset init"
-ifeq ($(LDNAME), at91sam7se512_xram)
-# Load image into external SDRAM.
-BURNCMDS += -c "load_image $(ITARG) 0x20000000"
-# Verify image in external SDRAM.
-BURNCMDS += -c "verify_image $(ITARG) 0x20000000"
-# Start image in external SDRAM.
-BURNCMDS += -c "resume 0x20000000"
-endif
-ifeq ($(LDNAME), at91sam7se512_rom)
-BURNCMDS += -c "flash write_image erase $(ITARG) 0x100000 bin"
-BURNCMDS += -c "verify_image $(ITARG) 0x100000 bin"
-BURNCMDS += -c "at91sam7 gpnvm 2 set"
-BURNCMDS += -c "reset run"
-endif
-endif
-
-ifeq ($(PLATFORM), ETHERNUT3)
-BURNBOARD = ethernut3
-# Enable chip selects and remap memory.
-BURNCMDS += -c "reset init"
-ifeq ($(LDNAME), at91x40_rom)
-# Write to external NOR flash.
-BURNCMDS += -c "flash write_image erase $(ITARG) 0x10000000 bin"
-BURNCMDS += -c "verify_image $(ITARG) 0x10000000 bin"
-BURNCMDS += -c "reset run"
-else
-# Write to internal SRAM.
-BURNCMDS += -c "arm core_state arm"
-BURNCMDS += -c "load_image $(ITARG) 0"
-BURNCMDS += -c "verify_image $(ITARG) 0"
-BURNCMDS += -c "resume 0"
-endif
-endif
-
-ifeq ($(PLATFORM), ETHERNUT5)
-BURNBOARD = ethernut5
-# Initialize clocks and SDRAM.
-BURNCMDS += -c "reset init"
-ifeq ($(LDNAME), at91sam9xe512_ram)
-# Load image into external SDRAM.
-BURNCMDS += -c "load_image $(ITARG) 0x20000000"
-BURNCMDS += -c "verify_image $(ITARG) 0x20000000"
-BURNCMDS += -c "resume 0x20000000"
-endif
-# Programming AT91SAM9XE internal flash is not supported by OpenOCD.
-ifeq ($(LDNAME), at91sam9xe512_iram)
-# Load image into internal SRAM.
-BURNCMDS += -c "mww 0xFFFFEF00 0x00000003"
-BURNCMDS += -c "load_image $(ITARG) 0x00000000"
-BURNCMDS += -c "verify_image $(ITARG) 0x00000000"
-BURNCMDS += -c "resume 0x00000000"
-endif
-endif
-
-ifeq ($(PLATFORM), AT91SAM9G45_EK)
-BURNBOARD = at91sam9g45-ek
-BURNCMDS += -c "reset init"
-# Load image into external SDRAM.
-BURNCMDS += -c "load_image $(ITARG) 0x00300000"
-BURNCMDS += -c "verify_image $(ITARG) 0x00300000"
-BURNCMDS += -c "resume 0x00300000"
-endif
-
-ifeq ($(PLATFORM), AT91SAM9M10_EK)
-BURNBOARD = at91sam9m10-ek
-BURNCMDS += -c "reset init"
-# Load image into external SDRAM.
-BURNCMDS += -c "load_image $(ITARG) 0x20000000"
-BURNCMDS += -c "verify_image $(ITARG) 0x20000000"
-BURNCMDS += -c "resume 0x20000000"
-endif
-
-ifeq ($(PLATFORM), FLECX1)
-BURNBOARD = flecx
-# It is not fully clear how to program the LPC1768 flash.
-# The following sequence was found by trial and error.
-BURNCMDS += -c "reset init"
-BURNCMDS += -c halt
-BURNCMDS += -c wait_halt
-BURNCMDS += -c "flash write_image erase $(ITARG) 0 bin"
-# BURNCMDS += -c "verify_image $(ITARG) 0 bin"
-BURNCMDS += -c halt
-BURNCMDS += -c wait_halt
-BURNCMDS += -c "reset run"
-endif
-
-ifeq ($(PLATFORM), SAM7ETH)
-BURNBOARD = sam7eth
-BURNCMDS += -c "reset halt"
-BURNCMDS += -c "flash write_image erase $(ITARG) 0x100000 bin"
-BURNCMDS += -c reset
-endif
-
-## Terminate OpenOCD. Use with all targets.
-BURNCMDS += -c shutdown
-
-
-# No change required
-# ------------------
-# Anything below this line will typically work out of the box.
-#
-ifndef BURNDONGLE
-# Force the user to specify a valid dongle.
-BURN      = 
-BURNFLAGS = @echo Cannot burn, please edit nut/app/Makeburn.arm-ocd
-else
-BURNCONFIG += -c "source [find interface/$(BURNDONGLE).cfg]"
-endif
-ifneq ($(BURNBOARD),)
-BURNCONFIG += -c "source [find board/$(BURNBOARD).cfg]"
-endif
-ifneq ($(BURNTARGET),)
-BURNCONFIG += -c "source [find target/$(BURNTARGET).cfg]"
-endif
-
-ifndef BURNFLAGS
-BURNFLAGS = -s $(BURNCONFDIR) $(BURNCONFIG) $(BURNCMDS)
-endif

+ 0 - 40
nutos/nut/app/Makeburn.arm-samba

@@ -1,40 +0,0 @@
-# Choose the programming interface
-# --------------------------------
-#BURNIF=COM1
-BURNIF=\usb\ARM0
-
-# Choose the target board
-# -----------------------
-
-# AT91SAM7X Evaluation Kit
-#
-#BURNTARGET=AT91SAM7XC512-EK
-#BURNSCRIPT=$(top_srcdir)/tools/win32/at91sam-flash.tcl 0x100000
-
-# Morphoq
-#
-#BURNTARGET=AT91SAM7X512-EK
-#BURNSCRIPT=$(top_srcdir)/tools/win32/at91sam-flash.tcl 0x100000
-
-# ELEKTOR Internet Radio
-# AT91SAM7SE Evaluation Kit
-#
-BURNTARGET=AT91SAM7SE512-EK
-#BURNSCRIPT=$(top_srcdir)/tools/win32/at91sam-flash.tcl 0x100000
-BURNSCRIPT=$(top_srcdir)/tools/win32/at91sam-sdram.tcl 0x20000000
-
-# AT91SAM9260 Evaluation Kit
-#
-#BURNTARGET=AT91SAM9260-EK
-#BURNSCRIPT=$(top_srcdir)/tools/win32/at91sam-sdram.tcl 0x20000000
-
-# Ethernut 5
-# AT91SAM9XE Evaluation Kit
-#
-#BURNTARGET=AT91SAM9XE512-EK
-#BURNSCRIPT=$(top_srcdir)/tools/win32/at91sam-flash.tcl 0x100000
-
-# Assemble command line
-# ---------------------
-BURN=sam-ba
-BURNFLAGS=$(BURNIF) $(BURNTARGET) $(BURNSCRIPT) $(ITARG)

+ 0 - 4
nutos/nut/app/Makeburn.arm-stlink

@@ -1,4 +0,0 @@
-# ST Microelectronics ST-Link Programmer, Windows only
-BURN=$(ProgramFiles)/STMicroelectronics/STM32 ST-LINK Utility/ST-LINK Utility/ST-LINK_CLI.exe
-BURNFLAGS=-c JTAG -P $(TARG) -Rst -Q
-

+ 0 - 46
nutos/nut/app/Makeburn.avr-dude

@@ -1,46 +0,0 @@
-# Programming support using avrdude. Settings and variables.
-
-# Programming hardware: alf avr910 avrisp bascom bsd
-# dt006 pavr picoweb pony-stk200 sp12 stk200 stk500
-#
-# Type: avrdude -c ?
-# to get a full listing.
-#
-
-BURN=avrdude
-BURNPORT=com2
-
-ifeq ($(MCU),atmega128)
-BURNTARGET=m128
-endif
-ifeq ($(MCU),atmega2561)
-BURNTARGET=m2561
-endif
-ifeq ($(BURNTARGET),)
-BURNTARGET=$(MCU)
-endif
-
-#BURNFLAGS=-dprog=stk500 -dserial=$(BURNPORT) -dspeed=115200 -dpart=$(BURNTARGET) --erase --upload if=$(TARG)
-
-AVRDUDE_PROGRAMMER = stk500v2
-
-AVRDUDE_WRITE_FLASH = -U flash:w:$(TARG)
-#AVRDUDE_WRITE_EEPROM = -U eeprom:w:$(TARGET).eep
-
-AVRDUDE_FLAGS = -p $(BURNTARGET) -P $(BURNPORT) -c $(AVRDUDE_PROGRAMMER)
-
-# Uncomment the following if you want avrdude's erase cycle counter.
-# Note that this counter needs to be initialized first using -Yn,
-# see avrdude manual.
-#AVRDUDE_ERASE += -y
-
-# Uncomment the following if you do /not/ wish a verification to be
-# performed after programming the device.
-AVRDUDE_FLAGS += -V
-
-# Increase verbosity level.  Please use this when submitting bug
-# reports about avrdude. See <http://savannah.nongnu.org/projects/avrdude>
-# to submit bug reports.
-#AVRDUDE_FLAGS += -v -v
-
-BURNFLAGS = $(AVRDUDE_FLAGS) $(AVRDUDE_WRITE_FLASH) $(AVRDUDE_WRITE_EEPROM)

+ 0 - 5
nutos/nut/app/Makeburn.avr-jtagice

@@ -1,5 +0,0 @@
-# Atmel JTAGICE Programmer (all COM ports are scanned)
-BURN=jtagice
-BURNTARGET=$(MCU)
-BURNFLAGS=-d$(BURNTARGET) -e -pf -if$(TARG)
-

+ 0 - 6
nutos/nut/app/Makeburn.avr-jtagicemkii

@@ -1,6 +0,0 @@
-# Atmel JTAGICE mk-II Programmer
-BURN=jtagiceii
-BURNPORT=auto
-BURNTARGET=$(MCU)
-BURNFLAGS=-c$(BURNPORT) -d$(BURNTARGET) -e -pf -if$(TARG)
-

+ 0 - 4
nutos/nut/app/Makeburn.avr-uisp-stk500

@@ -1,4 +0,0 @@
-BURN=uisp
-BURNPORT=/dev/ttyS0
-BURNTARGET=$(MCU)
-BURNFLAGS=-dprog=stk500 -dserial=$(BURNPORT) -dspeed=115200 -dpart=$(BURNTARGET) --erase --upload if=$(TARG)

+ 0 - 3
nutos/nut/app/Makeburn.avr32-jtagicemkii

@@ -1,3 +0,0 @@
-# Atmel JTAGICE mk-II Programmer
-BURN=avr32program
-BURNFLAGS=program -finternal@0x80000000 -e -v -R -r $(DTARG)

+ 0 - 2
nutos/nut/app/Makeburn.gba-xport2

@@ -1,2 +0,0 @@
-BURN=xpcomm
-BURNFLAGS=$(ITARG)

+ 0 - 90
nutos/nut/app/Makeburn.stm32-oocd

@@ -1,90 +0,0 @@
-## Upload Configuration for OpenOCD
-## ================================
-## When properly configured, you can conveniently use
-##  make clean all burn
-## to build, upload and run the binary.
-
-
-## Choose the programming adapter
-## ------------------------------
-## A file with this name and extension .cfg must exist in
-## the OpenOCD interface directory.
-
-## Use this with Turtelizer 2:
-# BURNDONGLE=turtelizer2
-
-## Original configuration:
-BURNDONGLE = openocd-usb
-
-
-## Choose the target board
-## -----------------------
-## A file with this name and extension .cfg must exist in
-## the OpenOCD board directory.
-
-# BURNBOARD = myboard
-
-## Try to determine this automatically.
-
-# ifeq ($(PLATFORM), ETHERNUT2)
-# BURNBOARD = ethernut5
-# endif
-
-## Choose the target CPU
-## ---------------------
-## Typically this is specified in the board configuration.
-
-BURNTARGET = stm32
-
-## Choose the command sequence
-## ---------------------------
-##
-
-## Terminates configuration stage. Use with all targets.
-BURNCMDS  = -c init
-
-## Works fine with the latest eir config.
-#BURNCMDS += -c "run_flash_image ./$(TARG)"
-#BURNCMDS += -c shutdown
-
-## Running Ethernut 3 RAM images.
-# BURNCMDS=-c init -c "run_ram_image ./$(TARG)" -c shutdown
-
-## Example for an explicit command sequence.
-# BURNCMDS=-c init -c "reset init" -c "load_image $IMGFILE 0" -c "verify_image $IMGFILE 0" -c "resume 0" -c shutdown
-
-## Example for an command line chaining.
-# BURNCMDS += -f $(top_srcdir)/tools/flash/flash.script
-BURNCMDS += -c "reset init"
-BURNCMDS += -c "halt"
-BURNCMDS += -c "flash write_image erase ./$(ITARG) 0x08000000 bin"
-BURNCMDS += -c "reset run"
-# BURNCMDS += -f $(top_srcdir)/tools/flash/flash-exit.script
-
-# Terminate OpenOCD. Use with all targets.
-BURNCMDS += -c shutdown
-
-
-# Choose the executable
-# ---------------------
-# Your OpenOCD executable may have a different name.
-#
-BURN=openocd
-
-
-# No change required
-# ------------------
-# Anything below this line will typically work out of the box.
-#
-ifneq ($(BURNDONGLE),)
-BURNCONFIG += -c "source [find interface/$(BURNDONGLE).cfg]"
-endif
-ifneq ($(BURNBOARD),)
-BURNCONFIG += -c "source [find board/$(BURNBOARD).cfg]"
-endif
-ifneq ($(BURNTARGET),)
-BURNCONFIG += -c "source [find target/$(BURNTARGET).cfg]"
-endif
-
-# BURNFLAGS=-s $(top_srcdir)/tools/turtelizer2 $(BURNCONFIG) $(BURNCMDS)
-BURNFLAGS=$(BURNCONFIG) $(BURNCMDS)

+ 0 - 56
nutos/nut/app/Makedefs.arm-ecross-gcc

@@ -1,56 +0,0 @@
-#
-# Copyright (C) 2010 by Thermotemp GmbH, Embedded-IT, based on template from Egnite
-#
-# All rights reserved.
-#
-# Redistribution and use in source and binary forms, with or without
-# modification, are permitted provided that the following conditions
-# are met:
-#
-# 1. Redistributions of source code must retain the above copyright
-#    notice, this list of conditions and the following disclaimer.
-# 2. Redistributions in binary form must reproduce the above copyright
-#    notice, this list of conditions and the following disclaimer in the
-#    documentation and/or other materials provided with the distribution.
-# 3. Neither the name of the copyright holders nor the names of
-#    contributors may be used to endorse or promote products derived
-#    from this software without specific prior written permission.
-#
-# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-# ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
-# FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
-# COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
-# INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
-# BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
-# OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
-# AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
-# OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF
-# THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
-# SUCH DAMAGE.
-#
-# For additional information see http://www.ethernut.de/
-#
-# $Id: Makedefs.arm-eCross-gcc $
-#
-
-# Set defaults for building in source tree.
-ifeq ($(top_srcdir),)
-top_srcdir = ../..
-endif
-ifeq ($(top_blddir),)
-top_blddir = top_srcdir
-endif
-ifeq ($(top_appdir),)
-top_appdir = top_srcdir
-endif
-ifeq ($(MCU),)
-include $(top_srcdir)/UserConf.mk
-LIBDIR = $(top_blddir)/lib
-endif
-
-# Inherit variables from library build
-include $(top_srcdir)/Makedefs.arm-ecross-gcc
-
-# Add arm-gcc variables for application build
-include $(top_srcdir)/app/Makevars.arm-ecross-gcc

+ 0 - 56
nutos/nut/app/Makedefs.arm-ecross-gccdbg

@@ -1,56 +0,0 @@
-#
-# Copyright (C) 2010 by Thermotemp GmbH,  Embedded-IT, based on template from Egnite
-#
-# All rights reserved.
-#
-# Redistribution and use in source and binary forms, with or without
-# modification, are permitted provided that the following conditions
-# are met:
-#
-# 1. Redistributions of source code must retain the above copyright
-#    notice, this list of conditions and the following disclaimer.
-# 2. Redistributions in binary form must reproduce the above copyright
-#    notice, this list of conditions and the following disclaimer in the
-#    documentation and/or other materials provided with the distribution.
-# 3. Neither the name of the copyright holders nor the names of
-#    contributors may be used to endorse or promote products derived
-#    from this software without specific prior written permission.
-#
-# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-# ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
-# FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
-# COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
-# INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
-# BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
-# OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
-# AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
-# OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF
-# THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
-# SUCH DAMAGE.
-#
-# For additional information see http://www.ethernut.de/
-#
-# $Id: Makedefs.arm-eCross-gccdbg $
-#
-
-# Set defaults for building in source tree.
-ifeq ($(top_srcdir),)
-top_srcdir = ../..
-endif
-ifeq ($(top_blddir),)
-top_blddir = top_srcdir
-endif
-ifeq ($(top_appdir),)
-top_appdir = top_srcdir
-endif
-ifeq ($(MCU),)
-include $(top_srcdir)/UserConf.mk
-LIBDIR = $(top_blddir)/lib
-endif
-
-# Inherit variables from debug library build
-include $(top_srcdir)/Makedefs.arm-ecross-gccdbg
-
-# Add variables for application build
-include $(top_srcdir)/app/Makevars.arm-ecross-gcc

+ 0 - 57
nutos/nut/app/Makedefs.arm-gcc

@@ -1,57 +0,0 @@
-#
-# Copyright (C) 2001-2006 by egnite Software GmbH
-# Copyright (C) 2009 by egnite GmbH
-#
-# All rights reserved.
-#
-# Redistribution and use in source and binary forms, with or without
-# modification, are permitted provided that the following conditions
-# are met:
-#
-# 1. Redistributions of source code must retain the above copyright
-#    notice, this list of conditions and the following disclaimer.
-# 2. Redistributions in binary form must reproduce the above copyright
-#    notice, this list of conditions and the following disclaimer in the
-#    documentation and/or other materials provided with the distribution.
-# 3. Neither the name of the copyright holders nor the names of
-#    contributors may be used to endorse or promote products derived
-#    from this software without specific prior written permission.
-#
-# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-# ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
-# FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
-# COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
-# INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
-# BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
-# OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
-# AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
-# OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF
-# THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
-# SUCH DAMAGE.
-#
-# For additional information see http://www.ethernut.de/
-#
-# $Id: Makedefs.arm-gcc 5472 2013-12-06 00:16:28Z olereinhardt $
-#
-
-# Set defaults for building in source tree.
-ifeq ($(top_srcdir),)
-top_srcdir = ../..
-endif
-ifeq ($(top_blddir),)
-top_blddir = top_srcdir
-endif
-ifeq ($(top_appdir),)
-top_appdir = top_srcdir
-endif
-ifeq ($(MCU),)
-include $(top_srcdir)/UserConf.mk
-LIBDIR = $(top_blddir)/lib
-endif
-
-# Inherit variables from library build
-include $(top_srcdir)/Makedefs.arm-gcc
-
-# Add arm-gcc variables for application build
-include $(top_srcdir)/app/Makevars.arm-gcc

+ 0 - 57
nutos/nut/app/Makedefs.arm-gccdbg

@@ -1,57 +0,0 @@
-#
-# Copyright (C) 2001-2007 by egnite Software GmbH
-# Copyright (C) 2009 by egnite GmbH
-#
-# All rights reserved.
-#
-# Redistribution and use in source and binary forms, with or without
-# modification, are permitted provided that the following conditions
-# are met:
-#
-# 1. Redistributions of source code must retain the above copyright
-#    notice, this list of conditions and the following disclaimer.
-# 2. Redistributions in binary form must reproduce the above copyright
-#    notice, this list of conditions and the following disclaimer in the
-#    documentation and/or other materials provided with the distribution.
-# 3. Neither the name of the copyright holders nor the names of
-#    contributors may be used to endorse or promote products derived
-#    from this software without specific prior written permission.
-#
-# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-# ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
-# FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
-# COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
-# INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
-# BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
-# OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
-# AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
-# OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF
-# THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
-# SUCH DAMAGE.
-#
-# For additional information see http://www.ethernut.de/
-#
-# $Id: Makedefs.arm-gccdbg 5472 2013-12-06 00:16:28Z olereinhardt $
-#
-
-# Set defaults for building in source tree.
-ifeq ($(top_srcdir),)
-top_srcdir = ../..
-endif
-ifeq ($(top_blddir),)
-top_blddir = top_srcdir
-endif
-ifeq ($(top_appdir),)
-top_appdir = top_srcdir
-endif
-ifeq ($(MCU),)
-include $(top_srcdir)/UserConf.mk
-LIBDIR = $(top_blddir)/lib
-endif
-
-# Inherit variables from debug library build
-include $(top_srcdir)/Makedefs.arm-gccdbg
-
-# Add variables for application build
-include $(top_srcdir)/app/Makevars.arm-gcc

+ 0 - 57
nutos/nut/app/Makedefs.arm-thumb-gcc

@@ -1,57 +0,0 @@
-#
-# Copyright (C) 2001-2006 by egnite Software GmbH
-# Copyright (C) 2009-2011 by egnite GmbH
-#
-# All rights reserved.
-#
-# Redistribution and use in source and binary forms, with or without
-# modification, are permitted provided that the following conditions
-# are met:
-#
-# 1. Redistributions of source code must retain the above copyright
-#    notice, this list of conditions and the following disclaimer.
-# 2. Redistributions in binary form must reproduce the above copyright
-#    notice, this list of conditions and the following disclaimer in the
-#    documentation and/or other materials provided with the distribution.
-# 3. Neither the name of the copyright holders nor the names of
-#    contributors may be used to endorse or promote products derived
-#    from this software without specific prior written permission.
-#
-# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-# ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
-# FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
-# COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
-# INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
-# BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
-# OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
-# AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
-# OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF
-# THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
-# SUCH DAMAGE.
-#
-# For additional information see http://www.ethernut.de/
-#
-# $Id: Makedefs.arm-thumb-gcc 4261 2012-06-15 12:44:54Z haraldkipp $
-#
-
-# Set defaults for building in source tree.
-ifeq ($(top_srcdir),)
-top_srcdir = ../..
-endif
-ifeq ($(top_blddir),)
-top_blddir = top_srcdir
-endif
-ifeq ($(top_appdir),)
-top_appdir = top_srcdir
-endif
-ifeq ($(MCU),)
-include $(top_srcdir)/UserConf.mk
-LIBDIR = $(top_blddir)/lib
-endif
-
-# Inherit variables from library build
-include $(top_srcdir)/Makedefs.arm-thumb-gcc
-
-# Add arm-gcc variables for application build
-include $(top_srcdir)/app/Makevars.arm-gcc

+ 0 - 65
nutos/nut/app/Makedefs.avr-gcc

@@ -1,65 +0,0 @@
-#
-# Copyright (C) 2001-2004 by egnite Software GmbH
-# Copyright (C) 2009 by egnite GmbH
-#
-# All rights reserved.
-#
-# Redistribution and use in source and binary forms, with or without
-# modification, are permitted provided that the following conditions
-# are met:
-#
-# 1. Redistributions of source code must retain the above copyright
-#    notice, this list of conditions and the following disclaimer.
-# 2. Redistributions in binary form must reproduce the above copyright
-#    notice, this list of conditions and the following disclaimer in the
-#    documentation and/or other materials provided with the distribution.
-# 3. Neither the name of the copyright holders nor the names of
-#    contributors may be used to endorse or promote products derived
-#    from this software without specific prior written permission.
-#
-# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-# ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
-# FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
-# COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
-# INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
-# BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
-# OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
-# AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
-# OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF
-# THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
-# SUCH DAMAGE.
-#
-# For additional information see http://www.ethernut.de/
-#
-# $Id: Makedefs.avr-gcc 2599 2009-04-15 13:09:02Z haraldkipp $
-#
-
-# Set defaults for building in source tree.
-ifeq ($(top_srcdir),)
-top_srcdir = ../..
-endif
-ifeq ($(top_blddir),)
-top_blddir = top_srcdir
-endif
-ifeq ($(top_appdir),)
-top_appdir = top_srcdir
-endif
-ifeq ($(MCU),)
-include $(top_srcdir)/UserConf.mk
-LIBDIR = $(top_blddir)/lib
-endif
-
-# Inherit variables from library build.
-include $(top_srcdir)/Makedefs.avr-gcc
-
-# Add avr-gcc variables for application build.
-include $(top_srcdir)/app/Makevars.avr-gcc
-
-
-
-ELFCOF    = $(BIN) --debugging \
-	--change-section-address .data-0x800000 \
-	--change-section-address .bss-0x800000 \
-	--change-section-address .noinit-0x800000 \
-	--change-section-address .eeprom-0x810000

+ 0 - 58
nutos/nut/app/Makedefs.avr-gccdbg

@@ -1,58 +0,0 @@
-#
-# Copyright (C) 2007 by egnite Software GmbH
-# Copyright (C) 2009 by egnite GmbH
-#
-# All rights reserved.
-#
-# Redistribution and use in source and binary forms, with or without
-# modification, are permitted provided that the following conditions
-# are met:
-#
-# 1. Redistributions of source code must retain the above copyright
-#    notice, this list of conditions and the following disclaimer.
-# 2. Redistributions in binary form must reproduce the above copyright
-#    notice, this list of conditions and the following disclaimer in the
-#    documentation and/or other materials provided with the distribution.
-# 3. Neither the name of the copyright holders nor the names of
-#    contributors may be used to endorse or promote products derived
-#    from this software without specific prior written permission.
-#
-# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-# ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
-# FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
-# COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
-# INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
-# BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
-# OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
-# AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
-# OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF
-# THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
-# SUCH DAMAGE.
-#
-# For additional information see http://www.ethernut.de/
-#
-# $Id: Makedefs.avr-gccdbg 2599 2009-04-15 13:09:02Z haraldkipp $
-#
-
-# Set defaults for building in source tree.
-ifeq ($(top_srcdir),)
-top_srcdir = ../..
-endif
-ifeq ($(top_blddir),)
-top_blddir = top_srcdir
-endif
-ifeq ($(top_appdir),)
-top_appdir = top_srcdir
-endif
-ifeq ($(MCU),)
-include $(top_srcdir)/UserConf.mk
-LIBDIR = $(top_blddir)/lib
-endif
-
-# Inherit variables from library build.
-include $(top_srcdir)/Makedefs.avr-gccdbg
-
-# Add avr-gcc variables for application build.
-include $(top_srcdir)/app/Makevars.avr-gcc
-

+ 0 - 49
nutos/nut/app/Makedefs.avr-icc

@@ -1,49 +0,0 @@
-#
-# Copyright (C) 2001-2004 by egnite Software GmbH
-# Copyright (C) 2009 by egnite GmbH
-#
-# All rights reserved.
-#
-# Redistribution and use in source and binary forms, with or without
-# modification, are permitted provided that the following conditions
-# are met:
-#
-# 1. Redistributions of source code must retain the above copyright
-#    notice, this list of conditions and the following disclaimer.
-# 2. Redistributions in binary form must reproduce the above copyright
-#    notice, this list of conditions and the following disclaimer in the
-#    documentation and/or other materials provided with the distribution.
-# 3. Neither the name of the copyright holders nor the names of
-#    contributors may be used to endorse or promote products derived
-#    from this software without specific prior written permission.
-#
-# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-# ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
-# FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
-# COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
-# INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
-# BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
-# OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
-# AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
-# OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF
-# THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
-# SUCH DAMAGE.
-#
-# For additional information see http://www.ethernut.de/
-#
-# $Id: Makedefs.avr-icc 2599 2009-04-15 13:09:02Z haraldkipp $
-#
-
-include $(top_srcdir)/Makedefs.avr-icc
-
-TARG      = $(PROJ).hex
-ITARG     = $(PROJ).bin
-
-ELFCOF    = elfcoff
-BIN       = $(TRGT)objcopy
-
-BINDIR    = $(top_srcdir)/bin/$(MCU)
-
-# ATmega128
-LDFLAGS   = -L$(LIBDIR) -m -g -ucrtenutram.o -dram_end:0x7fff -bdata:0x100.0x7fff -dFRAM:1 -bfunc_lit:0x8c.0x20000 -dhwstk_size:16 -beeprom:1.4096 -fihx_coff $(LIBS)

Alguns ficheiros não foram mostrados porque muitos ficheiros mudaram neste diff