git-svn-id: file:///srv/dev-disk-by-uuid-17e88007-4d0c-45e0-8757-cacfcc458630/repositories/svn/Diplomarbeit@112 9fe90eed-be63-e94b-8204-d34ff4c2ff93

This commit is contained in:
Matthias
2009-01-12 08:38:09 +00:00
parent 6880a47b46
commit 4e45654a5f
6 changed files with 0 additions and 0 deletions
+11
View File
@@ -0,0 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>inc</name>
<comment></comment>
<projects>
</projects>
<buildSpec>
</buildSpec>
<natures>
</natures>
</projectDescription>
+112
View File
@@ -0,0 +1,112 @@
/*
FreeRTOS V4.6.1 - Copyright (C) 2003-2005 Richard Barry.
This file is part of the FreeRTOS distribution.
FreeRTOS 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.
FreeRTOS 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 FreeRTOS; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
A special exception to the GPL can be applied should you wish to distribute
a combined work that includes FreeRTOS, without being obliged to provide
the source code for any proprietary components. See the licensing section
of http://www.FreeRTOS.org for full details of how and when the exception
can be applied.
***************************************************************************
See http://www.FreeRTOS.org for documentation, latest information, license
and contact details. Please ensure to read the configuration and relevant
port sections of the online documentation.
***************************************************************************
*/
#ifndef FREERTOS_CONFIG_H
#define FREERTOS_CONFIG_H
#include <stdio.h>
#include "lpc23xx.h"
/*-----------------------------------------------------------
* Application specific definitions.
*
* These definitions should be adjusted for your particular hardware and
* application requirements.
*
* THESE PARAMETERS ARE DESCRIBED WITHIN THE 'CONFIGURATION' SECTION OF THE
* FreeRTOS API DOCUMENTATION AVAILABLE ON THE FreeRTOS.org WEB SITE.
*----------------------------------------------------------*/
#define configPINSEL2_VALUE 0x50151105
#define configUSE_PREEMPTION 1
#define configUSE_IDLE_HOOK 0
#define configUSE_TICK_HOOK 1
#define configCPU_CLOCK_HZ ( ( unsigned portLONG ) 48000000 ) /* =12Mhz xtal multiplied by 5 using the PLL. */
#define configTICK_RATE_HZ ( ( portTickType ) 1000 )
#define configMAX_PRIORITIES ( ( unsigned portBASE_TYPE ) 4 )
#define configMINIMAL_STACK_SIZE ( ( unsigned portSHORT ) 104 )
#define configTOTAL_HEAP_SIZE (( size_t ) ( 14 * 1024 ) )
#define configMAX_TASK_NAME_LEN ( 20 )
#define configUSE_TRACE_FACILITY 1
#define configUSE_16_BIT_TICKS 0
#define configIDLE_SHOULD_YIELD 1
#define configUSE_MUTEXES 1
/* Co-routine definitions. */
#define configUSE_CO_ROUTINES 0
#define configMAX_CO_ROUTINE_PRIORITIES ( 2 )
/* Set the following definitions to 1 to include the API function, or zero
to exclude the API function. */
#define INCLUDE_vTaskPrioritySet 1
#define INCLUDE_uxTaskPriorityGet 1
#define INCLUDE_vTaskDelete 1
#define INCLUDE_vTaskCleanUpResources 0
#define INCLUDE_vTaskSuspend 1
#define INCLUDE_vTaskDelayUntil 1
#define INCLUDE_vTaskDelay 1
#define INCLUDE_xTaskGetCurrentTaskHandle 1
#endif /* FREERTOS_CONFIG_H */
#ifndef sbi
#define sbi(x,y) x|=(1 << (y))
#endif
#ifndef cbi
#define cbi(x,y) x&=~(1 << (y))
#endif
#ifndef tstb
#define tstb(x,y) (x & (1 << (y)) ? 1 : 0)
#endif
#ifndef toggle
#define toggle(x,y) x^=(1 << (y))
#endif
#ifndef BIT
#define BIT(x) (1 << (x))
typedef struct
{
long xColumn;
char *pcMessage;
} xLCDMessage;
extern void vApplicationTickHook( void );
#endif
File diff suppressed because it is too large Load Diff
+89
View File
@@ -0,0 +1,89 @@
MEMORY
{
flash : ORIGIN = 0x00005000, LENGTH = 500K - 20K
ramheader : ORIGIN = 0x40000000, LENGTH = 0x60
/* ram : ORIGIN = 0x40000060, LENGTH = 32K - 0x60 */
ram : ORIGIN = 0x40000060, LENGTH = 64K - 0x60
usbram : ORIGIN = 0x7FD00000, LENGTH = 8K
ethram : ORIGIN = 0x7FE00000, LENGTH = 16K
rtcram : ORIGIN = 0xE0084000, LENGTH = 2K
}
/* __stack_end__ = 0x40000000 + 32K - 4; */
__stack_end__ = 0x40000000 + 64K - 4;
SECTIONS
{
. = 0;
startup : { *(.startup)} >flash
prog :
{
*(.text)
*(.rodata)
*(.rodata*)
*(.glue_7)
*(.glue_7t)
} >flash
__end_of_text__ = .;
.data :
{
__data_beg__ = .;
__data_beg_src__ = __end_of_text__;
*(.data)
__data_end__ = .;
} >ram AT>flash
.bss :
{
__bss_beg__ = .;
*(.bss)
*(COMMON)
__bss_end__ = .;
} >ram
.backupram (NOLOAD):
{
__backupram_beg__ = .;
*(.backupram);
__backupram_end__ = .;
} >ram
/* Align here to ensure that the .bss section occupies space up to
_end. Align after .bss to ensure correct alignment even if the
.bss section disappears because there are no input sections. */
. = ALIGN(32 / 8);
.usbram (NOLOAD):
{
__usbram_beg__ = .;
*(.dmaram)
__usbram_end__ = .;
} >usbram
.ethram (NOLOAD):
{
__ethram_beg__ = .;
*(.ethram)
__ethram_end__ = .;
} >ethram
.rtcram (NOLOAD):
{
__rtcram_beg__ = .;
*(.rtcram)
__rtcram_end__ = .;
} >rtcram
}
. = ALIGN(32 / 8);
_end = .;
/*_bss_end__ = . ; __bss_end__ = . ; */
__end__ = . ;
PROVIDE (end = .);
+202
View File
@@ -0,0 +1,202 @@
/******************************************************************************
*
* $RCSfile: $
* $Revision: $
*
* This module provides information about the project configuration
* Copyright 2004, R O SoftWare
* No guarantees, warrantees, or promises, implied or otherwise.
* May be used for hobby or commercial purposes provided copyright
* notice remains intact.
*
*****************************************************************************/
/* modified by Martin Thomas */
// 5/2007 mt: adapted to LPC23xx/24xx
#ifndef SYS_CONFIG_H__
#define SYS_CONFIG_H__
#include "LPC23xx.h"
/*#include "app_types.h"
//#include "LPC_REGS.h"*/
// some handy DEFINES
#ifndef FALSE
#define FALSE 0
#ifndef TRUE
#define TRUE !FALSE
#endif
#endif
#ifndef BIT
#define BIT(n) (1L << (n))
#endif
#ifndef TSTBIT
#define TSTBIT(a, n) (a & (1L << n) ? TRUE : FALSE)
#endif
#define HLWORD(hb,lb) ( ((UINT16)(hb)<< 8) | ((UINT16)(lb) & 0x00FF) )
#define SW1_PIN FIO0PIN
#define SW1_BIT BIT(29)
#define SW2_PIN SW1_PIN
#define SW2_BIT BIT(18)
#define LED1_SET FIO0SET
#define LED1_DIR FIO0DIR
#define LED1_CLR FIO0CLR
#define LED1_PIN FIO0PIN
#define LED1_BIT BIT(21) /* MCI PWR */
#if 0
#define LED2_SET FIO1SET
#define LED2_DIR FIO1DIR
#define LED2_CLR FIO1CLR
#define LED2_BIT BIT(26) /* LCD BL */
#endif
#define HOST_BAUD_U0 (115200)
#define HOST_BAUD_U1 (115200)
#define WDOG()
// PLL setup values are computed within the LPC include file
// It relies upon the following defines
// PLL input is the XTAL at FOSC
// FCCO is FOSC * PLL_MUL * 2 / PLL_DIV
//
#define FOSC (12000000) // Master Oscillator Freq.
#define PLL_MUL (11) // PLL Multiplier
#define PLL_DIV (0) // PLL Divider
#define CCLK_DIV (5) // PLL out -> CPU clock divider
#define FCCO ((FOSC * (PLL_MUL + 1) * 2) / (PLL_DIV + 1)) // PLLclk= 288 Mhz
#define CCLK ( FCCO / (CCLK_DIV + 1) ) // CPU Clock Freq. (48 Mhz)
// Pheripheral Bus Speed Divider
#define PBSD 4 // MUST BE 1, 2, or 4
#define PCLK (CCLK / PBSD) // Pheripheal Bus Clock Freq.
// The following ist not used in this example:
// Port Bit Definitions & Macros: Description - initial conditions
// Port 0
#define P00_UNUSED_BIT BIT(0) // P0.00 unused - low output
#define P01_UNUSED_BIT BIT(1) // P0.01 unused - low output
#define P02_UNUSED_BIT BIT(2) // P0.02 unused - low output
#define P03_UNUSED_BIT BIT(3) // P0.03 unused - low output
#define P04_UNUSED_BIT BIT(4) // P0.04 unused - low output
#define P05_UNUSED_BIT BIT(5) // P0.05 unused - low output
#define P06_UNUSED_BIT BIT(6) // P0.06 unused - low output
#define P07_UNUSED_BIT BIT(7) // P0.06 unused - low output
#define P08_UNUSED_BIT BIT(8) // P0.08 unused - low output
#define P09_UNUSED_BIT BIT(9) // P0.09 unused - low output
#define P10_UNUSED_BIT BIT(10) // P0.10 unused - low output
#define P11_UNUSED_BIT BIT(11) // P0.11 unused - low output
#define P12_UNUSED_BIT BIT(12) // P0.12 unused - low output
#define P13_UNUSED_BIT BIT(13) // P0.13 unused - low output
#define P14_UNUSED_BIT BIT(14) // P0.14 unused - low output
#define P15_UNUSED_BIT BIT(15) // P0.15 unused - low output
#define P16_UNUSED_BIT BIT(16) // P0.16 unused - low output
#define P17_UNUSED_BIT BIT(17) // P0.17 unused - low output
#define P18_UNUSED_BIT BIT(18) // P0.18 unused - low output
#define P19_UNUSED_BIT BIT(19) // P0.19 unused - low output
#define P20_UNUSED_BIT BIT(20) // P0.20 unused - low output
#define P21_UNUSED_BIT BIT(21) // P0.21 unused - low output
#define P22_UNUSED_BIT BIT(22) // P0.22 unused - low output
#define P23_UNUSED_BIT BIT(23) // P0.23 unused - low output
#define P24_UNUSED_BIT BIT(24) // P0.24 unused - low output
#define P25_UNUSED_BIT BIT(25) // P0.25 unused - low output
#define P26_UNUSED_BIT BIT(26) // P0.26 unused - low output
#define P27_UNUSED_BIT BIT(27) // P0.27 unused - low output
#define P28_UNUSED_BIT BIT(28) // P0.28 unused - low output
#define P29_UNUSED_BIT BIT(29) // P0.29 unused - low output
#define P30_UNUSED_BIT BIT(30) // P0.30 unused - low output
#define P31_UNUSED_BIT BIT(31) // P0.31 unused - low output
// Port 1
// Port Bit Definitions & Macros: Description - initial conditions
#define P1_00_UNUSED_BIT BIT(0) // P1_0.00 unused - low output
#define P1_01_UNUSED_BIT BIT(1) // P1_0.01 unused - low output
#define P1_02_UNUSED_BIT BIT(2) // P1_0.02 unused - low output
#define P1_03_UNUSED_BIT BIT(3) // P1_0.03 unused - low output
#define P1_04_UNUSED_BIT BIT(4) // P1_0.04 unused - low output
#define P1_05_UNUSED_BIT BIT(5) // P1_0.05 unused - low output
#define P1_06_UNUSED_BIT BIT(6) // P1_0.06 unused - low output
#define P1_07_UNUSED_BIT BIT(7) // P1_0.06 unused - low output
#define P1_08_UNUSED_BIT BIT(8) // P1_0.08 unused - low output
#define P1_09_UNUSED_BIT BIT(9) // P1_0.09 unused - low output
#define P1_10_UNUSED_BIT BIT(10) // P1_0.10 unused - low output
#define P1_11_UNUSED_BIT BIT(11) // P1_0.11 unused - low output
#define P1_12_UNUSED_BIT BIT(12) // P1_0.12 unused - low output
#define P1_13_UNUSED_BIT BIT(13) // P1_0.13 unused - low output
#define P1_14_UNUSED_BIT BIT(14) // P1_0.14 unused - low output
#define P1_15_UNUSED_BIT BIT(15) // P1_0.15 unused - low output
#define P1_16_UNUSED_BIT BIT(16) // P1_0.16 unused - low output
#define P1_17_UNUSED_BIT BIT(17) // P1_0.17 unused - low output
#define P1_18_UNUSED_BIT BIT(18) // P1_0.18 unused - low output
#define P1_19_UNUSED_BIT BIT(19) // P1_0.19 unused - low output
#define P1_20_UNUSED_BIT BIT(20) // P1_0.20 unused - low output
#define P1_21_UNUSED_BIT BIT(21) // P1_0.21 unused - low output
#define P1_22_UNUSED_BIT BIT(22) // P1_0.22 unused - low output
#define P1_23_UNUSED_BIT BIT(23) // P1_0.23 unused - low output
#define P1_24_UNUSED_BIT BIT(24) // P1_0.24 unused - low output
#define P1_25_UNUSED_BIT BIT(25) // P1_0.25 unused - low output
#define P1_26_UNUSED_BIT BIT(26) // P1_0.26 unused - low output
#define P1_27_UNUSED_BIT BIT(27) // P1_0.27 unused - low output
#define P1_28_UNUSED_BIT BIT(28) // P1_0.28 unused - low output
#define P1_29_UNUSED_BIT BIT(29) // P1_0.29 unused - low output
#define P1_30_UNUSED_BIT BIT(30) // P1_0.30 unused - low output
#define P1_31_UNUSED_BIT BIT(31) // P1_0.31 unused - low output
#define PIO_INPUT_BITS (uint32_t) ( \
0 )
#define PIO_ZERO_BITS (uint32_t) ( \
P00_UNUSED_BIT | \
P01_UNUSED_BIT | \
P02_UNUSED_BIT | \
P03_UNUSED_BIT | \
P04_UNUSED_BIT | \
P05_UNUSED_BIT | \
P06_UNUSED_BIT | \
P07_UNUSED_BIT | \
P08_UNUSED_BIT | \
P09_UNUSED_BIT | \
P10_UNUSED_BIT | \
P11_UNUSED_BIT | \
P12_UNUSED_BIT | \
P13_UNUSED_BIT | \
P14_UNUSED_BIT | \
P15_UNUSED_BIT | \
P16_UNUSED_BIT | \
P16_UNUSED_BIT | \
P17_UNUSED_BIT | \
P18_UNUSED_BIT | \
P19_UNUSED_BIT | \
P20_UNUSED_BIT | \
P21_UNUSED_BIT | \
P22_UNUSED_BIT | \
P23_UNUSED_BIT | \
P24_UNUSED_BIT | \
P25_UNUSED_BIT | \
P26_UNUSED_BIT | \
P27_UNUSED_BIT | \
P28_UNUSED_BIT | \
P29_UNUSED_BIT | \
P30_UNUSED_BIT | \
P31_UNUSED_BIT | \
0 )
#define PIO_ONE_BITS (uint32_t) ( \
0 )
#define PIO_OUTPUT_BITS (uint32_t) ( \
PIO_ZERO_BITS | \
PIO_ONE_BITS )
#endif
+108
View File
@@ -0,0 +1,108 @@
/* ---------------------------------------------------------------------------
* types.h - v0.1 (c) 2007 Micro-key bv
* ---------------------------------------------------------------------------
* Micro-key bv
* Industrieweg 28, 9804 TG Noordhorn
* Postbus 92, 9800 AB Zuidhorn
* The Netherlands
* Tel: +31 594 503020
* Fax: +31 594 505825
* Email: support@microkey.nl
* Web: www.microkey.nl
* ---------------------------------------------------------------------------
* Description: Contains definitions of native types.
* ---------------------------------------------------------------------------
* Version(s): 0.1, 10-09-2007, Marcel Mulder.
* Creation.
* ---------------------------------------------------------------------------
*/
#ifndef __TYPES_H__
#define __TYPES_H__
/** \file types.h
\brief Contains the native types of LPC2378
*/
/* ---------------------------------------------------------------------------
* System include files.
* ---------------------------------------------------------------------------
*/
/* ---------------------------------------------------------------------------
* Application include files.
* ---------------------------------------------------------------------------
*/
/* ---------------------------------------------------------------------------
* Constant and macro definitions.
* ---------------------------------------------------------------------------
*/
#define UINT8 unsigned char
#define UINT16 unsigned short
#define UINT32 unsigned int
typedef unsigned long long UINT64; // Unsigned 64 bit quantity
#define pUINT8 unsigned char *
#define pUINT16 unsigned short *
#define pUINT32 unsigned int *
#define INT8 char
#define INT16 short
#define INT32 int
#define pINT8 char *
#define pINT16 short *
#define pINT32 int *
#ifndef BIT
#define BIT(n) (1L << (n))
#endif
#ifndef NULL
#define NULL (0)
#endif
/* ---------------------------------------------------------------------------
* Type definitions.
* ---------------------------------------------------------------------------
*/
#ifdef fsasfd
typedef enum
{
FALSE = 0, /**< Definition of false*/
TRUE
} BOOLEAN;
#endif
#ifndef FALSE
#define FALSE (1 == 0)
#endif
#ifndef TRUE
#define TRUE (1==1)
#endif
#define BOOLEAN char
typedef enum
{
ERROR = 0, /**< Definition for ERROR*/
OK
} RESULT;
/* ---------------------------------------------------------------------------
* Variable declarations.
* ---------------------------------------------------------------------------
*/
/* ---------------------------------------------------------------------------
* Function declarations.
* ---------------------------------------------------------------------------
*/
#endif /* __TYPES_H__ */