nuttx/arch/arm/src/stm32h7
Pieter du Preez 00df2f0fe2 Fixed a compilation error, with irq debugging for stm32f7 and stm32h7 archs.
This commit fixes a compilation error that occurs when enabling the
following configuration items for stm32f7 and stm32h7 architectures:

   CONFIG_DEBUG_FEATURES=y
   CONFIG_DEBUG_ERROR=y
   CONFIG_DEBUG_WARN=y
   CONFIG_DEBUG_INFO=y
   CONFIG_DEBUG_IRQ=y
   CONFIG_DEBUG_IRQ_ERROR=y
   CONFIG_DEBUG_IRQ_WARN=y
   CONFIG_DEBUG_IRQ_INFO=y

The compiler error for stm32f7:

make[1]: Entering directory '/home/pdupreez/dev/wingunder/nuttx/arch/arm/src'
CC:  chip/stm32_irq.c
chip/stm32_irq.c: In function 'up_irqinitialize':
chip/stm32_irq.c:497:29: error: 'STM32_IRQ_NIRQS' undeclared (first use in this function); did you mean 'STM32_IRQ_FIRST'?
   stm32_dumpnvic("initial", STM32_IRQ_NIRQS);
                                ^~~~~~~~~~~~~~~
                             STM32_IRQ_FIRST
chip/stm32_irq.c:497:29: note: each undeclared identifier is reported only once for each function it appears in
make[1]: *** [Makefile:172: stm32_irq.o] Error 1
make[1]: Leaving directory '/home/pdupreez/dev/wingunder/nuttx/arch/arm/src'

And the compiler error for stm32h7:

make[1]: Entering directory '/home/pdupreez/dev/wingunder/nuttx/arch/arm/src'
CC:  chip/stm32_irq.c
chip/stm32_irq.c: In function 'stm32_dumpnvic':
chip/stm32_irq.c:164:4: warning: #warning Missing logic [-Wcpp]
 #  warning Missing logic
     ^~~~~~~
     chip/stm32_irq.c: In function 'up_irqinitialize':
     chip/stm32_irq.c:522:29: error: 'STM32_IRQ_NIRQS' undeclared (first use in this function); did you mean 'STM32_IRQ_CRS'?
        stm32_dumpnvic("initial", STM32_IRQ_NIRQS);
                                     ^~~~~~~~~~~~~~~
                                  STM32_IRQ_CRS
chip/stm32_irq.c:522:29: note: each undeclared identifier is reported only once for each function it appears in
make[1]: *** [Makefile:172: stm32_irq.o] Error 1
make[1]: Leaving directory '/home/pdupreez/dev/wingunder/nuttx/arch/arm/src'

This commit replaces all STM32_IRQ_NIRQS defines with the NR_IRQS
define, which seems to be consistent with the rest of the code in
Nuttx.
2020-01-05 21:24:16 +00:00
..
hardware Squashed commit of the following: 2020-01-02 12:17:16 -03:00
chip.h Rename arch/arm/src/stm32h7/chip to arch/arm/src/stm32h7/hardware. 2019-05-24 16:54:25 -06:00
Kconfig Squashed commit of the following: 2020-01-02 12:17:16 -03:00
Make.defs Squashed commit of the following: 2020-01-02 12:17:16 -03:00
stm32_adc.c arch/arm/src/stm32h7/: 2019-08-02 07:09:52 -06:00
stm32_adc.h Merged in david_s5/nuttx/master_h7 (pull request #900) 2019-06-13 19:51:12 +00:00
stm32_alarm.h Fix some typos. Also minor update to stm32f7/nucleo-144/README.txt and stm32l4/nucleo-l496zg/README.txt board documentation. 2019-09-05 08:12:50 -06:00
stm32_allocateheap.c arch/arm/src/stm32h7/stm32_allocateheap.c: Clean up some comments mangled in the last PR. 2019-11-06 13:24:33 -06:00
stm32_bbsram.c Fix wait loop and void cast (#24) 2020-01-02 10:54:43 -06:00
stm32_bbsram.h Minor updates from review of last PR. 2019-08-15 10:05:21 -06:00
stm32_dma.c Fix wait loop and void cast (#24) 2020-01-02 10:54:43 -06:00
stm32_dma.h Rename arch/arm/src/stm32h7/chip to arch/arm/src/stm32h7/hardware. 2019-05-24 16:54:25 -06:00
stm32_dtcm.c Merged in david_s5/nuttx/master_h7 (pull request #1007) 2019-08-19 20:42:52 +00:00
stm32_dtcm.h Merged in david_s5/nuttx/master_h7 (pull request #1007) 2019-08-19 20:42:52 +00:00
stm32_ethernet.c Fix wait loop and void cast (#24) 2020-01-02 10:54:43 -06:00
stm32_ethernet.h Rename arch/arm/src/stm32h7/chip to arch/arm/src/stm32h7/hardware. 2019-05-24 16:54:25 -06:00
stm32_exti_alarm.c Fix some typos. Also minor update to stm32f7/nucleo-144/README.txt and stm32l4/nucleo-l496zg/README.txt board documentation. 2019-09-05 08:12:50 -06:00
stm32_exti_gpio.c
stm32_exti_wakeup.c Merged in david_s5/nuttx/master_h7 (pull request #1002) 2019-08-17 14:01:28 +00:00
stm32_exti.h Rename arch/arm/src/stm32h7/chip to arch/arm/src/stm32h7/hardware. 2019-05-24 16:54:25 -06:00
stm32_flash.c Fix wait loop and void cast (#24) 2020-01-02 10:54:43 -06:00
stm32_fmc.c Squashed commit of the following: 2020-01-02 12:17:16 -03:00
stm32_fmc.h Squashed commit of the following: 2020-01-02 12:17:16 -03:00
stm32_gpio.c Reviewed by David Sidrane. 2019-11-18 14:03:38 -06:00
stm32_gpio.h Fix some typos. Mostly inital->initial. 2019-09-27 06:32:32 -06:00
stm32_i2c.c Fix wait loop and void cast (#24) 2020-01-02 10:54:43 -06:00
stm32_i2c.h Fix some typos 2019-09-17 10:46:23 -06:00
stm32_irq.c Fixed a compilation error, with irq debugging for stm32f7 and stm32h7 archs. 2020-01-05 21:24:16 +00:00
stm32_lowputc.c Fix typos. 2019-08-04 14:50:28 -06:00
stm32_lowputc.h
stm32_lse.c Merged in david_s5/nuttx/master_h7 (pull request #1002) 2019-08-17 14:01:28 +00:00
stm32_lsi.c Merged in david_s5/nuttx/master_h7 (pull request #1002) 2019-08-17 14:01:28 +00:00
stm32_mpuinit.c Merged in raiden00/nuttx_h7 (pull request #839) 2019-03-11 16:43:13 +00:00
stm32_mpuinit.h Merged in raiden00/nuttx_h7 (pull request #839) 2019-03-11 16:43:13 +00:00
stm32_otg.h Rename arch/arm/src/stm32h7/chip to arch/arm/src/stm32h7/hardware. 2019-05-24 16:54:25 -06:00
stm32_otgdev.c Fix wait loop and void cast (#24) 2020-01-02 10:54:43 -06:00
stm32_otghost.c Fix wait loop and void cast (#24) 2020-01-02 10:54:43 -06:00
stm32_procfs_dtcm.c Merged in david_s5/nuttx/master_h7 (pull request #1007) 2019-08-19 20:42:52 +00:00
stm32_pwm.c Fix wait loop and void cast (#24) 2020-01-02 10:54:43 -06:00
stm32_pwm.h Fix some typos. Also minor update to stm32f7/nucleo-144/README.txt and stm32l4/nucleo-l496zg/README.txt board documentation. 2019-09-05 08:12:50 -06:00
stm32_pwr.c Merged in david_s5/nuttx/master_h7 (pull request #1025) 2019-08-26 18:34:25 +00:00
stm32_pwr.h Rename arch/arm/src/stm32h7/chip to arch/arm/src/stm32h7/hardware. 2019-05-24 16:54:25 -06:00
stm32_qencoder.c Fix wait loop and void cast (#24) 2020-01-02 10:54:43 -06:00
stm32_qencoder.h arch/arm/src/stm32h7: Ported the QEncoder from F7 to H7. 2019-06-27 07:07:55 -06:00
stm32_rcc.c Reviewed by David Sidrane. 2019-11-18 14:03:38 -06:00
stm32_rcc.h Rename arch/arm/src/stm32h7/chip to arch/arm/src/stm32h7/hardware. 2019-05-24 16:54:25 -06:00
stm32_rtc_lowerhalf.c Fix wait loop and void cast (#24) 2020-01-02 10:54:43 -06:00
stm32_rtc.c Fix wait loop and void cast (#24) 2020-01-02 10:54:43 -06:00
stm32_rtc.h Merged in david_s5/nuttx/master_h7 (pull request #1002) 2019-08-17 14:01:28 +00:00
stm32_sdmmc.c Fix wait loop and void cast (#24) 2020-01-02 10:54:43 -06:00
stm32_sdmmc.h Fix use of undefined pp-token #errror, other typos. 2019-09-19 18:19:18 -06:00
stm32_serial.c Fix wait loop and void cast (#24) 2020-01-02 10:54:43 -06:00
stm32_spi.c Fix wait loop and void cast (#24) 2020-01-02 10:54:43 -06:00
stm32_spi.h Fix some typos 2019-09-17 10:46:23 -06:00
stm32_start.c arch/arm/src/stm32h7/stm32_start.c: Inclusion of nvic.h should not be conditioned on CONFIG_ARCH_FPU. 2019-04-25 07:09:19 -06:00
stm32_start.h
stm32_tim.c arch/arm/src/stm32h7/hardware/stm32_tim.h: Fix ATIM_BDTR_BK2P define 2019-10-07 21:59:28 -06:00
stm32_tim.h Rename arch/arm/src/stm32h7/chip to arch/arm/src/stm32h7/hardware. 2019-05-24 16:54:25 -06:00
stm32_timerisr.c Fix wait loop and void cast (#24) 2020-01-02 10:54:43 -06:00
stm32_uart.h Rename arch/arm/src/stm32h7/chip to arch/arm/src/stm32h7/hardware. 2019-05-24 16:54:25 -06:00
stm32_uid.c Merged in david_s5/nuttx/master_h7 (pull request #1008) 2019-08-19 22:21:11 +00:00
stm32_uid.h Merged in david_s5/nuttx/master_h7 (pull request #1008) 2019-08-19 22:21:11 +00:00
stm32_usbhost.h Merged in raiden00/nuttx_h7 (pull request #837) 2019-03-10 13:24:58 +00:00
stm32_userspace.c Merged in raiden00/nuttx_h7 (pull request #839) 2019-03-11 16:43:13 +00:00
stm32_userspace.h Merged in raiden00/nuttx_h7 (pull request #839) 2019-03-11 16:43:13 +00:00
stm32.h Squashed commit of the following: 2020-01-02 12:17:16 -03:00
stm32h7x3xx_rcc.c Merged in david_s5/nuttx/master_h7 (pull request #1058) 2019-10-22 19:49:49 +00:00
stm32h7x7xx_rcc.c Reviewed by David Sidrane. 2019-11-18 14:03:38 -06:00