2166 views|1 replies

648

Posts

8

Resources
The OP

Max32630 (I) - Late lighting [Copy link]

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:
  1. 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)



This post is from DIY/Open Source Hardware

Latest reply

{:1_144:}Come on~  Details Published on 2017-8-4 08:35

437

Posts

3

Resources
2
{:1_144:}Come on~
This post is from DIY/Open Source Hardware
Add and join groups EEWorld service account EEWorld subscription account Automotive development circle

Just looking around
Find a datasheet?

EEWorld Datasheet Technical Support

Related articles more>>

    EEWorld
    subscription
    account

    EEWorld
    service
    account

    Automotive
    development
    circle

    Robot
    development
    community

    Copyright © 2005-2025 EEWORLD.com.cn, Inc. All rights reserved 京B2-20211791 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号
    快速回复 返回顶部 Return list