1. I am using ek-tm4c123gxl launchpad with 2.1.1.71.
2. I have made main.c file with following includes:
#include "tm4c123gh6pm.h"
#define PART_TM4C123GH6PM /* used for "driverlib/pin_map.h" */
#include "stdbool.h"
#include "stdint.h"
#include "extern_func.h"
#include "driverlib/sysctl.h"
#include "driverlib/gpio.h"
#include "driverlib/timer.h"
#include "driverlib/interrupt.h"
#include "driverlib/cpu.h"
#include "driverlib/uart.h"
#include "driverlib/pin_map.h"
#include "driverlib/debug.h"
#include "inc/hw_sysctl.h"
#include "inc/hw_gpio.h"
#include "inc/hw_timer.h"
#include "inc/hw_nvic.h"
#include "inc/hw_uart.h"
#include "inc/hw_flash.h"
#include "inc/hw_ints.h"
#include "inc/hw_types.h"
#include "inc/hw_memmap.h"
3. Upon building with Keil v5.13.0.0, it gives warning like below. I have shown 2 warnings only, but there are total 79 such warnings where a redfination is made.
.\TI_lib\inc/hw_flash.h(144): warning: #47-D: incompatible redefinition of macro "FLASH_FMA_OFFSET_M" (declared at line 9104 of ".\startup\tm4c123gh6pm.h")
#define FLASH_FMA_OFFSET_M 0x000FFFFF // Address Offset
.\TI_lib\inc/hw_ints.h(352): warning: #47-D: incompatible redefinition of macro "INT_ADC0SS0" (declared at line 62 of ".\startup\tm4c123gh6pm.h")
#define INT_ADC0SS0 INT_CONCAT(INT_ADC0SS0_, INT_DEVICE_CLASS)
4. If I remove #include "inc/hw_flash.h" & #include "inc/hw_ints.h" from above includes all warning goes.
But I have to include them since some files in driverlib ask for same.
5. Moreover there are incompatible redefinations. e.g
tm4c123gh6pm.h: #define FLASH_FMA_OFFSET_M 0x0003FFFF // Address Offset
hw_flash.h: #define FLASH_FMA_OFFSET_M 0x000FFFFF // Address Offset,