Formatting changes as per guidelines

pull/3318/head
Radhika 2016-11-29 16:58:33 +05:30
parent 08ae38b3a0
commit 3d23ec0904
2 changed files with 24 additions and 26 deletions

View File

@ -65,24 +65,24 @@ typedef struct {
__I uint32_t CBCo1; /**< Bits[63:32] of the 128-bit CBC result */
__I uint32_t CBCo2; /**< Bits[95:64] of the 128-bit CBC result */
__I uint32_t CBCo3; /**< Bits[127:96] of the 128-bit CBC result */
union {
struct {
__IO uint32_t START:1; /**< start the encryption : 0 = no-effect , 1 = enable */
__IO uint32_t ACC_CLR:1; /**< Clear the CBC accumulator : 0 = no-effect 1 = clears the CBC accumulator */
__IO uint32_t INT_CLEAR:1; /**< interrupt clear : 0 = no-effect 1 = clear the interrupt */
} BITS;
__IO uint32_t WORD;
} CTL;
union {
struct {
__IO uint32_t CBC_MODE:1; /**< counter mode : 0 = counter mode , 1 = CBC mode */
__IO uint32_t BYPASS:1; /**< encryption : 0 = Normal Mode , 1 = Bypasss any encryption */
__IO uint32_t INT_EN:1; /**< interrupt mask : 0 = disabled 1 = enabled */
__IO uint32_t KEY_LENGTH:1; /**< Key Length: 0 = 128 Bit Encryption 1 = 256 Bit Encryption */
union {
struct {
__IO uint32_t START:1; /**< start the encryption : 0 = no-effect , 1 = enable */
__IO uint32_t ACC_CLR:1; /**< Clear the CBC accumulator : 0 = no-effect 1 = clears the CBC accumulator */
__IO uint32_t INT_CLEAR:1; /**< interrupt clear : 0 = no-effect 1 = clear the interrupt */
} BITS;
__IO uint32_t WORD;
} CTL;
union {
struct {
__IO uint32_t CBC_MODE:1; /**< counter mode : 0 = counter mode , 1 = CBC mode */
__IO uint32_t BYPASS:1; /**< encryption : 0 = Normal Mode , 1 = Bypasss any encryption */
__IO uint32_t INT_EN:1; /**< interrupt mask : 0 = disabled 1 = enabled */
__IO uint32_t KEY_LENGTH:1; /**< Key Length: 0 = 128 Bit Encryption 1 = 256 Bit Encryption */
} BITS;
__IO uint32_t WORD;
} MODE;
} BITS;
__IO uint32_t WORD;
} MODE;
union {
struct {
__I uint32_t COMPLETE:1;/**< status : 0 = not complete , 1 = complete */

View File

@ -50,16 +50,14 @@ typedef struct {
__O uint32_t PWM_DISABLE;
__O uint32_t PRESCALE_ENABLE;
__O uint32_t PRESCALE_DISABLE;
union
{
struct
{
__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. */
union {
struct {
__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;
__I uint32_t WORD;
}READ_CONFIG_STATUS;
} BITS;
__I uint32_t WORD;
} READ_CONFIG_STATUS;
} PwmReg_t, *PwmReg_pt;
#endif /* PWM_MAP_H_ */