This converts all the YAML files to JSON files, as json parsing is built into python instead of being a separate library requiring installation. YAML is a superset of JSON, but putting comments in is not quite as obvious as it is in yaml. The following glue was used to convert yaml to json: python -c 'import sys, yaml, json; json.dump(yaml.load(sys.stdin), sys.stdout, indent=4)' < $1 > $2 Clearly I haven't tested this on every single platform, and this doesn't address the large blobs of yaml in the lpc4300 scripts directory, only the cortex NVIC generation process. I've tested a few IRQ driven example apps, and I've checked the generated output of some known cases like the LM3s that has explicit gaps, and they are all generated correctly.
32 lines
699 B
JSON
32 lines
699 B
JSON
{
|
|
"_source": "The names and sequence are taken from d0034_efm32tg_reference_manual.pdf table 4.1.",
|
|
"irqs": [
|
|
"dma",
|
|
"gpio_even",
|
|
"timer0",
|
|
"usart0_rx",
|
|
"usart0_tx",
|
|
"acmp01",
|
|
"adc0",
|
|
"dac0",
|
|
"i2c0",
|
|
"gpio_odd",
|
|
"timer1",
|
|
"usart1_rx",
|
|
"usart1_tx",
|
|
"lesense",
|
|
"leuart0",
|
|
"letimer0",
|
|
"pcnt0",
|
|
"rtc",
|
|
"cmu",
|
|
"vcmp",
|
|
"lcd",
|
|
"msc",
|
|
"aes"
|
|
],
|
|
"partname_humanreadable": "EFM32 Tiny Gecko series",
|
|
"partname_doxygen": "EFM32TG",
|
|
"includeguard": "LIBOPENCM3_EFM32TG_NVIC_H"
|
|
}
|