Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: Nucleo_L432KC_Quadrature_Decoder_with_ADC_and_DAC
Fork of mbed-dev by
Diff: targets/TARGET_ONSEMI/TARGET_NCS36510/pwm_map.h
- Revision:
- 153:fa9ff456f731
- Parent:
- 150:02e0a0aed4ec
--- a/targets/TARGET_ONSEMI/TARGET_NCS36510/pwm_map.h Thu Dec 15 11:48:27 2016 +0000
+++ b/targets/TARGET_ONSEMI/TARGET_NCS36510/pwm_map.h Tue Dec 20 17:27:56 2016 +0000
@@ -45,24 +45,19 @@
/** Power management Control HW Structure Overlay */
typedef struct {
- __IO uint32_t DUTYCYCLE;
+ __O uint32_t DUTYCYCLE;
+ __O uint32_t PWM_ENABLE;
+ __O uint32_t PWM_DISABLE;
+ __O uint32_t PRESCALE_ENABLE;
+ __O uint32_t PRESCALE_DISABLE;
union {
struct {
- __O uint32_t ENABLE :8; /**< Write any value to enable PWM output */
- __I uint32_t PAD :1; /** < Pad */
- __I uint32_t ENABLE_STATE :1; /**< Current state of pwmEnable configuration bit. 1 PWM output is enabled. 0 PWN output is disabled. */
- __I uint32_t OUTPUT_STATE :1; /**< Current state of PWM output */
+ __I uint32_t CUR_DUTY_CYCLE_VALUE : 8; /** Curent value of duty Cycle */
+ __I uint32_t CUR_PRE_SCALER_STATE : 1; /** Current state of the prescaler. 1 the prescaler is enabled. 0 the prescaler is disabled. */
+ __I uint32_t CUR_PWM_ENABLE_STATE : 1; /** Current state of the PWM. 1 the PWM is enabled. 0 the PWM is disabled. */
+ __I uint32_t CUR_PWM_OUTPUT_STATE : 1; /** Current state of PWM output */
} BITS;
- __IO uint32_t WORD;
- } PWM_ENABLE;
- __O uint32_t PWM_DISABLE;
- union {
- struct {
- __O uint32_t ENABLE :8; /**< Write any value to select enable the 4-bit prescaler */
- __I uint32_t STATE:1; /**< Current state of the prescaler. 1 the prescaler is enabled. 0 the prescaler is disabled. */
- } BITS;
- __IO uint32_t WORD;
- } PRESCALE_ENABLE;
- __O uint32_t PRESCALE_DISABLE;
+ __I uint32_t WORD;
+ } READ_CONFIG_STATUS;
} PwmReg_t, *PwmReg_pt;
#endif /* PWM_MAP_H_ */
