Skip to content

Commit 3d23ec0

Browse files
Formatting changes as per guidelines
1 parent 08ae38b commit 3d23ec0

File tree

2 files changed

+24
-26
lines changed

2 files changed

+24
-26
lines changed

targets/TARGET_ONSEMI/TARGET_NCS36510/aes_map.h

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -65,24 +65,24 @@ typedef struct {
6565
__I uint32_t CBCo1; /**< Bits[63:32] of the 128-bit CBC result */
6666
__I uint32_t CBCo2; /**< Bits[95:64] of the 128-bit CBC result */
6767
__I uint32_t CBCo3; /**< Bits[127:96] of the 128-bit CBC result */
68-
union {
69-
struct {
70-
__IO uint32_t START:1; /**< start the encryption : 0 = no-effect , 1 = enable */
71-
__IO uint32_t ACC_CLR:1; /**< Clear the CBC accumulator : 0 = no-effect 1 = clears the CBC accumulator */
72-
__IO uint32_t INT_CLEAR:1; /**< interrupt clear : 0 = no-effect 1 = clear the interrupt */
73-
} BITS;
74-
__IO uint32_t WORD;
75-
} CTL;
76-
union {
77-
struct {
78-
__IO uint32_t CBC_MODE:1; /**< counter mode : 0 = counter mode , 1 = CBC mode */
79-
__IO uint32_t BYPASS:1; /**< encryption : 0 = Normal Mode , 1 = Bypasss any encryption */
80-
__IO uint32_t INT_EN:1; /**< interrupt mask : 0 = disabled 1 = enabled */
81-
__IO uint32_t KEY_LENGTH:1; /**< Key Length: 0 = 128 Bit Encryption 1 = 256 Bit Encryption */
68+
union {
69+
struct {
70+
__IO uint32_t START:1; /**< start the encryption : 0 = no-effect , 1 = enable */
71+
__IO uint32_t ACC_CLR:1; /**< Clear the CBC accumulator : 0 = no-effect 1 = clears the CBC accumulator */
72+
__IO uint32_t INT_CLEAR:1; /**< interrupt clear : 0 = no-effect 1 = clear the interrupt */
73+
} BITS;
74+
__IO uint32_t WORD;
75+
} CTL;
76+
union {
77+
struct {
78+
__IO uint32_t CBC_MODE:1; /**< counter mode : 0 = counter mode , 1 = CBC mode */
79+
__IO uint32_t BYPASS:1; /**< encryption : 0 = Normal Mode , 1 = Bypasss any encryption */
80+
__IO uint32_t INT_EN:1; /**< interrupt mask : 0 = disabled 1 = enabled */
81+
__IO uint32_t KEY_LENGTH:1; /**< Key Length: 0 = 128 Bit Encryption 1 = 256 Bit Encryption */
8282

83-
} BITS;
84-
__IO uint32_t WORD;
85-
} MODE;
83+
} BITS;
84+
__IO uint32_t WORD;
85+
} MODE;
8686
union {
8787
struct {
8888
__I uint32_t COMPLETE:1;/**< status : 0 = not complete , 1 = complete */

targets/TARGET_ONSEMI/TARGET_NCS36510/pwm_map.h

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -50,16 +50,14 @@ typedef struct {
5050
__O uint32_t PWM_DISABLE;
5151
__O uint32_t PRESCALE_ENABLE;
5252
__O uint32_t PRESCALE_DISABLE;
53-
union
54-
{
55-
struct
56-
{
57-
__I uint32_t CUR_DUTY_CYCLE_VALUE : 8; /** Curent value of duty Cycle */
58-
__I uint32_t CUR_PRE_SCALER_STATE : 1; /** Current state of the prescaler. ‘1’ the prescaler is enabled. ‘0’ the prescaler is disabled. */
53+
union {
54+
struct {
55+
__I uint32_t CUR_DUTY_CYCLE_VALUE : 8; /** Curent value of duty Cycle */
56+
__I uint32_t CUR_PRE_SCALER_STATE : 1; /** Current state of the prescaler. ‘1’ the prescaler is enabled. ‘0’ the prescaler is disabled. */
5957
__I uint32_t CUR_PWM_ENABLE_STATE : 1; /** Current state of the PWM. ‘1’ the PWM is enabled. ‘0’ the PWM is disabled. */
6058
__I uint32_t CUR_PWM_OUTPUT_STATE : 1; /** Current state of PWM output */
61-
}BITS;
62-
__I uint32_t WORD;
63-
}READ_CONFIG_STATUS;
59+
} BITS;
60+
__I uint32_t WORD;
61+
} READ_CONFIG_STATUS;
6462
} PwmReg_t, *PwmReg_pt;
6563
#endif /* PWM_MAP_H_ */

0 commit comments

Comments
 (0)