[riot-notifications] [RIOT] Implemented ASM module for mc1322x MCU (#172)

Thomas Eichinger notifications at github.com
Thu Aug 22 15:46:26 CEST 2013


> +    };
> +    union {
> +        uint32_t STATUS;			///< status register
> +        struct ASM_STATUS {
> +            uint32_t : 24;
> +            uint32_t DONE: 1;		///< operation is done
> +            uint32_t TEST_PASS: 1;	///< self test did pass
> +            uint32_t : 6;
> +        } STATUS_bits;
> +    };
> +    uint32_t reserved;
> +    uint32_t CBC_MAC_0;				///< Result of MAC calculation 0:31
> +    uint32_t CBC_MAC_1;				///< Result of MAC calculation 32:63
> +    uint32_t CBC_MAC_2;				///< Result of MAC calculation 64:95
> +    uint32_t CBC_MAC_3;				///< Result of MAC calculation 96:127
> +};

Given the following usage:
```
uint32_t mac_result[4];
...
/* MAC calculation here */
...
/* read MAC results */
mac_result[0] = ASM->CBC_MAC_0;
mac_result[1] = ASM->CBC_MAC_1;
mac_result[2] = ASM->CBC_MAC_2;
mac_result[3] = ASM->CBC_MAC_3;
...
```
it is save.
Or did you mean something different?

---
Reply to this email directly or view it on GitHub:
https://github.com/RIOT-OS/RIOT/pull/172/files#r5924065
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20130822/fd57f6f4/attachment.html>


More information about the notifications mailing list