mirror of https://github.com/ARMmbed/mbed-os.git
				
				
				
			ADc internal temperature suuport and EMAC header fix
							parent
							
								
									398515a367
								
							
						
					
					
						commit
						80e30f4258
					
				| 
						 | 
					@ -1,3 +1,19 @@
 | 
				
			||||||
 | 
					/*---------------------------------------------------------------------------
 | 
				
			||||||
 | 
					 * Copyright (c) 2019, u-blox Malmö, All Rights Reserved
 | 
				
			||||||
 | 
					 * SPDX-License-Identifier: Apache-2.0
 | 
				
			||||||
 | 
					 *
 | 
				
			||||||
 | 
					 * Licensed under the Apache License, Version 2.0 (the "License");
 | 
				
			||||||
 | 
					 * you may not use this file except in compliance with the License.
 | 
				
			||||||
 | 
					 * You may obtain a copy of the License at
 | 
				
			||||||
 | 
					 *
 | 
				
			||||||
 | 
					 *     http://www.apache.org/licenses/LICENSE-2.0
 | 
				
			||||||
 | 
					 *
 | 
				
			||||||
 | 
					 * Unless required by applicable law or agreed to in writing, software
 | 
				
			||||||
 | 
					 * distributed under the License is distributed on an "AS IS" BASIS,
 | 
				
			||||||
 | 
					 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 | 
				
			||||||
 | 
					 * See the License for the specific language governing permissions and
 | 
				
			||||||
 | 
					 * limitations under the License.
 | 
				
			||||||
 | 
					 */
 | 
				
			||||||
#if DEVICE_WIFI
 | 
					#if DEVICE_WIFI
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#include "mbed_interface.h"
 | 
					#include "mbed_interface.h"
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -55,7 +55,10 @@ const PinMap PinMap_ADC[] = {
 | 
				
			||||||
};
 | 
					};
 | 
				
			||||||
 | 
					
 | 
				
			||||||
const PinMap PinMap_ADC_Internal[] = {
 | 
					const PinMap PinMap_ADC_Internal[] = {
 | 
				
			||||||
    {NC,   NC,    0}
 | 
					    {ADC_TEMP,   ADC_1,    STM_PIN_DATA_EXT(STM_MODE_ANALOG, GPIO_NOPULL, 0, 18, 0)},
 | 
				
			||||||
 | 
					    {ADC_VREF,   ADC_1,    STM_PIN_DATA_EXT(STM_MODE_ANALOG, GPIO_NOPULL, 0, 17, 0)},
 | 
				
			||||||
 | 
					    {ADC_VBAT,   ADC_1,    STM_PIN_DATA_EXT(STM_MODE_ANALOG, GPIO_NOPULL, 0, 18, 0)},
 | 
				
			||||||
 | 
					    {NC, NC, 0}
 | 
				
			||||||
};
 | 
					};
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -160,6 +160,11 @@ typedef enum {
 | 
				
			||||||
    SW0        = PF_2,   // Switch-0
 | 
					    SW0        = PF_2,   // Switch-0
 | 
				
			||||||
    SW1        = PB_6,   // Green / Switch-1
 | 
					    SW1        = PB_6,   // Green / Switch-1
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    // ADC internal channels
 | 
				
			||||||
 | 
					    ADC_TEMP = 0xF0,
 | 
				
			||||||
 | 
					    ADC_VREF = 0xF1,
 | 
				
			||||||
 | 
					    ADC_VBAT = 0xF2,
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    I2C_SCL     = D15,
 | 
					    I2C_SCL     = D15,
 | 
				
			||||||
    I2C_SDA     = D14,
 | 
					    I2C_SDA     = D14,
 | 
				
			||||||
    SPI0_MOSI    = D11,
 | 
					    SPI0_MOSI    = D11,
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue