mbed w/ spi bug fig

Dependents:   display-puck

Fork of mbed-src by mbed official

Committer:
mbed_official
Date:
Wed Jun 11 09:30:07 2014 +0100
Revision:
225:2af4c5d0160c
Parent:
168:cf9372ac0a74
Synchronized with git revision ff65c63a80830b0c36f91f13488d79bafef442e6

Full URL: https://github.com/mbedmicro/mbed/commit/ff65c63a80830b0c36f91f13488d79bafef442e6/

Add support for remote CAN frames on LPC11CXX

Who changed what in which revision?

UserRevisionLine numberNew contents of line
mbed_official 168:cf9372ac0a74 1 /*
mbed_official 168:cf9372ac0a74 2 * Copyright (c) 2013 - 2014, Freescale Semiconductor, Inc.
mbed_official 168:cf9372ac0a74 3 * All rights reserved.
mbed_official 168:cf9372ac0a74 4 *
mbed_official 168:cf9372ac0a74 5 * Redistribution and use in source and binary forms, with or without modification,
mbed_official 168:cf9372ac0a74 6 * are permitted provided that the following conditions are met:
mbed_official 168:cf9372ac0a74 7 *
mbed_official 168:cf9372ac0a74 8 * o Redistributions of source code must retain the above copyright notice, this list
mbed_official 168:cf9372ac0a74 9 * of conditions and the following disclaimer.
mbed_official 168:cf9372ac0a74 10 *
mbed_official 168:cf9372ac0a74 11 * o Redistributions in binary form must reproduce the above copyright notice, this
mbed_official 168:cf9372ac0a74 12 * list of conditions and the following disclaimer in the documentation and/or
mbed_official 168:cf9372ac0a74 13 * other materials provided with the distribution.
mbed_official 168:cf9372ac0a74 14 *
mbed_official 168:cf9372ac0a74 15 * o Neither the name of Freescale Semiconductor, Inc. nor the names of its
mbed_official 168:cf9372ac0a74 16 * contributors may be used to endorse or promote products derived from this
mbed_official 168:cf9372ac0a74 17 * software without specific prior written permission.
mbed_official 168:cf9372ac0a74 18 *
mbed_official 168:cf9372ac0a74 19 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
mbed_official 168:cf9372ac0a74 20 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
mbed_official 168:cf9372ac0a74 21 * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
mbed_official 168:cf9372ac0a74 22 * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR
mbed_official 168:cf9372ac0a74 23 * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
mbed_official 168:cf9372ac0a74 24 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
mbed_official 168:cf9372ac0a74 25 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
mbed_official 168:cf9372ac0a74 26 * ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
mbed_official 168:cf9372ac0a74 27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
mbed_official 168:cf9372ac0a74 28 * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
mbed_official 168:cf9372ac0a74 29 */
mbed_official 168:cf9372ac0a74 30
mbed_official 168:cf9372ac0a74 31 #include "fsl_enet_driver.h"
mbed_official 168:cf9372ac0a74 32 #include "fsl_clock_manager.h"
mbed_official 168:cf9372ac0a74 33 /*******************************************************************************
mbed_official 168:cf9372ac0a74 34 * Variables
mbed_official 168:cf9372ac0a74 35 ******************************************************************************/
mbed_official 225:2af4c5d0160c 36
mbed_official 168:cf9372ac0a74 37
mbed_official 168:cf9372ac0a74 38 /* Internal irq number*/
mbed_official 168:cf9372ac0a74 39 typedef enum _enet_irq_number
mbed_official 168:cf9372ac0a74 40 {
mbed_official 168:cf9372ac0a74 41 kEnetTsTimerNumber = 0, /*!< ENET ts_timer irq number*/
mbed_official 168:cf9372ac0a74 42 kEnetReceiveNumber = 1, /*!< ENET receive irq number*/
mbed_official 168:cf9372ac0a74 43 kEnetTransmitNumber = 2, /*!< ENET transmit irq number*/
mbed_official 168:cf9372ac0a74 44 kEnetMiiErrorNumber = 3 /*!< ENET mii error irq number*/
mbed_official 168:cf9372ac0a74 45 }enet_irq_number_t;
mbed_official 168:cf9372ac0a74 46
mbed_official 168:cf9372ac0a74 47 #if FSL_FEATURE_ENET_SUPPORT_PTP
mbed_official 168:cf9372ac0a74 48 extern enet_ptp_master_time_data_t g_ptpMasterTime;
mbed_official 168:cf9372ac0a74 49 #if FSL_FEATURE_ENET_PTP_TIMER_CHANNEL_INTERRUPT
mbed_official 168:cf9372ac0a74 50 #define ENET_TIMER_CHANNEL_NUM 2
mbed_official 168:cf9372ac0a74 51 #endif
mbed_official 168:cf9372ac0a74 52 #endif
mbed_official 168:cf9372ac0a74 53
mbed_official 168:cf9372ac0a74 54 #if defined (K64F12_SERIES) || defined (K70F12_SERIES)
mbed_official 168:cf9372ac0a74 55 IRQn_Type enet_irq_ids[HW_ENET_INSTANCE_COUNT][FSL_FEATURE_ENET_INTERRUPT_COUNT] =
mbed_official 168:cf9372ac0a74 56 {
mbed_official 168:cf9372ac0a74 57 { ENET_1588_Timer_IRQn, ENET_Receive_IRQn, ENET_Transmit_IRQn, ENET_Error_IRQn}
mbed_official 168:cf9372ac0a74 58 };
mbed_official 168:cf9372ac0a74 59
mbed_official 168:cf9372ac0a74 60 uint8_t enetIntMap[kEnetIntNum] =
mbed_official 168:cf9372ac0a74 61 {
mbed_official 168:cf9372ac0a74 62 kEnetTsTimerNumber,
mbed_official 168:cf9372ac0a74 63 kEnetTsTimerNumber,
mbed_official 168:cf9372ac0a74 64 kEnetMiiErrorNumber,
mbed_official 168:cf9372ac0a74 65 kEnetMiiErrorNumber,
mbed_official 168:cf9372ac0a74 66 kEnetMiiErrorNumber,
mbed_official 168:cf9372ac0a74 67 kEnetMiiErrorNumber,
mbed_official 168:cf9372ac0a74 68 kEnetMiiErrorNumber,
mbed_official 168:cf9372ac0a74 69 kEnetMiiErrorNumber,
mbed_official 168:cf9372ac0a74 70 kEnetMiiErrorNumber,
mbed_official 168:cf9372ac0a74 71 kEnetReceiveNumber,
mbed_official 168:cf9372ac0a74 72 kEnetReceiveNumber,
mbed_official 168:cf9372ac0a74 73 kEnetTransmitNumber,
mbed_official 168:cf9372ac0a74 74 kEnetTransmitNumber,
mbed_official 168:cf9372ac0a74 75 kEnetMiiErrorNumber,
mbed_official 168:cf9372ac0a74 76 kEnetMiiErrorNumber,
mbed_official 168:cf9372ac0a74 77 kEnetMiiErrorNumber
mbed_official 168:cf9372ac0a74 78 };
mbed_official 168:cf9372ac0a74 79 #endif
mbed_official 168:cf9372ac0a74 80
mbed_official 168:cf9372ac0a74 81 /*******************************************************************************
mbed_official 168:cf9372ac0a74 82 * Code
mbed_official 168:cf9372ac0a74 83 ******************************************************************************/
mbed_official 225:2af4c5d0160c 84 /* The code was moved to k64f mac file (eth) */
mbed_official 168:cf9372ac0a74 85
mbed_official 168:cf9372ac0a74 86 /*******************************************************************************
mbed_official 168:cf9372ac0a74 87 * EOF
mbed_official 168:cf9372ac0a74 88 ******************************************************************************/
mbed_official 168:cf9372ac0a74 89