mirror of https://github.com/ARMmbed/mbed-os.git
				
				
				
			The DAC init was using the ADC pinmap. This fixes that.
							parent
							
								
									829a3cded3
								
							
						
					
					
						commit
						b3c0ef81dc
					
				| 
						 | 
				
			
			@ -52,7 +52,7 @@ static void _analogout_init_direct(dac_t *obj, const PinMap *pinmap)
 | 
			
		|||
 | 
			
		||||
void analogout_init(dac_t *obj, PinName pin)
 | 
			
		||||
{
 | 
			
		||||
    int peripheral = (int)pinmap_peripheral(pin, PinMap_ADC);
 | 
			
		||||
    int peripheral = (int)pinmap_peripheral(pin, PinMap_DAC);
 | 
			
		||||
 | 
			
		||||
    const PinMap static_pinmap = {pin, peripheral, 0};
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue