[riot-notifications] [RIOT] cpu/boards: add xmc1100 cpu & board xmc-2go (#3833)

Thomas Eichinger notifications at github.com
Mon Sep 14 16:38:44 CEST 2015


> +    if (SCU_CLK->CGATSTAT0 & SCU_CLK_CGATSTAT0_VADC_Msk) {
> +        GATING_CLEAR(VADC);
> +    }
> +
> +    VADC->CLC = 0;
> +
> +    /* An initial startup calibration is required once after a
> +     * reset. First, the converter must be enabled (ANOFF = 0B) */
> +    SHS0->SHSCFG = (1 << SHS_SHSCFG_SCWC_Pos);
> +
> +    /* See ADC_AI.003: The analog section of ADC is not fully
> +     * functioning when it is enabled by bit SHSCFG.ANOFF.
> +     * Workaround: To enable the analog section of the ADC, write
> +     * value 00000001H to register address 40010500H in addition to
> +     * the setup as mentioned above.  */
> +    *((uint32_t *)0x40010500) = 1UL;

Could we use a `#define` for this literal?

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


More information about the notifications mailing list