-
-
Notifications
You must be signed in to change notification settings - Fork 175
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Various board updates for Netduino 3 Wifi (#656)
- Loading branch information
1 parent
393aa43
commit e27c2e5
Showing
5 changed files
with
104 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
42 changes: 42 additions & 0 deletions
42
targets/CMSIS-OS/ChibiOS/NETDUINO3_WIFI/target_windows_devices_adc_config.cpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
// | ||
// Copyright (c) 2018 The nanoFramework project contributors | ||
// See LICENSE file in the project root for full license information. | ||
// | ||
|
||
#include "win_dev_adc_native.h" | ||
|
||
////////// | ||
// ADC1 // | ||
////////// | ||
|
||
const NF_PAL_ADC_PORT_PIN_CHANNEL Adc1PortPinConfig[] = { | ||
{GPIOC, 0, ADC_CHANNEL_IN10}, | ||
{GPIOC, 1, ADC_CHANNEL_IN11}, | ||
{NULL, NULL, ADC_CHANNEL_SENSOR}, | ||
{NULL, NULL, ADC_CHANNEL_VREFINT}, | ||
{NULL, NULL, ADC_CHANNEL_VBAT}, | ||
}; | ||
|
||
const int Adc1ChannelCount = ARRAYSIZE(Adc1PortPinConfig); | ||
|
||
////////// | ||
// ADC2 // | ||
////////// | ||
|
||
const NF_PAL_ADC_PORT_PIN_CHANNEL Adc2PortPinConfig[] = { | ||
{GPIOC, 2, ADC_CHANNEL_IN14}, | ||
{GPIOC, 3, ADC_CHANNEL_IN15}, | ||
}; | ||
|
||
const int Adc2ChannelCount = ARRAYSIZE(Adc2PortPinConfig); | ||
|
||
////////// | ||
// ADC3 // | ||
////////// | ||
|
||
const NF_PAL_ADC_PORT_PIN_CHANNEL Adc3PortPinConfig[] = { | ||
{GPIOC, 4, ADC_CHANNEL_IN12}, | ||
{GPIOC, 5, ADC_CHANNEL_IN13}, | ||
}; | ||
|
||
const int Adc3ChannelCount = ARRAYSIZE(Adc3PortPinConfig); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters