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.

Revision:
617:3b0e8f440867
Parent:
591:474d026f7d79
--- a/targets/hal/TARGET_RENESAS/TARGET_RZ_A1H/pwmout_api.c	Wed Sep 02 17:15:54 2015 +0100
+++ b/targets/hal/TARGET_RENESAS/TARGET_RZ_A1H/pwmout_api.c	Fri Sep 04 08:15:47 2015 +0100
@@ -20,6 +20,7 @@
 #include "RZ_A1_Init.h"
 #include "cpg_iodefine.h"
 #include "pwm_iodefine.h"
+#include "gpio_addrdefine.h"
 
 #define MTU2_PWM_NUM            22
 #define MTU2_PWM_SIGNAL         2
@@ -254,6 +255,11 @@
         }
         // Wire pinout
         pinmap_pinout(pin, PinMap_PWM);
+
+        int bitmask = 1 << (pin  & 0xf);
+
+        *PMSR(PINGROUP(pin)) = (bitmask << 16) | 0;
+
         // default duty 0.0f
         pwmout_write(obj, 0);
         if (init_mtu2_period_ch[obj->ch] == 0) {