mbed library sources

Dependents:   Encrypted my_mbed lklk CyaSSL_DTLS_Cellular ... more

Superseded

This library was superseded by mbed-dev - https://os.mbed.com/users/mbed_official/code/mbed-dev/.

Development branch of the mbed library sources. This library is kept in synch with the latest changes from the mbed SDK and it is not guaranteed to work.

If you are looking for a stable and tested release, please import one of the official mbed library releases:

Import librarymbed

The official Mbed 2 C/C++ SDK provides the software platform and libraries to build your applications.

Committer:
mbed_official
Date:
Thu Sep 18 14:00:17 2014 +0100
Revision:
324:406fd2029f23
Synchronized with git revision a73f28e6fbca9559fbed2726410eeb4c0534a4a5

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

Extended #476, which does not break ethernet for K64F

Who changed what in which revision?

UserRevisionLine numberNew contents of line
mbed_official 324:406fd2029f23 1 /*
mbed_official 324:406fd2029f23 2 * Copyright (c) 2013 - 2014, Freescale Semiconductor, Inc.
mbed_official 324:406fd2029f23 3 * All rights reserved.
mbed_official 324:406fd2029f23 4 *
mbed_official 324:406fd2029f23 5 * Redistribution and use in source and binary forms, with or without modification,
mbed_official 324:406fd2029f23 6 * are permitted provided that the following conditions are met:
mbed_official 324:406fd2029f23 7 *
mbed_official 324:406fd2029f23 8 * o Redistributions of source code must retain the above copyright notice, this list
mbed_official 324:406fd2029f23 9 * of conditions and the following disclaimer.
mbed_official 324:406fd2029f23 10 *
mbed_official 324:406fd2029f23 11 * o Redistributions in binary form must reproduce the above copyright notice, this
mbed_official 324:406fd2029f23 12 * list of conditions and the following disclaimer in the documentation and/or
mbed_official 324:406fd2029f23 13 * other materials provided with the distribution.
mbed_official 324:406fd2029f23 14 *
mbed_official 324:406fd2029f23 15 * o Neither the name of Freescale Semiconductor, Inc. nor the names of its
mbed_official 324:406fd2029f23 16 * contributors may be used to endorse or promote products derived from this
mbed_official 324:406fd2029f23 17 * software without specific prior written permission.
mbed_official 324:406fd2029f23 18 *
mbed_official 324:406fd2029f23 19 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
mbed_official 324:406fd2029f23 20 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
mbed_official 324:406fd2029f23 21 * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
mbed_official 324:406fd2029f23 22 * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR
mbed_official 324:406fd2029f23 23 * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
mbed_official 324:406fd2029f23 24 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
mbed_official 324:406fd2029f23 25 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
mbed_official 324:406fd2029f23 26 * ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
mbed_official 324:406fd2029f23 27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
mbed_official 324:406fd2029f23 28 * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
mbed_official 324:406fd2029f23 29 */
mbed_official 324:406fd2029f23 30
mbed_official 324:406fd2029f23 31 #include "fsl_pmc_hal.h"
mbed_official 324:406fd2029f23 32
mbed_official 324:406fd2029f23 33 /*******************************************************************************
mbed_official 324:406fd2029f23 34 * Definitions
mbed_official 324:406fd2029f23 35 ******************************************************************************/
mbed_official 324:406fd2029f23 36
mbed_official 324:406fd2029f23 37 /*******************************************************************************
mbed_official 324:406fd2029f23 38 * Code
mbed_official 324:406fd2029f23 39 ******************************************************************************/
mbed_official 324:406fd2029f23 40
mbed_official 324:406fd2029f23 41 /*FUNCTION**********************************************************************
mbed_official 324:406fd2029f23 42 *
mbed_official 324:406fd2029f23 43 * Function Name : PMC_HAL_SetLowVoltIntCmd
mbed_official 324:406fd2029f23 44 * Description : Enable/Disable low voltage related interrupts
mbed_official 324:406fd2029f23 45 * This function enables the interrupt for the low voltage detection, warning,
mbed_official 324:406fd2029f23 46 * etc. When enabled, if the LVDF (Low Voltage Detect Flag) is set, a hardware
mbed_official 324:406fd2029f23 47 * interrupt occurs.
mbed_official 324:406fd2029f23 48 *
mbed_official 324:406fd2029f23 49 *END**************************************************************************/
mbed_official 324:406fd2029f23 50 void PMC_HAL_SetLowVoltIntCmd(uint32_t baseAddr, pmc_int_select_t intSelect, bool enable)
mbed_official 324:406fd2029f23 51 {
mbed_official 324:406fd2029f23 52 switch (intSelect)
mbed_official 324:406fd2029f23 53 {
mbed_official 324:406fd2029f23 54 case kPmcIntLowVoltDetect: /* Low Voltage Detect */
mbed_official 324:406fd2029f23 55 BW_PMC_LVDSC1_LVDIE(baseAddr, enable);
mbed_official 324:406fd2029f23 56 break;
mbed_official 324:406fd2029f23 57 case kPmcIntLowVoltWarn: /* Low Voltage Warning */
mbed_official 324:406fd2029f23 58 BW_PMC_LVDSC2_LVWIE(baseAddr, enable);
mbed_official 324:406fd2029f23 59 break;
mbed_official 324:406fd2029f23 60 default:
mbed_official 324:406fd2029f23 61 break;
mbed_official 324:406fd2029f23 62 }
mbed_official 324:406fd2029f23 63 }
mbed_official 324:406fd2029f23 64
mbed_official 324:406fd2029f23 65 /*******************************************************************************
mbed_official 324:406fd2029f23 66 * EOF
mbed_official 324:406fd2029f23 67 ******************************************************************************/
mbed_official 324:406fd2029f23 68