FuriHal: pwr pulls for some pins (#2579)
This commit is contained in:
		@@ -153,10 +153,11 @@ void furi_hal_resources_init() {
 | 
			
		||||
    // Button pins
 | 
			
		||||
    furi_hal_resources_init_input_pins(GpioModeInterruptRiseFall);
 | 
			
		||||
 | 
			
		||||
    // Explicit pulls pins
 | 
			
		||||
    furi_hal_gpio_init(&gpio_infrared_tx, GpioModeAnalog, GpioPullDown, GpioSpeedLow);
 | 
			
		||||
    furi_hal_gpio_init(&gpio_speaker, GpioModeAnalog, GpioPullDown, GpioSpeedLow);
 | 
			
		||||
    furi_hal_gpio_init(&gpio_vibro, GpioModeAnalog, GpioPullDown, GpioSpeedLow);
 | 
			
		||||
    // Explicit, surviving reset, pulls
 | 
			
		||||
    LL_PWR_EnablePUPDCfg();
 | 
			
		||||
    LL_PWR_EnableGPIOPullDown(LL_PWR_GPIO_B, LL_PWR_GPIO_BIT_9); // gpio_infrared_tx
 | 
			
		||||
    LL_PWR_EnableGPIOPullDown(LL_PWR_GPIO_B, LL_PWR_GPIO_BIT_8); // gpio_speaker
 | 
			
		||||
    LL_PWR_EnableGPIOPullDown(LL_PWR_GPIO_A, LL_PWR_GPIO_BIT_8); // gpio_vibro
 | 
			
		||||
 | 
			
		||||
    // Display pins
 | 
			
		||||
    furi_hal_gpio_init(&gpio_display_rst_n, GpioModeOutputPushPull, GpioPullNo, GpioSpeedLow);
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user