1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
RIOT/cpu/saml1x
Benjamin Valentin fd9a247200 cpu/sam0_common: use generic exti_config
Creating an `exti_config` array for a new MCU manually is tedious and error prone.
Luckiely all information is already availiable in the vendor files.

Credit for this discovery & method goes to @Sizurka

The file was generated with

```C

int main(void) {
        puts("static const int8_t exti_config[PORT_GROUPS][32] = {");

        for (unsigned port = 1; port < 5; ++port) {
                printf("#if PORT_GROUPS >= %d\n{\n", port);
                for (unsigned pin = 0; pin < 32; ++pin) {
                        printf("#ifdef PIN_P%c%02uA_EIC_EXTINT_NUM\n", '@' + port, pin);
                        printf("    PIN_P%c%02uA_EIC_EXTINT_NUM,\n", '@' + port, pin);
                        printf("#else\n    -1,\n#endif\n");
                }
                printf("},\n#endif\n\n");
        }

        puts("};");

        return 0;
}
```

No changes in generated code are expected, but this makes adding new members
of the sam0 CPU families much easier.
2020-02-20 11:23:51 +01:00
..
include cpu/sam0_common: use generic exti_config 2020-02-20 11:23:51 +01:00
periph saml1x/pm: fix doxygen ingroup 2019-11-22 22:20:19 +01:00
cpu.c cpu/sam0: use defines for GCLK IDs 2020-02-04 21:16:54 +01:00
doc.txt cpu/saml1x: add support for saml10/saml11 MCUs 2019-01-21 17:05:04 +01:00
Makefile cpu/saml1x: add support for saml10/saml11 MCUs 2019-01-21 17:05:04 +01:00
Makefile.dep cpu/sam0_common/periph/uart: implement buffered write 2019-11-27 19:01:00 +01:00
Makefile.features cpu/cortexm: move CPU_ARCH/FAM to Makefile.features 2020-02-17 16:02:48 +01:00
Makefile.include cpu/cortexm: move CPU_ARCH/FAM to Makefile.features 2020-02-17 16:02:48 +01:00
vectors.c cpu/saml1x: add support for saml10/saml11 MCUs 2019-01-21 17:05:04 +01:00