annotate packages/hal/arm/lpc2xxx/var/current/include/lpc2xxx_misc.h @ 2729:74dbf4c3f2e1 after-copyright-change-20090129

Update all copyright banners to reflect FSF ownership; fix and improve licence text.
author jlarmour
date Thu, 29 Jan 2009 17:47:46 +0000
parents db4d5a0ddeb4
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
2187
2d74b1f822f7 * cdl/hal_arm_lpc2xxx.cdl: Added CYGHWR_HAL_ARM_LPC2XXX_FAMILY,
asl
parents:
diff changeset
1 #ifndef CYGONCE_HAL_ARM_LPC2XXX_VAR_LPC2XXX_MISC_H
2d74b1f822f7 * cdl/hal_arm_lpc2xxx.cdl: Added CYGHWR_HAL_ARM_LPC2XXX_FAMILY,
asl
parents:
diff changeset
2 #define CYGONCE_HAL_ARM_LPC2XXX_VAR_LPC2XXX_MISC_H
2d74b1f822f7 * cdl/hal_arm_lpc2xxx.cdl: Added CYGHWR_HAL_ARM_LPC2XXX_FAMILY,
asl
parents:
diff changeset
3 //=============================================================================
2d74b1f822f7 * cdl/hal_arm_lpc2xxx.cdl: Added CYGHWR_HAL_ARM_LPC2XXX_FAMILY,
asl
parents:
diff changeset
4 //
2d74b1f822f7 * cdl/hal_arm_lpc2xxx.cdl: Added CYGHWR_HAL_ARM_LPC2XXX_FAMILY,
asl
parents:
diff changeset
5 // lpc2xxx_misc.h
2d74b1f822f7 * cdl/hal_arm_lpc2xxx.cdl: Added CYGHWR_HAL_ARM_LPC2XXX_FAMILY,
asl
parents:
diff changeset
6 //
2d74b1f822f7 * cdl/hal_arm_lpc2xxx.cdl: Added CYGHWR_HAL_ARM_LPC2XXX_FAMILY,
asl
parents:
diff changeset
7 // HAL misc variant support code for Philips LPC2xxx header file
2d74b1f822f7 * cdl/hal_arm_lpc2xxx.cdl: Added CYGHWR_HAL_ARM_LPC2XXX_FAMILY,
asl
parents:
diff changeset
8 //
2d74b1f822f7 * cdl/hal_arm_lpc2xxx.cdl: Added CYGHWR_HAL_ARM_LPC2XXX_FAMILY,
asl
parents:
diff changeset
9 //=============================================================================
2729
74dbf4c3f2e1 Update all copyright banners to reflect FSF ownership; fix and improve licence text.
jlarmour
parents: 2508
diff changeset
10 // ####ECOSGPLCOPYRIGHTBEGIN####
74dbf4c3f2e1 Update all copyright banners to reflect FSF ownership; fix and improve licence text.
jlarmour
parents: 2508
diff changeset
11 // -------------------------------------------
74dbf4c3f2e1 Update all copyright banners to reflect FSF ownership; fix and improve licence text.
jlarmour
parents: 2508
diff changeset
12 // This file is part of eCos, the Embedded Configurable Operating System.
74dbf4c3f2e1 Update all copyright banners to reflect FSF ownership; fix and improve licence text.
jlarmour
parents: 2508
diff changeset
13 // Copyright (C) 2006 Free Software Foundation, Inc.
2187
2d74b1f822f7 * cdl/hal_arm_lpc2xxx.cdl: Added CYGHWR_HAL_ARM_LPC2XXX_FAMILY,
asl
parents:
diff changeset
14 //
2729
74dbf4c3f2e1 Update all copyright banners to reflect FSF ownership; fix and improve licence text.
jlarmour
parents: 2508
diff changeset
15 // eCos is free software; you can redistribute it and/or modify it under
74dbf4c3f2e1 Update all copyright banners to reflect FSF ownership; fix and improve licence text.
jlarmour
parents: 2508
diff changeset
16 // the terms of the GNU General Public License as published by the Free
74dbf4c3f2e1 Update all copyright banners to reflect FSF ownership; fix and improve licence text.
jlarmour
parents: 2508
diff changeset
17 // Software Foundation; either version 2 or (at your option) any later
74dbf4c3f2e1 Update all copyright banners to reflect FSF ownership; fix and improve licence text.
jlarmour
parents: 2508
diff changeset
18 // version.
2187
2d74b1f822f7 * cdl/hal_arm_lpc2xxx.cdl: Added CYGHWR_HAL_ARM_LPC2XXX_FAMILY,
asl
parents:
diff changeset
19 //
2729
74dbf4c3f2e1 Update all copyright banners to reflect FSF ownership; fix and improve licence text.
jlarmour
parents: 2508
diff changeset
20 // eCos is distributed in the hope that it will be useful, but WITHOUT
74dbf4c3f2e1 Update all copyright banners to reflect FSF ownership; fix and improve licence text.
jlarmour
parents: 2508
diff changeset
21 // ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
74dbf4c3f2e1 Update all copyright banners to reflect FSF ownership; fix and improve licence text.
jlarmour
parents: 2508
diff changeset
22 // FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
74dbf4c3f2e1 Update all copyright banners to reflect FSF ownership; fix and improve licence text.
jlarmour
parents: 2508
diff changeset
23 // for more details.
2187
2d74b1f822f7 * cdl/hal_arm_lpc2xxx.cdl: Added CYGHWR_HAL_ARM_LPC2XXX_FAMILY,
asl
parents:
diff changeset
24 //
2729
74dbf4c3f2e1 Update all copyright banners to reflect FSF ownership; fix and improve licence text.
jlarmour
parents: 2508
diff changeset
25 // You should have received a copy of the GNU General Public License
74dbf4c3f2e1 Update all copyright banners to reflect FSF ownership; fix and improve licence text.
jlarmour
parents: 2508
diff changeset
26 // along with eCos; if not, write to the Free Software Foundation, Inc.,
74dbf4c3f2e1 Update all copyright banners to reflect FSF ownership; fix and improve licence text.
jlarmour
parents: 2508
diff changeset
27 // 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
2187
2d74b1f822f7 * cdl/hal_arm_lpc2xxx.cdl: Added CYGHWR_HAL_ARM_LPC2XXX_FAMILY,
asl
parents:
diff changeset
28 //
2729
74dbf4c3f2e1 Update all copyright banners to reflect FSF ownership; fix and improve licence text.
jlarmour
parents: 2508
diff changeset
29 // As a special exception, if other files instantiate templates or use
74dbf4c3f2e1 Update all copyright banners to reflect FSF ownership; fix and improve licence text.
jlarmour
parents: 2508
diff changeset
30 // macros or inline functions from this file, or you compile this file
74dbf4c3f2e1 Update all copyright banners to reflect FSF ownership; fix and improve licence text.
jlarmour
parents: 2508
diff changeset
31 // and link it with other works to produce a work based on this file,
74dbf4c3f2e1 Update all copyright banners to reflect FSF ownership; fix and improve licence text.
jlarmour
parents: 2508
diff changeset
32 // this file does not by itself cause the resulting work to be covered by
74dbf4c3f2e1 Update all copyright banners to reflect FSF ownership; fix and improve licence text.
jlarmour
parents: 2508
diff changeset
33 // the GNU General Public License. However the source code for this file
74dbf4c3f2e1 Update all copyright banners to reflect FSF ownership; fix and improve licence text.
jlarmour
parents: 2508
diff changeset
34 // must still be made available in accordance with section (3) of the GNU
74dbf4c3f2e1 Update all copyright banners to reflect FSF ownership; fix and improve licence text.
jlarmour
parents: 2508
diff changeset
35 // General Public License v2.
2187
2d74b1f822f7 * cdl/hal_arm_lpc2xxx.cdl: Added CYGHWR_HAL_ARM_LPC2XXX_FAMILY,
asl
parents:
diff changeset
36 //
2729
74dbf4c3f2e1 Update all copyright banners to reflect FSF ownership; fix and improve licence text.
jlarmour
parents: 2508
diff changeset
37 // This exception does not invalidate any other reasons why a work based
74dbf4c3f2e1 Update all copyright banners to reflect FSF ownership; fix and improve licence text.
jlarmour
parents: 2508
diff changeset
38 // on this file might be covered by the GNU General Public License.
74dbf4c3f2e1 Update all copyright banners to reflect FSF ownership; fix and improve licence text.
jlarmour
parents: 2508
diff changeset
39 // -------------------------------------------
74dbf4c3f2e1 Update all copyright banners to reflect FSF ownership; fix and improve licence text.
jlarmour
parents: 2508
diff changeset
40 // ####ECOSGPLCOPYRIGHTEND####
2187
2d74b1f822f7 * cdl/hal_arm_lpc2xxx.cdl: Added CYGHWR_HAL_ARM_LPC2XXX_FAMILY,
asl
parents:
diff changeset
41 //=============================================================================
2d74b1f822f7 * cdl/hal_arm_lpc2xxx.cdl: Added CYGHWR_HAL_ARM_LPC2XXX_FAMILY,
asl
parents:
diff changeset
42 //#####DESCRIPTIONBEGIN####
2d74b1f822f7 * cdl/hal_arm_lpc2xxx.cdl: Added CYGHWR_HAL_ARM_LPC2XXX_FAMILY,
asl
parents:
diff changeset
43 //
2d74b1f822f7 * cdl/hal_arm_lpc2xxx.cdl: Added CYGHWR_HAL_ARM_LPC2XXX_FAMILY,
asl
parents:
diff changeset
44 // Author(s): andyj
2d74b1f822f7 * cdl/hal_arm_lpc2xxx.cdl: Added CYGHWR_HAL_ARM_LPC2XXX_FAMILY,
asl
parents:
diff changeset
45 // Contributors: jani
2d74b1f822f7 * cdl/hal_arm_lpc2xxx.cdl: Added CYGHWR_HAL_ARM_LPC2XXX_FAMILY,
asl
parents:
diff changeset
46 // Date: 2006-02-04
2d74b1f822f7 * cdl/hal_arm_lpc2xxx.cdl: Added CYGHWR_HAL_ARM_LPC2XXX_FAMILY,
asl
parents:
diff changeset
47 // Purpose: LPC2XXX specific miscellaneous support header file
2d74b1f822f7 * cdl/hal_arm_lpc2xxx.cdl: Added CYGHWR_HAL_ARM_LPC2XXX_FAMILY,
asl
parents:
diff changeset
48 // Description:
2d74b1f822f7 * cdl/hal_arm_lpc2xxx.cdl: Added CYGHWR_HAL_ARM_LPC2XXX_FAMILY,
asl
parents:
diff changeset
49 // Usage: #include <cyg/hal/lpc2xxx_misc.h>
2d74b1f822f7 * cdl/hal_arm_lpc2xxx.cdl: Added CYGHWR_HAL_ARM_LPC2XXX_FAMILY,
asl
parents:
diff changeset
50 //
2d74b1f822f7 * cdl/hal_arm_lpc2xxx.cdl: Added CYGHWR_HAL_ARM_LPC2XXX_FAMILY,
asl
parents:
diff changeset
51 //####DESCRIPTIONEND####
2d74b1f822f7 * cdl/hal_arm_lpc2xxx.cdl: Added CYGHWR_HAL_ARM_LPC2XXX_FAMILY,
asl
parents:
diff changeset
52 //
2d74b1f822f7 * cdl/hal_arm_lpc2xxx.cdl: Added CYGHWR_HAL_ARM_LPC2XXX_FAMILY,
asl
parents:
diff changeset
53 //=============================================================================
2d74b1f822f7 * cdl/hal_arm_lpc2xxx.cdl: Added CYGHWR_HAL_ARM_LPC2XXX_FAMILY,
asl
parents:
diff changeset
54
2d74b1f822f7 * cdl/hal_arm_lpc2xxx.cdl: Added CYGHWR_HAL_ARM_LPC2XXX_FAMILY,
asl
parents:
diff changeset
55 //-----------------------------------------------------------------------------
2d74b1f822f7 * cdl/hal_arm_lpc2xxx.cdl: Added CYGHWR_HAL_ARM_LPC2XXX_FAMILY,
asl
parents:
diff changeset
56 // Macros to derive the baudrate divider values for the internal UARTs
2d74b1f822f7 * cdl/hal_arm_lpc2xxx.cdl: Added CYGHWR_HAL_ARM_LPC2XXX_FAMILY,
asl
parents:
diff changeset
57 //-----------------------------------------------------------------------------
2d74b1f822f7 * cdl/hal_arm_lpc2xxx.cdl: Added CYGHWR_HAL_ARM_LPC2XXX_FAMILY,
asl
parents:
diff changeset
58 #define CYG_HAL_ARM_LPC2XXX_BAUD_GENERATOR(baud) \
2508
db4d5a0ddeb4 * cdl/hal_arm_lpc2xxx.cdl: Added option
asl
parents: 2187
diff changeset
59 (CYGNUM_HAL_ARM_LPC2XXX_PCLK/((baud)*16))
db4d5a0ddeb4 * cdl/hal_arm_lpc2xxx.cdl: Added option
asl
parents: 2187
diff changeset
60
db4d5a0ddeb4 * cdl/hal_arm_lpc2xxx.cdl: Added option
asl
parents: 2187
diff changeset
61 //-----------------------------------------------------------------------------
db4d5a0ddeb4 * cdl/hal_arm_lpc2xxx.cdl: Added option
asl
parents: 2187
diff changeset
62 // LPX2xxx varaint specific initialisatio of CAN channels
db4d5a0ddeb4 * cdl/hal_arm_lpc2xxx.cdl: Added option
asl
parents: 2187
diff changeset
63 // This function configures the pin functions for CAN use
db4d5a0ddeb4 * cdl/hal_arm_lpc2xxx.cdl: Added option
asl
parents: 2187
diff changeset
64 //-----------------------------------------------------------------------------
db4d5a0ddeb4 * cdl/hal_arm_lpc2xxx.cdl: Added option
asl
parents: 2187
diff changeset
65 #ifdef CYGPKG_DEVS_CAN_LPC2XXX
db4d5a0ddeb4 * cdl/hal_arm_lpc2xxx.cdl: Added option
asl
parents: 2187
diff changeset
66 externC void hal_lpc_can_init(cyg_uint8 can_chan_no);
db4d5a0ddeb4 * cdl/hal_arm_lpc2xxx.cdl: Added option
asl
parents: 2187
diff changeset
67 #define HAL_LPC2XXX_INIT_CAN(_can_chan_no_) hal_lpc_can_init(_can_chan_no_)
db4d5a0ddeb4 * cdl/hal_arm_lpc2xxx.cdl: Added option
asl
parents: 2187
diff changeset
68 #define CYGNUM_HAL_ARM_LPC2XXX_CAN_CLK CYGNUM_HAL_ARM_LPC2XXX_PCLK
db4d5a0ddeb4 * cdl/hal_arm_lpc2xxx.cdl: Added option
asl
parents: 2187
diff changeset
69 #endif // CYGPKG_DEVS_CAN_LPC2XXX
2187
2d74b1f822f7 * cdl/hal_arm_lpc2xxx.cdl: Added CYGHWR_HAL_ARM_LPC2XXX_FAMILY,
asl
parents:
diff changeset
70
2d74b1f822f7 * cdl/hal_arm_lpc2xxx.cdl: Added CYGHWR_HAL_ARM_LPC2XXX_FAMILY,
asl
parents:
diff changeset
71 //-----------------------------------------------------------------------------
2d74b1f822f7 * cdl/hal_arm_lpc2xxx.cdl: Added CYGHWR_HAL_ARM_LPC2XXX_FAMILY,
asl
parents:
diff changeset
72 // LPX2xxx watchdog support
2d74b1f822f7 * cdl/hal_arm_lpc2xxx.cdl: Added CYGHWR_HAL_ARM_LPC2XXX_FAMILY,
asl
parents:
diff changeset
73 //-----------------------------------------------------------------------------
2d74b1f822f7 * cdl/hal_arm_lpc2xxx.cdl: Added CYGHWR_HAL_ARM_LPC2XXX_FAMILY,
asl
parents:
diff changeset
74 externC void hal_lpc_watchdog_reset(void);
2d74b1f822f7 * cdl/hal_arm_lpc2xxx.cdl: Added CYGHWR_HAL_ARM_LPC2XXX_FAMILY,
asl
parents:
diff changeset
75
2d74b1f822f7 * cdl/hal_arm_lpc2xxx.cdl: Added CYGHWR_HAL_ARM_LPC2XXX_FAMILY,
asl
parents:
diff changeset
76 #define HAL_PLATFORM_RESET() hal_lpc_watchdog_reset()
2d74b1f822f7 * cdl/hal_arm_lpc2xxx.cdl: Added CYGHWR_HAL_ARM_LPC2XXX_FAMILY,
asl
parents:
diff changeset
77 #define HAL_PLATFORM_RESET_ENTRY 0
2d74b1f822f7 * cdl/hal_arm_lpc2xxx.cdl: Added CYGHWR_HAL_ARM_LPC2XXX_FAMILY,
asl
parents:
diff changeset
78
2d74b1f822f7 * cdl/hal_arm_lpc2xxx.cdl: Added CYGHWR_HAL_ARM_LPC2XXX_FAMILY,
asl
parents:
diff changeset
79 //-----------------------------------------------------------------------------
2d74b1f822f7 * cdl/hal_arm_lpc2xxx.cdl: Added CYGHWR_HAL_ARM_LPC2XXX_FAMILY,
asl
parents:
diff changeset
80 // end of lpc2xxx_misc.h
2d74b1f822f7 * cdl/hal_arm_lpc2xxx.cdl: Added CYGHWR_HAL_ARM_LPC2XXX_FAMILY,
asl
parents:
diff changeset
81 #endif // CYGONCE_HAL_ARM_LPC2XXX_VAR_LPC2XXX_MISC_H