GPIOB_ODR &= (0<<0); 标准库 //1.配置时钟 RCC_APB2PeriphClockCmd(RCC_APB2Periph_GPIOB, ENABLE); //2.配置引脚 GPIO_InitTypeDef GPIO_InitStructure; GPIO_InitStructure.GPIO_Pin = GPIO_Pin_7; GPIO_InitStructure.GPIO_Speed = GPIO_Speed_10MHz; GPIO_InitStructure.GPIO_Mode = GPIO_Mode_IN_...
LL_GPIO_InitTypeDef GPIO_InitStruct = {0};/* Peripheral clock enable */ LL_APB1_GRP1_Enable...
NVIC_EnableIRQ(RCC_IRQn);/** NOJTAG: JTAG-DP Disabled and SW-DP Enabled*/LL_GPIO_AF_Remap_SWJ_NOJTAG();/*USER CODE BEGIN Init*//*USER CODE END Init*//*Configure the system clock*/SystemClock_Config();/*USER CODE BEGIN SysInit*//*USER CODE END SysInit*//*Initialize all configured ...
HAL generic APIs Function group Common API name Description This function initializes the peripheral and configures the low -level HAL_ADC_Init() resources (clocks, GPIO, AF..) Initialization group This function restores the peripheral default state, frees the low- HAL_ADC_DeInit() level ...
LL GPIO Generic Driver 1141 67.1 GPIO Firmware driver registers structures 1141 67.1.1 LL_GPIO_InitTypeDef 1141 67.2 GPIO Firmware driver API description 1141 67.2.1 Detailed description of functions 1141 67.3 GPIO Firmware driver defines 1157 67.3.1 GPIO 1157 68 LL HRTIM Generic Driver 1159 68.1...