On Thu, Feb 28, 2013 at 08:56:49AM +0100, Martin Sucha wrote:
>
> another option:
>
> /* Get the sysboot1 field at control_status[22,23] */
> #define AM335x_CTRL_MODULE_REG_SYSBOOT1(reg) \
> ((control_status >> 22) & 0x03)
>
> unsigned const sysboot1 =
> AM335x_CTRL_MODULE_REG_SYSBOOT1(control_status)
It's the better option, I like it.
Later today I'll convert my code to use this form.
----
Maurizio Lombardi
_______________________________________________
HelenOS-devel mailing list
[email protected]
http://lists.modry.cz/cgi-bin/listinfo/helenos-devel