This post was last edited by 29447945 on 2017-8-3 23:08 I received the exquisite max32630 development board a long time ago, but I have only posted my first post so far. I am so ashamed... I have always been limited by the development environment and my lack of skills. I only know the keil development environment. I have tried eclipse many times but failed. I have also tried mbed, but I still cannot control it as I wish. Until today, I have received the pack installation package under keil. I must thank the forum administrator
@橙凯; he has been helping me find ways to solve the development environment problems, and he has also been working tirelessly to get this installation package for us! ! Without further ado, let's get to the point and share the process of developing max32630 under keil. First, create a new project. This is different from STM32. STM32 needs to add the official library to its own project, which is the lib library we often use, while MAX32630 can be directly selected when creating a new project. As for how to choose, you can refer to the official examples. First, GPIO initialization:
- const gpio_cfg_t LED[] = { { PORT_2, PIN_4, GPIO_FUNC_GPIO, GPIO_PAD_OPEN_DRAIN_PULLUP }, { PORT_2, PIN_5, GPIO_FUNC_GPIO, GPIO_PAD_OPEN_DRAIN_PULLUP }, { PORT_2, PIN_6, GPIO_FUNC_GPIO, GPIO_PAD_OPEN_DRAIN_PULLUP }, }; const gpio_cfg_t Key = { PORT_2, PIN_3, GPIO_FUNC_GPIO, GPIO_PAD_INPUT_PULLUP }; void GPIO_Initial(void) { GPIO_Config(&LED[0]); GPIO_Config(&LED[1]); GPIO_Config(&LED[2]); Led_Off(); GPIO_Config(&Key); }
复制代码This is similar to STM32. Just set the parameters and call the function. Upload today's program, which also includes timers and buttons.
Template.rar
(2.24 MB, downloads: 12)