mbed official / mbed

Dependents:   hello SerialTestv11 SerialTestv12 Sierpinski ... more

Committer:
<>
Date:
Tue Nov 08 17:28:34 2016 +0000
Revision:
129:0ab6a29f35bf
Parent:
128:9bcdf88f62b0
Release 129 of the mbed library

Ports for Upcoming Targets

3011: Add u-blox Sara-N target. https://github.com/ARMmbed/mbed-os/pull/3011
3099: MAX32625 https://github.com/ARMmbed/mbed-os/pull/3099
3151: Add support for FRDM-K82F https://github.com/ARMmbed/mbed-os/pull/3151
3177: New mcu k22512 fixing pr 3136 https://github.com/ARMmbed/mbed-os/pull/3177

Fixes and Changes

3008: NUCLEO_F072RB: Fix wrong timer channel number on pwm PB_5 pin https://github.com/ARMmbed/mbed-os/pull/3008
3013: STM32xx - Change how the ADC internal pins are checked before pinmap_ https://github.com/ARMmbed/mbed-os/pull/3013
3041: [nRF5] - added implementation of API of serial port flow control configuration. https://github.com/ARMmbed/mbed-os/pull/3041
3084: [nrf5] fix in Digital I/O : a gpioe pin was uninitialized badly https://github.com/ARMmbed/mbed-os/pull/3084
3009: TRNG enabled. TRNG APIs implemented. REV A/B/C/D flags removed. Warnings removed https://github.com/ARMmbed/mbed-os/pull/3009
3074: Target stm init gcc alignement https://github.com/ARMmbed/mbed-os/pull/3074
2988: Update of can_api.c fixing #2987 https://github.com/ARMmbed/mbed-os/pull/2988
3173: [Exporters] Add a device_name to microbit entry in targets.json https://github.com/ARMmbed/mbed-os/pull/3173
2969: [nRF52] - switch irq priorities of driver handlers to the lowest level https://github.com/ARMmbed/mbed-os/pull/2969
3184: #3183 Compiler warning in trng_api.c with K64F https://github.com/ARMmbed/mbed-os/pull/3184
3104: [NuMaker] Support CAN and fix PWM CLK error https://github.com/ARMmbed/mbed-os/pull/3104
3186: MultiTech mDot - add back SPI3 pins https://github.com/ARMmbed/mbed-os/pull/3186
3075: nsapi - Add standardized return types for size and errors https://github.com/ARMmbed/mbed-os/pull/3075
3221: u-blox odin w2 drivers update https://github.com/ARMmbed/mbed-os/pull/3221

Who changed what in which revision?

UserRevisionLine numberNew contents of line
<> 128:9bcdf88f62b0 1 /* mbed Microcontroller Library
<> 128:9bcdf88f62b0 2 *******************************************************************************
<> 128:9bcdf88f62b0 3 * Copyright (c) 2016, STMicroelectronics
<> 128:9bcdf88f62b0 4 * All rights reserved.
<> 128:9bcdf88f62b0 5 *
<> 128:9bcdf88f62b0 6 * Redistribution and use in source and binary forms, with or without
<> 128:9bcdf88f62b0 7 * modification, are permitted provided that the following conditions are met:
<> 128:9bcdf88f62b0 8 *
<> 128:9bcdf88f62b0 9 * 1. Redistributions of source code must retain the above copyright notice,
<> 128:9bcdf88f62b0 10 * this list of conditions and the following disclaimer.
<> 128:9bcdf88f62b0 11 * 2. Redistributions in binary form must reproduce the above copyright notice,
<> 128:9bcdf88f62b0 12 * this list of conditions and the following disclaimer in the documentation
<> 128:9bcdf88f62b0 13 * and/or other materials provided with the distribution.
<> 128:9bcdf88f62b0 14 * 3. Neither the name of STMicroelectronics nor the names of its contributors
<> 128:9bcdf88f62b0 15 * may be used to endorse or promote products derived from this software
<> 128:9bcdf88f62b0 16 * without specific prior written permission.
<> 128:9bcdf88f62b0 17 *
<> 128:9bcdf88f62b0 18 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
<> 128:9bcdf88f62b0 19 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
<> 128:9bcdf88f62b0 20 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
<> 128:9bcdf88f62b0 21 * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
<> 128:9bcdf88f62b0 22 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
<> 128:9bcdf88f62b0 23 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
<> 128:9bcdf88f62b0 24 * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
<> 128:9bcdf88f62b0 25 * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
<> 128:9bcdf88f62b0 26 * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
<> 128:9bcdf88f62b0 27 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
<> 128:9bcdf88f62b0 28 *******************************************************************************
<> 128:9bcdf88f62b0 29 */
<> 128:9bcdf88f62b0 30
<> 128:9bcdf88f62b0 31 #ifndef MBED_RTC_API_HAL_H
<> 128:9bcdf88f62b0 32 #define MBED_RTC_API_HAL_H
<> 128:9bcdf88f62b0 33
<> 128:9bcdf88f62b0 34 #include <stdint.h>
<> 128:9bcdf88f62b0 35 #include "rtc_api.h"
<> 128:9bcdf88f62b0 36
<> 128:9bcdf88f62b0 37 #ifdef __cplusplus
<> 128:9bcdf88f62b0 38 extern "C" {
<> 128:9bcdf88f62b0 39 #endif
<> 128:9bcdf88f62b0 40 /*
<> 128:9bcdf88f62b0 41 * Extend rtc_api.h
<> 128:9bcdf88f62b0 42 */
<> 128:9bcdf88f62b0 43
<> 128:9bcdf88f62b0 44 /** Set the given function as handler of wakeup timer event.
<> 128:9bcdf88f62b0 45 *
<> 128:9bcdf88f62b0 46 * @param handler The function to set as handler
<> 128:9bcdf88f62b0 47 */
<> 128:9bcdf88f62b0 48 void rtc_set_irq_handler(uint32_t handler);
<> 128:9bcdf88f62b0 49
<> 128:9bcdf88f62b0 50 /** Read the subsecond register.
<> 128:9bcdf88f62b0 51 *
<> 128:9bcdf88f62b0 52 * @return The remaining time as microseconds (0-999999)
<> 128:9bcdf88f62b0 53 */
<> 128:9bcdf88f62b0 54 uint32_t rtc_read_subseconds(void);
<> 128:9bcdf88f62b0 55
<> 128:9bcdf88f62b0 56 /** Program a wake up timer event in delta microseconds.
<> 128:9bcdf88f62b0 57 *
<> 128:9bcdf88f62b0 58 * @param delta The time to wait
<> 128:9bcdf88f62b0 59 */
<> 128:9bcdf88f62b0 60 void rtc_set_wake_up_timer(uint32_t delta);
<> 128:9bcdf88f62b0 61
<> 128:9bcdf88f62b0 62 /** Disable the wake up timer event.
<> 128:9bcdf88f62b0 63 *
<> 128:9bcdf88f62b0 64 * The wake up timer use auto reload, you have to deactivate it manually.
<> 128:9bcdf88f62b0 65 */
<> 128:9bcdf88f62b0 66 void rtc_deactivate_wake_up_timer(void);
<> 128:9bcdf88f62b0 67
<> 128:9bcdf88f62b0 68 /** Synchronise the RTC shadow registers.
<> 128:9bcdf88f62b0 69 *
<> 128:9bcdf88f62b0 70 * Must be called after a deepsleep.
<> 128:9bcdf88f62b0 71 */
<> 128:9bcdf88f62b0 72 void rtc_synchronize(void);
<> 128:9bcdf88f62b0 73
<> 128:9bcdf88f62b0 74
<> 128:9bcdf88f62b0 75 #ifdef __cplusplus
<> 128:9bcdf88f62b0 76 }
<> 128:9bcdf88f62b0 77 #endif
<> 128:9bcdf88f62b0 78
<> 128:9bcdf88f62b0 79 #endif