4545

Dependents:   LSS_Rev_1

Fork of mbed-dev by Umar Naeem

Revision:
153:fa9ff456f731
Parent:
149:156823d33999
diff -r 9a67f0b066fc -r fa9ff456f731 targets/TARGET_ONSEMI/TARGET_NCS36510/aes_map.h
--- a/targets/TARGET_ONSEMI/TARGET_NCS36510/aes_map.h	Thu Dec 15 11:48:27 2016 +0000
+++ b/targets/TARGET_ONSEMI/TARGET_NCS36510/aes_map.h	Tue Dec 20 17:27:56 2016 +0000
@@ -67,18 +67,19 @@
     __I uint32_t CBCo3; /**< Bits[127:96] of the 128-bit CBC result */
     union {
         struct {
-            __O uint32_t START:1; /**< start the encryption : 0 = no-effect , 1 = enable  */
-            __O uint32_t ACC_CLR:1; /**< Clear the CBC accumulator : 0 = no-effect 1 = clears the CBC accumulator */
-            __O uint32_t INT_CLEAR:1; /**<  interrupt clear : 0 = no-effect 1 = clear the interrupt  */
-            __O uint32_t KEY_LENGTH:1; /**<  Key Length: 0 = 128 Bit Encryption 1 = 256 Bit Encryption  */
+            __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;
-        __O uint32_t WORD;
+        __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;