mirror of
				https://github.com/Telecominfraproject/OpenCellular.git
				synced 2025-11-03 20:07:51 +00:00 
			
		
		
		
	Update led.c
This commit is contained in:
		@@ -488,7 +488,7 @@ ReturnStatus led_init(const HciLedCfg *driver)
 | 
				
			|||||||
     - Disable input buffer (RegInputDisable)
 | 
					     - Disable input buffer (RegInputDisable)
 | 
				
			||||||
     - Disable pull-up (RegPullUp)
 | 
					     - Disable pull-up (RegPullUp)
 | 
				
			||||||
     - Enable open drain (RegOpenDrain)
 | 
					     - Enable open drain (RegOpenDrain)
 | 
				
			||||||
     - Set direction to output (RegDir) \96 by default RegData is set high => LED
 | 
					     - Set direction to output (RegDir) by default RegData is set high => LED
 | 
				
			||||||
     OFF
 | 
					     OFF
 | 
				
			||||||
     - Enable oscillator (RegClock)
 | 
					     - Enable oscillator (RegClock)
 | 
				
			||||||
     - Configure LED driver clock and mode if relevant (RegMisc)
 | 
					     - Configure LED driver clock and mode if relevant (RegMisc)
 | 
				
			||||||
@@ -530,7 +530,7 @@ ReturnStatus led_init(const HciLedCfg *driver)
 | 
				
			|||||||
            return status;
 | 
					            return status;
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        /* Set direction to output (RegDir) \96
 | 
					        /* Set direction to output (RegDir)
 | 
				
			||||||
         * by default RegData is set high => LED OFF */
 | 
					         * by default RegData is set high => LED OFF */
 | 
				
			||||||
        status = ioexp_led_config_data_direction(&driver->sx1509_dev[index],
 | 
					        status = ioexp_led_config_data_direction(&driver->sx1509_dev[index],
 | 
				
			||||||
                                                 SX1509_REG_AB, 0x00, 0x00);
 | 
					                                                 SX1509_REG_AB, 0x00, 0x00);
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user