mbed library sources. Supersedes mbed-src. Add PORTG support for STM32L476JG (SensorTile kit)

Dependents:   SensorTileTest

Fork of mbed-dev by mbed official

Revision:
153:fa9ff456f731
Parent:
149:156823d33999
--- a/targets/TARGET_ONSEMI/TARGET_NCS36510/pwmout_api.c	Thu Dec 15 11:48:27 2016 +0000
+++ b/targets/TARGET_ONSEMI/TARGET_NCS36510/pwmout_api.c	Tue Dec 20 17:27:56 2016 +0000
@@ -61,7 +61,7 @@
     obj->pwmReg->DUTYCYCLE = 0x80;
 
     /* Write the PWM output enable register 0x4000B004, to 1 */
-    obj->pwmReg->PWM_ENABLE.WORD = 0x1;
+    obj->pwmReg->PWM_ENABLE = 0x1;
 
     obj->pwmReg->PRESCALE_DISABLE = 0x1;
 
@@ -190,7 +190,7 @@
     }
     /* If pulsewidth is less than 128uSec, set the prescaler to 4096
      * by enabling prescale register 0x4000B00C to 1 */
-    obj->pwmReg->PRESCALE_ENABLE.WORD = 0x1;
+    obj->pwmReg->PRESCALE_ENABLE = 0x1;
 
     /* Calculate the duty cycle based on the width of the pulse */
     /* ((255 * us) / 128) + 1 = duty cycle */