added prescaler for 16 bit pwm in LPC1347 target

Fork of mbed-dev by mbed official

Committer:
<>
Date:
Fri Sep 02 15:07:44 2016 +0100
Revision:
144:ef7eb2e8f9f7
This updates the lib to the mbed lib v125

Who changed what in which revision?

UserRevisionLine numberNew contents of line
<> 144:ef7eb2e8f9f7 1 /**
<> 144:ef7eb2e8f9f7 2 ******************************************************************************
<> 144:ef7eb2e8f9f7 3 * @file assert.h
<> 144:ef7eb2e8f9f7 4 * @brief Defines an assertion for debugging purposes.
<> 144:ef7eb2e8f9f7 5 * @internal
<> 144:ef7eb2e8f9f7 6 * @author ON Semiconductor
<> 144:ef7eb2e8f9f7 7 * $Rev: 3823 $
<> 144:ef7eb2e8f9f7 8 * $Date: 2015-10-23 16:21:37 +0530 (Fri, 23 Oct 2015) $
<> 144:ef7eb2e8f9f7 9 ******************************************************************************
<> 144:ef7eb2e8f9f7 10 * @copyright (c) 2012 ON Semiconductor. All rights reserved.
<> 144:ef7eb2e8f9f7 11 * ON Semiconductor is supplying this software for use with ON Semiconductor
<> 144:ef7eb2e8f9f7 12 * processor based microcontrollers only.
<> 144:ef7eb2e8f9f7 13 *
<> 144:ef7eb2e8f9f7 14 * THIS SOFTWARE IS PROVIDED "AS IS". NO WARRANTIES, WHETHER EXPRESS, IMPLIED
<> 144:ef7eb2e8f9f7 15 * OR STATUTORY, INCLUDING, BUT NOT LIMITED TO, IMPLIED WARRANTIES OF
<> 144:ef7eb2e8f9f7 16 * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE APPLY TO THIS SOFTWARE.
<> 144:ef7eb2e8f9f7 17 * ON SEMICONDUCTOR SHALL NOT, IN ANY CIRCUMSTANCES, BE LIABLE FOR SPECIAL,
<> 144:ef7eb2e8f9f7 18 * INCIDENTAL, OR CONSEQUENTIAL DAMAGES, FOR ANY REASON WHATSOEVER.
<> 144:ef7eb2e8f9f7 19 * @endinternal
<> 144:ef7eb2e8f9f7 20 *
<> 144:ef7eb2e8f9f7 21 * @details
<> 144:ef7eb2e8f9f7 22 * While debugging, the ASSERT macro can be used to verify the expected behaviour
<> 144:ef7eb2e8f9f7 23 * of the source code. If the condition that is passed as a parameter to the ASSERT
<> 144:ef7eb2e8f9f7 24 * macro evaluates to False, execution stops.
<> 144:ef7eb2e8f9f7 25 *
<> 144:ef7eb2e8f9f7 26 * The user has the possibility to hook into the assertion through the assertCallback
<> 144:ef7eb2e8f9f7 27 * callback function. Note though that the callback function must not use any
<> 144:ef7eb2e8f9f7 28 * functionality of the RTOS, or rely on interrupts being called. Once the function
<> 144:ef7eb2e8f9f7 29 * returns, it's done.
<> 144:ef7eb2e8f9f7 30 *
<> 144:ef7eb2e8f9f7 31 * @ingroup debug
<> 144:ef7eb2e8f9f7 32 */
<> 144:ef7eb2e8f9f7 33
<> 144:ef7eb2e8f9f7 34 #ifndef ASSERT_H_
<> 144:ef7eb2e8f9f7 35 #define ASSERT_H_
<> 144:ef7eb2e8f9f7 36
<> 144:ef7eb2e8f9f7 37 #ifdef __cplusplus
<> 144:ef7eb2e8f9f7 38 extern "C" {
<> 144:ef7eb2e8f9f7 39 #endif
<> 144:ef7eb2e8f9f7 40
<> 144:ef7eb2e8f9f7 41 #ifdef DEBUG
<> 144:ef7eb2e8f9f7 42
<> 144:ef7eb2e8f9f7 43 /** Executes when an assertion condition evaluates to false.
<> 144:ef7eb2e8f9f7 44 * @param filename The name of the current file (normally the __FILE__ macro).
<> 144:ef7eb2e8f9f7 45 * @param line The current line number (normally the __LINE__ macro).
<> 144:ef7eb2e8f9f7 46 */
<> 144:ef7eb2e8f9f7 47 void fOnAssert(const char *filename, unsigned int line);
<> 144:ef7eb2e8f9f7 48
<> 144:ef7eb2e8f9f7 49 /** Can be assigned to hook into the assertion. */
<> 144:ef7eb2e8f9f7 50 extern void (*assertCallback)(const char *filename, unsigned int line);
<> 144:ef7eb2e8f9f7 51
<> 144:ef7eb2e8f9f7 52 #define ASSERT(test) ((test) ? (void)0 : fOnAssert(__FILE__, __LINE__))
<> 144:ef7eb2e8f9f7 53
<> 144:ef7eb2e8f9f7 54 #define VERIFY(test) ASSERT(test)
<> 144:ef7eb2e8f9f7 55
<> 144:ef7eb2e8f9f7 56 #else
<> 144:ef7eb2e8f9f7 57
<> 144:ef7eb2e8f9f7 58 #define ASSERT(test) ((test) ? (void)0 : 1)
<> 144:ef7eb2e8f9f7 59
<> 144:ef7eb2e8f9f7 60 #define VERIFY(test) ((void)(test))
<> 144:ef7eb2e8f9f7 61
<> 144:ef7eb2e8f9f7 62 #endif // DEBUG
<> 144:ef7eb2e8f9f7 63
<> 144:ef7eb2e8f9f7 64 #ifdef __cplusplus
<> 144:ef7eb2e8f9f7 65 }
<> 144:ef7eb2e8f9f7 66 #endif
<> 144:ef7eb2e8f9f7 67
<> 144:ef7eb2e8f9f7 68 #endif /* ASSERT_H_ */