DA14580之GPIO口的使用
SDK版本:5.0.4 开发环境:Keil 芯片:DA14580 作者:Asam DA14580的gpio使用十分简单,只需调用其SDK自带的库函数即可。 (1)IO口初始化函数 1 /** 2 **************************************************************************************** 3 * @brief Combined function to set the state and the type and mode of the GPIO pin 4 * 5 * @param[in] port GPIO port 6 * @param[in] pin GPIO pin 7 * @param[in] mode GPIO pin mode. INPUT = 0, INPUT_PULLUP = 0x100, INPUT_PULLDOWN = 0x200, OUTPUT = 0x300, 8 * @param[in] function GPIO pin usage. GPIO_FUNCTION enumaration. 9 * @param[in] high set to TRUE to set the pin into high else low 10 * 11 *