cpu/samd21: add rtc periph implementation

Implementation of RTC for the SAMR21 board
It uses GCLK2 with OSC32K
Yep, true, I will edit that in a bit
Le 17 déc. 2014 12:59, "Thomas Eichinger" <notifications@github.com> a
écrit :

> In boards/samr21-xpro/include/periph_conf.h
> <https://github.com/RIOT-OS/RIOT/pull/2197#discussion-diff-21967452>:
>
> > +#define I2C_1_EN            0
> > +#define I2C_2_EN            0
> > +#define I2C_3_EN            0
> > +#define I2C_IRQ_PRIO        1
> > +
> > +#define I2C_0_DEV           SERCOM3->I2CM
> > +#define I2C_0_IRQ           SERCOM3_IRQn
> > +#define I2C_0_ISR           isr_sercom3
> > +/* I2C 0 pin configuration */
> > +#define I2C_0_PORT          (PORT->Group[0])
> > +#define I2C_SDA             PIN_PA16
> > +#define I2C_SCL             PIN_PA17
> > +#define I2C_0_PINS          (PORT_PA16 | PORT_PA17)
> > +/* Default Clock Source on reset OSC8M - 8MHz */
> > +#define I2C_0_REF_F         (8000000UL)
> > +
>
> hm, this section is already part of master
> <https://github.com/RIOT-OS/RIOT/blob/master/boards/samr21-xpro/include/periph_conf.h#L133>
> .
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/RIOT-OS/RIOT/pull/2197/files#r21967452>.
>