[build] Remove PyYAML dependency

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.
This commit is contained in:
Karl Palsson
2013-09-06 23:43:39 +00:00
committed by Piotr Esden-Tempski
parent b4eb8a6971
commit 5c14780403
37 changed files with 1030 additions and 994 deletions

View File

@@ -0,0 +1,38 @@
{
"_source": "The names and sequence are taken from d0001_efm32g_reference_manual.pdf table 4.1.",
"irqs": [
"dma",
"gpio_even",
"timer0",
"usart0_rx",
"usart0_tx",
"acmp01",
"adc0",
"dac0",
"i2c0",
"gpio_odd",
"timer1",
"timer2",
"usart1_rx",
"usart1_tx",
"usart2_rx",
"usart2_tx",
"uart0_rx",
"uart0_tx",
"leuart0",
"leuart1",
"letimer0",
"pcnt0",
"pcnt1",
"pcnt2",
"rtc",
"cmu",
"vcmp",
"lcd",
"msc",
"aes"
],
"partname_humanreadable": "EFM32 Gecko series",
"partname_doxygen": "EFM32G",
"includeguard": "LIBOPENCM3_EFM32G_NVIC_H"
}

View File

@@ -1,35 +0,0 @@
includeguard: LIBOPENCM3_EFM32G_NVIC_H
partname_humanreadable: EFM32 Gecko series
partname_doxygen: EFM32G
# The names and sequence are taken from d0001_efm32g_reference_manual.pdf table 4.1.
irqs:
- dma
- gpio_even
- timer0
- usart0_rx
- usart0_tx
- acmp01
- adc0
- dac0
- i2c0
- gpio_odd
- timer1
- timer2
- usart1_rx
- usart1_tx
- usart2_rx
- usart2_tx
- uart0_rx
- uart0_tx
- leuart0
- leuart1
- letimer0
- pcnt0
- pcnt1
- pcnt2
- rtc
- cmu
- vcmp
- lcd
- msc
- aes

View File

@@ -0,0 +1,46 @@
{
"_source": "The names and sequence are taken from d0053_efm32gg_refreence_manual.pdf table 4.1.",
"irqs": [
"dma",
"gpio_even",
"timer0",
"usart0_rx",
"usart0_tx",
"usb",
"acmp01",
"adc0",
"dac0",
"i2c0",
"i2c1",
"gpio_odd",
"timer1",
"timer2",
"timer3",
"usart1_rx",
"usart1_tx",
"lesense",
"usart2_rx",
"usart2_tx",
"uart0_rx",
"uart0_tx",
"uart1_rx",
"uart1_tx",
"leuart0",
"leuart1",
"letimer0",
"pcnt0",
"pcnt1",
"pcnt2",
"rtc",
"burtc",
"cmu",
"vcmp",
"lcd",
"msc",
"aes",
"ebi"
],
"partname_humanreadable": "EFM32 Giant Gecko series",
"partname_doxygen": "EFM32GG",
"includeguard": "LIBOPENCM3_EFM32GG_NVIC_H"
}

View File

@@ -1,43 +0,0 @@
includeguard: LIBOPENCM3_EFM32GG_NVIC_H
partname_humanreadable: EFM32 Giant Gecko series
partname_doxygen: EFM32GG
# The names and sequence are taken from d0053_efm32gg_refreence_manual.pdf table 4.1.
irqs:
- dma
- gpio_even
- timer0
- usart0_rx
- usart0_tx
- usb
- acmp01
- adc0
- dac0
- i2c0
- i2c1
- gpio_odd
- timer1
- timer2
- timer3
- usart1_rx
- usart1_tx
- lesense
- usart2_rx
- usart2_tx
- uart0_rx
- uart0_tx
- uart1_rx
- uart1_tx
- leuart0
- leuart1
- letimer0
- pcnt0
- pcnt1
- pcnt2
- rtc
- burtc
- cmu
- vcmp
- lcd
- msc
- aes
- ebi

View File

@@ -0,0 +1,46 @@
{
"_source": "The names and sequence are taken from d0183_efm32lg_reference_manual.pdf table 4.1.",
"irqs": [
"dma",
"gpio_even",
"timer0",
"usart0_rx",
"usart0_tx",
"usb",
"acmp01",
"adc0",
"dac0",
"i2c0",
"i2c1",
"gpio_odd",
"timer1",
"timer2",
"timer3",
"usart1_rx",
"usart1_tx",
"lesense",
"usart2_rx",
"usart2_tx",
"uart0_rx",
"uart0_tx",
"uart1_rx",
"uart1_tx",
"leuart0",
"leuart1",
"letimer0",
"pcnt0",
"pcnt1",
"pcnt2",
"rtc",
"burtc",
"cmu",
"vcmp",
"lcd",
"msc",
"aes",
"ebi"
],
"partname_humanreadable": "EFM32 Leopard Gecko series",
"partname_doxygen": "EFM32LG",
"includeguard": "LIBOPENCM3_EFM32LG_NVIC_H"
}

View File

@@ -1,43 +0,0 @@
includeguard: LIBOPENCM3_EFM32LG_NVIC_H
partname_humanreadable: EFM32 Leopard Gecko series
partname_doxygen: EFM32LG
# The names and sequence are taken from d0183_efm32lg_reference_manual.pdf table 4.1.
irqs:
- dma
- gpio_even
- timer0
- usart0_rx
- usart0_tx
- usb
- acmp01
- adc0
- dac0
- i2c0
- i2c1
- gpio_odd
- timer1
- timer2
- timer3
- usart1_rx
- usart1_tx
- lesense
- usart2_rx
- usart2_tx
- uart0_rx
- uart0_tx
- uart1_rx
- uart1_tx
- leuart0
- leuart1
- letimer0
- pcnt0
- pcnt1
- pcnt2
- rtc
- burtc
- cmu
- vcmp
- lcd
- msc
- aes
- ebi

View File

@@ -0,0 +1,31 @@
{
"_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"
}

View File

@@ -1,28 +0,0 @@
includeguard: LIBOPENCM3_EFM32TG_NVIC_H
partname_humanreadable: EFM32 Tiny Gecko series
partname_doxygen: EFM32TG
# 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