Joel Sherrill created an issue: 
https://gitlab.rtems.org/rtems/rtos/rtems/-/issues/5293



## Summary

When compiling lpc1768_mbed_ahb_ram_eth and other variants, this warning is 
generated:

```
[  77/3771] Compiling bsps/shared/start/bspfatal-default.c
In file included from ../../../bsps/arm/lpc176x/start/adc.c:20:
../../../bsps/arm/lpc176x/include/bsp/adc-defs.h:65:9: warning: 'ADC_DR_VALUE' 
redefined
   65 | #define ADC_DR_VALUE( reg ) BSP_FLD32GET( reg, 4, 15 )
      |         ^~~~~~~~~~~~
In file included from ../../../bsps/arm/lpc176x/include/bsp/io-defs.h:25,
                 from ../../../bsps/arm/lpc176x/include/bsp/io.h:27,
                 from ../../../bsps/arm/lpc176x/include/bsp/adc-defs.h:22:
../../../bsps/arm/lpc176x/include/bsp/lpc176x.h:1576:9: note: this is the 
location of the previous definition
 1576 | #define ADC_DR_VALUE( reg ) BSP_FLD32GET( reg, 6, 15 )
      |         ^~~~~~~~~~~~
```

These macros have different definitions so it isn't a simple matter of 
eliminating one or protecting one.

## Steps to reproduce
Build.

### Pre-set options

-- 
View it on GitLab: https://gitlab.rtems.org/rtems/rtos/rtems/-/issues/5293
You're receiving this email because of your account on gitlab.rtems.org.


_______________________________________________
bugs mailing list
bugs@rtems.org
http://lists.rtems.org/mailman/listinfo/bugs

Reply via email to