ok gbulmer ,i tried what u suggested and created a separate folder for these inside the core of maple..
but i got the same errors as before..
and i also went to the line 1101 ,1102,1103,1104 of stm32f10x.h (because the errors pointed to those lines) where some definitions were made and commented them
:
(
#define AFIO_BASE (APB2PERIPH_BASE + 0x0000)
#define EXTI_BASE (APB2PERIPH_BASE + 0x0400)
//#define GPIOA_BASE (APB2PERIPH_BASE + 0x0800)
//#define GPIOB_BASE (APB2PERIPH_BASE + 0x0C00)
//#define GPIOC_BASE (APB2PERIPH_BASE + 0x1000)
//#define GPIOD_BASE (APB2PERIPH_BASE + 0x1400)
#define GPIOE_BASE (APB2PERIPH_BASE + 0x1800)
#define GPIOF_BASE (APB2PERIPH_BASE + 0x1C00)
#define GPIOG_BASE (APB2PERIPH_BASE + 0x2000)
#define ADC1_BASE (APB2PERIPH_BASE + 0x2400)
#define ADC2_BASE (APB2PERIPH_BASE + 0x2800)
)
and when i compile i get errors like these
(
C:\Users\lastvirus\Desktop\maple-ide-0.0.6\hardware\leaflabs\cores\maple\stm32f\stm32f10x_gpio.c: In function 'GPIO_DeInit':
C:\Users\lastvirus\Desktop\maple-ide-0.0.6\hardware\leaflabs\cores\maple\stm32f\stm32f10x_gpio.c:110: error: 'GPIOA_BASE' undeclared (first use in this function)
C:\Users\lastvirus\Desktop\maple-ide-0.0.6\hardware\leaflabs\cores\maple\stm32f\stm32f10x_gpio.c:110: error: (Each undeclared identifier is reported only once
C:\Users\lastvirus\Desktop\maple-ide-0.0.6\hardware\leaflabs\cores\maple\stm32f\stm32f10x_gpio.c:110: error: for each function it appears in.)
C:\Users\lastvirus\Desktop\maple-ide-0.0.6\hardware\leaflabs\cores\maple\stm32f\stm32f10x_gpio.c:110: error: 'GPIOB_BASE' undeclared (first use in this function)
C:\Users\lastvirus\Desktop\maple-ide-0.0.6\hardware\leaflabs\cores\maple\stm32f\stm32f10x_gpio.c:110: error: 'GPIOC_BASE' undeclared (first use in this function)
C:\Users\lastvirus\Desktop\maple-ide-0.0.6\hardware\leaflabs\cores\maple\stm32f\stm32f10x_gpio.c:110: error: 'GPIOD_BASE' undeclared (first use in this function)
C:\Users\lastvirus\Desktop\maple-ide-0.0.6\hardware\leaflabs\cores\maple\stm32f\stm32f10x_gpio.c: In function 'GPIO_Init':
C:\Users\lastvirus\Desktop\maple-ide-0.0.6\hardware\leaflabs\cores\maple\stm32f\stm32f10x_gpio.c:177: error: 'GPIOA_BASE' undeclared (first use in this function)
C:\Users\lastvirus\Desktop\maple-ide-0.0.6\hardware\leaflabs\cores\maple\stm32f\stm32f10x_gpio.c:177: error: 'GPIOB_BASE' undeclared (first use in this function)
C:\Users\lastvirus\Desktop\maple-ide-0.0.6\hardware\leaflabs\cores\maple\stm32f\stm32f10x_gpio.c:177: error: 'GPIOC_BASE' undeclared (first use in this function)
C:\Users\lastvirus\Desktop\maple-ide-0.0.6\hardware\leaflabs\cores\maple\stm32f\stm32f10x_gpio.c:177: error: 'GPIOD_BASE' undeclared (first use in this function)
C:\Users\lastvirus\Desktop\maple-ide-0.0.6\hardware\leaflabs\cores\maple\stm32f\stm32f10x_gpio.c: In function 'GPIO_ReadInputDataBit':
C:\Users\lastvirus\Desktop\maple-ide-0.0.6\hardware\leaflabs\cores\maple\stm32f\stm32f10x_gpio.c:285: error: 'GPIOA_BASE' undeclared (first use in this function)
C:\Users\lastvirus\Desktop\maple-ide-0.0.6\hardware\leaflabs\cores\maple\stm32f\stm32f10x_gpio.c:285: error: 'GPIOB_BASE' undeclared (first use in this function)
C:\Users\lastvirus\Desktop\maple-ide-0.0.6\hardware\leaflabs\cores\maple\stm32f\stm32f10x_gpio.c:285: error: 'GPIOC_BASE' undeclared (first use in this function)
C:\Users\lastvirus\Desktop\maple-ide-0.0.6\hardware\leaflabs\cores\maple\stm32f\stm32f10x_gpio.c:285: error: 'GPIOD_BASE' undeclared (first use in this function)
C:\Users\lastvirus\Desktop\maple-ide-0.0.6\hardware\leaflabs\cores\maple\stm32f\stm32f10x_gpio.c: In function 'GPIO_ReadInputData':
C:\Users\lastvirus\Desktop\maple-ide-0.0.6\hardware\leaflabs\cores\maple\stm32f\stm32f10x_gpio.c:307: error: 'GPIOA_BASE' undeclared (first use in this function)
C:\Users\lastvirus\Desktop\maple-ide-0.0.6\hardware\leaflabs\cores\maple\stm32f\stm32f10x_gpio.c:307: error: 'GPIOB_BASE' undeclared (first use in this function)
C:\Users\lastvirus\Desktop\maple-ide-0.0.6\hardware\leaflabs\cores\maple\stm32f\stm32f10x_gpio.c:307: error: 'GPIOC_BASE' undeclared (first use in this function)
C:\Users\lastvirus\Desktop\maple-ide-0.0.6\hardware\leaflabs\cores\maple\stm32f\stm32f10x_gpio.c:307: error: 'GPIOD_BASE' undeclared (first use in this function)
C:\Users\lastvirus\Desktop\maple-ide-0.0.6\hardware\leaflabs\cores\maple\stm32f\stm32f10x_gpio.c: In function 'GPIO_ReadOutputDataBit':
C:\Users\lastvirus\Desktop\maple-ide-0.0.6\hardware\leaflabs\cores\maple\stm32f\stm32f10x_gpio.c:323: error: 'GPIOA_BASE' undeclared (first use in this function)
C:\Users\lastvirus\Desktop\maple-ide-0.0.6\hardware\leaflabs\cores\maple\stm32f\stm32f10x_gpio.c:323: error: 'GPIOB_BASE' undeclared (first use in this function)
C:\Users\lastvirus\Desktop\maple-ide-0.0.6\hardware\leaflabs\cores\maple\stm32f\stm32f10x_gpio.c:323: error: 'GPIOC_BASE' undeclared (first use in this function)
C:\Users\lastvirus\Desktop\maple-ide-0.0.6\hardware\leaflabs\cores\maple\stm32f\stm32f10x_gpio.c:323: error: 'GPIOD_BASE' undeclared (first use in this function)
C:\Users\lastvirus\Desktop\maple-ide-0.0.6\hardware\leaflabs\cores\maple\stm32f\stm32f10x_gpio.c: In function 'GPIO_ReadOutputData':
C:\Users\lastvirus\Desktop\maple-ide-0.0.6\hardware\leaflabs\cores\maple\stm32f\stm32f10x_gpio.c:345: error: 'GPIOA_BASE' undeclared (first use in this function)
C:\Users\lastvirus\Desktop\maple-ide-0.0.6\hardware\leaflabs\cores\maple\stm32f\stm32f10x_gpio.c:345: error: 'GPIOB_BASE' undeclared (first use in this function)
C:\Users\lastvirus\Desktop\maple-ide-0.0.6\hardware\leaflabs\cores\maple\stm32f\stm32f10x_gpio.c:345: error: 'GPIOC_BASE' undeclared (first use in this function)
C:\Users\lastvirus\Desktop\maple-ide-0.0.6\hardware\leaflabs\cores\maple\stm32f\stm32f10x_gpio.c:345: error: 'GPIOD_BASE' undeclared (first use in this function)
C:\Users\lastvirus\Desktop\maple-ide-0.0.6\hardware\leaflabs\cores\maple\stm32f\stm32f10x_gpio.c: In function 'GPIO_SetBits':
C:\Users\lastvirus\Desktop\maple-ide-0.0.6\hardware\leaflabs\cores\maple\stm32f\stm32f10x_gpio.c:360: error: 'GPIOA_BASE' undeclared (first use in this function)
C:\Users\lastvirus\Desktop\maple-ide-0.0.6\hardware\leaflabs\cores\maple\stm32f\stm32f10x_gpio.c:360: error: 'GPIOB_BASE' undeclared (first use in this function)
C:\Users\lastvirus\Desktop\maple-ide-0.0.6\hardware\leaflabs\cores\maple\stm32f\stm32f10x_gpio.c:360: error: 'GPIOC_BASE' undeclared (first use in this function)
C:\Users\lastvirus\Desktop\maple-ide-0.0.6\hardware\leaflabs\cores\maple\stm32f\stm32f10x_gpio.c:360: error: 'GPIOD_BASE' undeclared (first use in this function)
C:\Users\lastvirus\Desktop\maple-ide-0.0.6\hardware\leaflabs\cores\maple\stm32f\stm32f10x_gpio.c: In function 'GPIO_ResetBits':
C:\Users\lastvirus\Desktop\maple-ide-0.0.6\hardware\leaflabs\cores\maple\stm32f\stm32f10x_gpio.c:376: error: 'GPIOA_BASE' undeclared (first use in this function)
C:\Users\lastvirus\Desktop\maple-ide-0.0.6\hardware\leaflabs\cores\maple\stm32f\stm32f10x_gpio.c:376: error: 'GPIOB_BASE' undeclared (first use in this function)
C:\Users\lastvirus\Desktop\maple-ide-0.0.6\hardware\leaflabs\cores\maple\stm32f\stm32f10x_gpio.c:376: error: 'GPIOC_BASE' undeclared (first use in this function)
C:\Users\lastvirus\Desktop\maple-ide-0.0.6\hardware\leaflabs\cores\maple\stm32f\stm32f10x_gpio.c:376: error: 'GPIOD_BASE' undeclared (first use in this function)
C:\Users\lastvirus\Desktop\maple-ide-0.0.6\hardware\leaflabs\cores\maple\stm32f\stm32f10x_gpio.c: In function 'GPIO_WriteBit':
C:\Users\lastvirus\Desktop\maple-ide-0.0.6\hardware\leaflabs\cores\maple\stm32f\stm32f10x_gpio.c:396: error: 'GPIOA_BASE' undeclared (first use in this function)
C:\Users\lastvirus\Desktop\maple-ide-0.0.6\hardware\leaflabs\cores\maple\stm32f\stm32f10x_gpio.c:396: error: 'GPIOB_BASE' undeclared (first use in this function)
C:\Users\lastvirus\Desktop\maple-ide-0.0.6\hardware\leaflabs\cores\maple\stm32f\stm32f10x_gpio.c:396: error: 'GPIOC_BASE' undeclared (first use in this function)
C:\Users\lastvirus\Desktop\maple-ide-0.0.6\hardware\leaflabs\cores\maple\stm32f\stm32f10x_gpio.c:396: error: 'GPIOD_BASE' undeclared (first use in this function)
C:\Users\lastvirus\Desktop\maple-ide-0.0.6\hardware\leaflabs\cores\maple\stm32f\stm32f10x_gpio.c: In function 'GPIO_Write':
C:\Users\lastvirus\Desktop\maple-ide-0.0.6\hardware\leaflabs\cores\maple\stm32f\stm32f10x_gpio.c:419: error: 'GPIOA_BASE' undeclared (first use in this function)
C:\Users\lastvirus\Desktop\maple-ide-0.0.6\hardware\leaflabs\cores\maple\stm32f\stm32f10x_gpio.c:419: error: 'GPIOB_BASE' undeclared (first use in this function)
C:\Users\lastvirus\Desktop\maple-ide-0.0.6\hardware\leaflabs\cores\maple\stm32f\stm32f10x_gpio.c:419: error: 'GPIOC_BASE' undeclared (first use in this function)
C:\Users\lastvirus\Desktop\maple-ide-0.0.6\hardware\leaflabs\cores\maple\stm32f\stm32f10x_gpio.c:419: error: 'GPIOD_BASE' undeclared (first use in this function)
C:\Users\lastvirus\Desktop\maple-ide-0.0.6\hardware\leaflabs\cores\maple\stm32f\stm32f10x_gpio.c: In function 'GPIO_PinLockConfig':
C:\Users\lastvirus\Desktop\maple-ide-0.0.6\hardware\leaflabs\cores\maple\stm32f\stm32f10x_gpio.c:436: error: 'GPIOA_BASE' undeclared (first use in this function)
C:\Users\lastvirus\Desktop\maple-ide-0.0.6\hardware\leaflabs\cores\maple\stm32f\stm32f10x_gpio.c:436: error: 'GPIOB_BASE' undeclared (first use in this function)
C:\Users\lastvirus\Desktop\maple-ide-0.0.6\hardware\leaflabs\cores\maple\stm32f\stm32f10x_gpio.c:436: error: 'GPIOC_BASE' undeclared (first use in this function)
C:\Users\lastvirus\Desktop\maple-ide-0.0.6\hardware\leaflabs\cores\maple\stm32f\stm32f10x_gpio.c:436: error: 'GPIOD_BASE' undeclared (first use in this function)
)
which clearly arise due to my exclusion of those definitions.
either way im stuck up,, any ideas to tackle this would be appreciated.
thank you