added prescaler for 16 bit pwm in LPC1347 target

Fork of mbed-dev by mbed official

Committer:
mbed_official
Date:
Fri Jan 15 07:45:16 2016 +0000
Revision:
50:a417edff4437
Parent:
0:9b334a45a8ff
Child:
144:ef7eb2e8f9f7
Synchronized with git revision 6010f32619bfcbb01cc73747d4ff9040863482d9

Full URL: https://github.com/mbedmicro/mbed/commit/6010f32619bfcbb01cc73747d4ff9040863482d9/

Remove doubling of buffer size in realiseEndpoint()

Who changed what in which revision?

UserRevisionLine numberNew contents of line
bogdanm 0:9b334a45a8ff 1 /**************************************************************************//**
bogdanm 0:9b334a45a8ff 2 * @file em_int.c
bogdanm 0:9b334a45a8ff 3 * @brief Interrupt enable/disable unit API
mbed_official 50:a417edff4437 4 * @version 4.2.1
bogdanm 0:9b334a45a8ff 5 ******************************************************************************
bogdanm 0:9b334a45a8ff 6 * @section License
mbed_official 50:a417edff4437 7 * <b>(C) Copyright 2015 Silicon Labs, http://www.silabs.com</b>
bogdanm 0:9b334a45a8ff 8 *******************************************************************************
bogdanm 0:9b334a45a8ff 9 *
bogdanm 0:9b334a45a8ff 10 * Permission is granted to anyone to use this software for any purpose,
bogdanm 0:9b334a45a8ff 11 * including commercial applications, and to alter it and redistribute it
bogdanm 0:9b334a45a8ff 12 * freely, subject to the following restrictions:
bogdanm 0:9b334a45a8ff 13 *
bogdanm 0:9b334a45a8ff 14 * 1. The origin of this software must not be misrepresented; you must not
bogdanm 0:9b334a45a8ff 15 * claim that you wrote the original software.
bogdanm 0:9b334a45a8ff 16 * 2. Altered source versions must be plainly marked as such, and must not be
bogdanm 0:9b334a45a8ff 17 * misrepresented as being the original software.
bogdanm 0:9b334a45a8ff 18 * 3. This notice may not be removed or altered from any source distribution.
bogdanm 0:9b334a45a8ff 19 *
bogdanm 0:9b334a45a8ff 20 * DISCLAIMER OF WARRANTY/LIMITATION OF REMEDIES: Silicon Labs has no
bogdanm 0:9b334a45a8ff 21 * obligation to support this Software. Silicon Labs is providing the
bogdanm 0:9b334a45a8ff 22 * Software "AS IS", with no express or implied warranties of any kind,
bogdanm 0:9b334a45a8ff 23 * including, but not limited to, any implied warranties of merchantability
bogdanm 0:9b334a45a8ff 24 * or fitness for any particular purpose or warranties against infringement
bogdanm 0:9b334a45a8ff 25 * of any proprietary rights of a third party.
bogdanm 0:9b334a45a8ff 26 *
bogdanm 0:9b334a45a8ff 27 * Silicon Labs will not be liable for any consequential, incidental, or
bogdanm 0:9b334a45a8ff 28 * special damages, or any other relief, or for any claim by any third party,
bogdanm 0:9b334a45a8ff 29 * arising from your use of this Software.
bogdanm 0:9b334a45a8ff 30 *
bogdanm 0:9b334a45a8ff 31 ******************************************************************************/
bogdanm 0:9b334a45a8ff 32
bogdanm 0:9b334a45a8ff 33 #include <stdint.h>
bogdanm 0:9b334a45a8ff 34 #include "em_int.h"
bogdanm 0:9b334a45a8ff 35
bogdanm 0:9b334a45a8ff 36 /***************************************************************************//**
bogdanm 0:9b334a45a8ff 37 * @addtogroup EM_Library
bogdanm 0:9b334a45a8ff 38 * @{
bogdanm 0:9b334a45a8ff 39 ******************************************************************************/
bogdanm 0:9b334a45a8ff 40
bogdanm 0:9b334a45a8ff 41 /***************************************************************************//**
bogdanm 0:9b334a45a8ff 42 * @addtogroup INT
mbed_official 50:a417edff4437 43 * @brief Safe nesting of interrupt disable/enable API
bogdanm 0:9b334a45a8ff 44 * @{
bogdanm 0:9b334a45a8ff 45 * @details
bogdanm 0:9b334a45a8ff 46 * This module contains functions to safely disable and enable interrupts
mbed_official 50:a417edff4437 47 * at CPU level. INT_Disable() disables interrupts globally and increments a lock
mbed_official 50:a417edff4437 48 * level counter (counting semaphore). INT_Enable() decrements the lock level
mbed_official 50:a417edff4437 49 * counter and enable interrupts if the counter reaches zero.
bogdanm 0:9b334a45a8ff 50 *
mbed_official 50:a417edff4437 51 * These functions would normally be used to secure critical regions, and
mbed_official 50:a417edff4437 52 * to make sure that a critical section that calls into another critical
mbed_official 50:a417edff4437 53 * section does not unintentionally terminate the callee critical section.
bogdanm 0:9b334a45a8ff 54 *
bogdanm 0:9b334a45a8ff 55 * These functions should also be used inside interrupt handlers:
bogdanm 0:9b334a45a8ff 56 * @verbatim
bogdanm 0:9b334a45a8ff 57 * void SysTick_Handler(void)
bogdanm 0:9b334a45a8ff 58 * {
bogdanm 0:9b334a45a8ff 59 * INT_Disable();
bogdanm 0:9b334a45a8ff 60 * .
bogdanm 0:9b334a45a8ff 61 * .
bogdanm 0:9b334a45a8ff 62 * .
bogdanm 0:9b334a45a8ff 63 * INT_Enable();
bogdanm 0:9b334a45a8ff 64 * }
bogdanm 0:9b334a45a8ff 65 * @endverbatim
bogdanm 0:9b334a45a8ff 66 ******************************************************************************/
bogdanm 0:9b334a45a8ff 67
bogdanm 0:9b334a45a8ff 68 /** Interrupt lock level counter. Set to zero initially as we normally enter
bogdanm 0:9b334a45a8ff 69 * main with interrupts enabled */
bogdanm 0:9b334a45a8ff 70 uint32_t INT_LockCnt = 0;
bogdanm 0:9b334a45a8ff 71
bogdanm 0:9b334a45a8ff 72 /** @} (end addtogroup INT) */
bogdanm 0:9b334a45a8ff 73 /** @} (end addtogroup EM_Library) */