Skip to content
This repository was archived by the owner on Jun 5, 2019. It is now read-only.

Commit a1a7e0b

Browse files
author
ColinA-MSFT
committed
Update native interop hooks for Pwm.
1 parent a30e794 commit a1a7e0b

File tree

3 files changed

+56
-3
lines changed

3 files changed

+56
-3
lines changed

CLR/Libraries/Windows_Devices/windows_devices_native.cpp

Lines changed: 32 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,37 @@ static const CLR_RT_MethodHandler method_lookup[] =
112112
NULL,
113113
NULL,
114114
NULL,
115+
NULL,
116+
NULL,
117+
NULL,
118+
NULL,
119+
NULL,
120+
NULL,
121+
NULL,
122+
NULL,
123+
NULL,
124+
NULL,
125+
NULL,
126+
NULL,
127+
NULL,
128+
NULL,
129+
NULL,
130+
NULL,
131+
NULL,
132+
NULL,
133+
NULL,
134+
NULL,
135+
NULL,
136+
NULL,
137+
NULL,
138+
NULL,
139+
NULL,
140+
NULL,
141+
NULL,
142+
NULL,
143+
NULL,
144+
NULL,
145+
NULL,
115146
Library_windows_devices_native_Windows_Devices_Spi_SpiBusInfo::_ctor___VOID__I4,
116147
NULL,
117148
NULL,
@@ -154,7 +185,7 @@ static const CLR_RT_MethodHandler method_lookup[] =
154185
const CLR_RT_NativeAssemblyData g_CLR_AssemblyNative_Windows_Devices =
155186
{
156187
"Windows.Devices",
157-
0xDD62098A,
188+
0x240D5E7D,
158189
method_lookup
159190
};
160191

CLR/Libraries/Windows_Devices/windows_devices_native.h

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
#define _WINDOWS_DEVICES_NATIVE_H_
1212

1313
#include <TinyCLR_Interop.h>
14-
1514
struct Library_windows_devices_native_Windows_Devices_Adc_AdcChannel
1615
{
1716
static const int FIELD__m_channelNumber = 1;
@@ -143,6 +142,30 @@ struct Library_windows_devices_native_Windows_Devices_I2c_I2cTransferResult
143142

144143
};
145144

145+
struct Library_windows_devices_native_Windows_Devices_Pwm_PwmController
146+
{
147+
static const int FIELD__m_provider = 1;
148+
149+
150+
//--//
151+
152+
};
153+
154+
struct Library_windows_devices_native_Windows_Devices_Pwm_PwmPin
155+
{
156+
static const int FIELD__m_pinNumber = 1;
157+
static const int FIELD__m_controller = 2;
158+
static const int FIELD__m_provider = 3;
159+
static const int FIELD__m_started = 4;
160+
static const int FIELD__m_disposed = 5;
161+
static const int FIELD__m_dutyCycle = 6;
162+
static const int FIELD__m_polarity = 7;
163+
164+
165+
//--//
166+
167+
};
168+
146169
struct Library_windows_devices_native_Windows_Devices_Spi_SpiBusInfo
147170
{
148171
static const int FIELD__MinClockFrequency_ = 1;

Framework/Core/Windows/Devices/Devices.csproj

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
<MMP_STUB_SKIP>false</MMP_STUB_SKIP>
1818
<MMP_STUB_GenerateSkeletonFile>$(BUILD_TREE_STUBS)\windows_devices_native</MMP_STUB_GenerateSkeletonFile>
1919
<MMP_STUB_GenerateSkeletonProject>Windows_Devices</MMP_STUB_GenerateSkeletonProject>
20-
<MMP_STUB_LegacySkeletonInterop>TRUE</MMP_STUB_LegacySkeletonInterop>
2120
</PropertyGroup>
2221
<ItemGroup>
2322
<MMP_STUB_Load Include="$(BUILD_TREE_PE)\Windows.Devices.pe">

0 commit comments

Comments
 (0)