提交 94cb8722 编写于 作者: xuzhuoyi96's avatar xuzhuoyi96

[bsp][stm32f429-disco] Add stm32f42x GPIO index

上级 1ea925f9
......@@ -15,7 +15,7 @@ except:
print RTT_ROOT
exit(-1)
TARGET = 'rtthread-stm32f4xx.' + rtconfig.TARGET_EXT
TARGET = 'rtthread-stm32f42x.' + rtconfig.TARGET_EXT
env = Environment(tools = ['mingw'],
AS = rtconfig.AS, ASFLAGS = rtconfig.AFLAGS,
......
......@@ -86,6 +86,39 @@ static const struct pin_index pins[] =
{51, RCC_AHB1Periph_GPIOA, GPIOA, GPIO_Pin_7},
{52, RCC_AHB1Periph_GPIOB, GPIOB, GPIO_Pin_3},
{53, RCC_AHB1Periph_GPIOA, GPIOA, GPIO_Pin_4},
{54, RCC_AHB1Periph_GPIOF, GPIOF, GPIO_Pin_0},
{55, RCC_AHB1Periph_GPIOF, GPIOF, GPIO_Pin_1},
{56, RCC_AHB1Periph_GPIOF, GPIOF, GPIO_Pin_2},
{57, RCC_AHB1Periph_GPIOF, GPIOF, GPIO_Pin_3},
{58, RCC_AHB1Periph_GPIOF, GPIOF, GPIO_Pin_4},
{59, RCC_AHB1Periph_GPIOF, GPIOF, GPIO_Pin_5},
{60, RCC_AHB1Periph_GPIOF, GPIOF, GPIO_Pin_6},
{61, RCC_AHB1Periph_GPIOF, GPIOF, GPIO_Pin_7},
{62, RCC_AHB1Periph_GPIOF, GPIOF, GPIO_Pin_8},
{63, RCC_AHB1Periph_GPIOF, GPIOF, GPIO_Pin_9},
{64, RCC_AHB1Periph_GPIOF, GPIOF, GPIO_Pin_10},
{65, RCC_AHB1Periph_GPIOF, GPIOF, GPIO_Pin_11},
{66, RCC_AHB1Periph_GPIOF, GPIOF, GPIO_Pin_12},
{67, RCC_AHB1Periph_GPIOF, GPIOF, GPIO_Pin_13},
{68, RCC_AHB1Periph_GPIOF, GPIOF, GPIO_Pin_14},
{69, RCC_AHB1Periph_GPIOF, GPIOF, GPIO_Pin_15},
{70, RCC_AHB1Periph_GPIOG, GPIOG, GPIO_Pin_0},
{71, RCC_AHB1Periph_GPIOG, GPIOG, GPIO_Pin_1},
{72, RCC_AHB1Periph_GPIOG, GPIOG, GPIO_Pin_2},
{73, RCC_AHB1Periph_GPIOG, GPIOG, GPIO_Pin_3},
{74, RCC_AHB1Periph_GPIOG, GPIOG, GPIO_Pin_4},
{75, RCC_AHB1Periph_GPIOG, GPIOG, GPIO_Pin_5},
{76, RCC_AHB1Periph_GPIOG, GPIOG, GPIO_Pin_6},
{77, RCC_AHB1Periph_GPIOG, GPIOG, GPIO_Pin_7},
{78, RCC_AHB1Periph_GPIOG, GPIOG, GPIO_Pin_8},
{79, RCC_AHB1Periph_GPIOG, GPIOG, GPIO_Pin_9},
{80, RCC_AHB1Periph_GPIOG, GPIOG, GPIO_Pin_10},
{81, RCC_AHB1Periph_GPIOG, GPIOG, GPIO_Pin_11},
{82, RCC_AHB1Periph_GPIOG, GPIOG, GPIO_Pin_12},
{83, RCC_AHB1Periph_GPIOG, GPIOG, GPIO_Pin_13},
{84, RCC_AHB1Periph_GPIOG, GPIOG, GPIO_Pin_14},
{85, RCC_AHB1Periph_GPIOG, GPIOG, GPIO_Pin_15}
};
#define ITEM_NUM(items) sizeof(items)/sizeof(items[0])
......
......@@ -41,7 +41,7 @@ if PLATFORM == 'gcc':
OBJCPY = PREFIX + 'objcopy'
DEVICE = ' -mcpu=cortex-m4 -mthumb -mfpu=fpv4-sp-d16 -mfloat-abi=hard -ffunction-sections -fdata-sections'
CFLAGS = DEVICE + ' -g -Wall -DSTM32F407ZG -DSTM32F4XX -DUSE_STDPERIPH_DRIVER -D__ASSEMBLY__ -D__FPU_USED'
CFLAGS = DEVICE + ' -g -Wall -DSTM32F429ZI -DSTM32F4XX -DUSE_STDPERIPH_DRIVER -D__ASSEMBLY__ -D__FPU_USED'
AFLAGS = ' -c' + DEVICE + ' -x assembler-with-cpp -Wa,-mimplicit-it=thumb '
LFLAGS = DEVICE + ' -lm -lgcc -lc' + ' -nostartfiles -Wl,--gc-sections,-Map=rtthread-stm32.map,-cref,-u,Reset_Handler -T stm32_rom.ld'
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册