forked from nanoframework/nf-interpreter
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add GPIO ChangeCounter (nanoframework#1421)
(cherry picked from commit c5b419a)
- Loading branch information
1 parent
adcfa81
commit 254c8bf
Showing
14 changed files
with
705 additions
and
274 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
86 changes: 86 additions & 0 deletions
86
...noCLR/Windows.Devices.Gpio/win_dev_gpio_native_Windows_Devices_Gpio_GpioChangeCounter.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,86 @@ | ||
// | ||
// Copyright (c) 2019 The nanoFramework project contributors | ||
// Portions Copyright (c) Microsoft Corporation. All rights reserved. | ||
// See LICENSE file in the project root for full license information. | ||
// | ||
|
||
#include "win_dev_gpio_native.h" | ||
|
||
HRESULT Library_win_dev_gpio_native_Windows_Devices_Gpio_GpioChangeCounter::NativeInit___VOID( CLR_RT_StackFrame& stack ) | ||
{ | ||
(void)stack; | ||
|
||
NANOCLR_HEADER(); | ||
{ | ||
//CLR_RT_HeapBlock* pThis = stack.This(); FAULT_ON_NULL(pThis); | ||
|
||
//int16_t pinNumber = pThis[ FIELD___pinNumber ].NumericByRefConst().s4; | ||
//bool InputMode = (bool)pThis[FIELD___inputMode].NumericByRefConst().u1; | ||
|
||
NANOCLR_SET_AND_LEAVE(CLR_E_NOT_SUPPORTED); | ||
} | ||
NANOCLR_NOCLEANUP(); | ||
} | ||
|
||
HRESULT Library_win_dev_gpio_native_Windows_Devices_Gpio_GpioChangeCounter::NativeRead___U8__BOOLEAN( CLR_RT_StackFrame& stack ) | ||
{ | ||
(void)stack; | ||
|
||
NANOCLR_HEADER(); | ||
{ | ||
NANOCLR_SET_AND_LEAVE(CLR_E_NOT_SUPPORTED); | ||
|
||
} | ||
NANOCLR_NOCLEANUP(); | ||
} | ||
|
||
HRESULT Library_win_dev_gpio_native_Windows_Devices_Gpio_GpioChangeCounter::NativeStart___VOID( CLR_RT_StackFrame& stack ) | ||
{ | ||
(void)stack; | ||
|
||
NANOCLR_HEADER(); | ||
{ | ||
//CLR_RT_HeapBlock* pThis = stack.This(); FAULT_ON_NULL(pThis); | ||
|
||
//int pinNumber = pThis[ FIELD___pinNumber ].NumericByRefConst().s4; | ||
|
||
//GpioChangePolarity polarity = (GpioChangePolarity)pThis[ FIELD___Polarity ].NumericByRefConst().s4; | ||
|
||
|
||
// TODO | ||
NANOCLR_SET_AND_LEAVE(CLR_E_NOT_SUPPORTED); | ||
|
||
|
||
} | ||
NANOCLR_NOCLEANUP(); | ||
} | ||
|
||
HRESULT Library_win_dev_gpio_native_Windows_Devices_Gpio_GpioChangeCounter::NativeStop___VOID( CLR_RT_StackFrame& stack ) | ||
{ | ||
(void)stack; | ||
|
||
NANOCLR_HEADER(); | ||
{ | ||
//CLR_RT_HeapBlock* pThis = stack.This(); FAULT_ON_NULL(pThis); | ||
|
||
//int pinNumber = pThis[ FIELD___pinNumber ].NumericByRefConst().s4; | ||
NANOCLR_SET_AND_LEAVE(CLR_E_NOT_SUPPORTED); | ||
|
||
} | ||
NANOCLR_NOCLEANUP(); | ||
} | ||
|
||
HRESULT Library_win_dev_gpio_native_Windows_Devices_Gpio_GpioChangeCounter::NativeDispose___VOID( CLR_RT_StackFrame& stack ) | ||
{ | ||
(void)stack; | ||
|
||
NANOCLR_HEADER(); | ||
{ | ||
//CLR_RT_HeapBlock* pThis = stack.This(); FAULT_ON_NULL(pThis); | ||
|
||
//int pinNumber = pThis[ FIELD___pinNumber ].NumericByRefConst().s4; | ||
NANOCLR_SET_AND_LEAVE(CLR_E_NOT_SUPPORTED); | ||
|
||
} | ||
NANOCLR_NOCLEANUP(); | ||
} |
84 changes: 0 additions & 84 deletions
84
targets/FreeRTOS/GC5/nanoCLR/Windows.Devices.Gpio/win_dev_gpio_native.cpp
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.