直接内存映射GPIO驱动程序 - 如何? [英] Direct Memory Mapped GPIO driver - how?

查看:195
本文介绍了直接内存映射GPIO驱动程序 - 如何?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我无法让Lightning司机工作。到目前为止,它一直是一种完全沮丧的运动。我当然通过我的Raspberry Pi 2的网络界面启用了驱动程序,并重新启动它。

I can't get the Lightning drivers to work. So far it has been an exercise in utter frustration. I have of course enabled the driver via the web interface of my Raspberry Pi 2, and rebooted it.

NuGet包似乎主要是一个红色的鲱鱼,因为它似乎没有包含我可以参考的任何内容它似乎包含C ++代码的开发依赖项。

The NuGet package appears to be largely a red herring, since it doesn't seem to contain anything I can reference. It appears to contain the development dependencies for the C++ code.

我已经下载了C ++源代码并将其添加到我的解决方案中并最终设法达到了我可以获得的要编译的代码。但是,它不会运行。任何试图访问LightningProvider的尝试都会导致app
立即崩溃并退出。例如:

I've downloaded the C++ source code and added that into my solution and eventually managed to get to the point where I could get the code to compile. However, it will not run. Any attempt to access the LightningProvider whatsoever causes the app to immediately crash and quit. For example:

            if (LightningProvider.IsLightningEnabled)
                {
                LowLevelDevicesController.DefaultProvider = LightningProvider.GetAggregateProvider();
                }

如果我添加从样本中获取的上述代码,并在IF语句上设置断点,当断点被击中时我将鼠标悬停在IsLightningEnabled字段上,应用程序立即崩溃并退出(在断点处停止!!)。

If I add the above code taken from the samples, and set a breakpoint on the IF statement, when the breakpoint is hit and I hover the mouse over the IsLightningEnabled field, the application immediately crashes and quits (while stopped at a breakpoint!!).

任何人都可以提供任何建议吗?任何人都有这个司机工作吗?

Can anyone offer any suggestions? Anyone got this driver working at all?

Tim Long

推荐答案

嗨Tim

我也遇到了Lightning Driver的问题,但后来在代码中出现了问题。

I'm also having problems with the Lightning Driver, but later in code.

您是否添加了以下DeviceCapabilities?

Have you added the following DeviceCapabilities?

< iot:Capability Name =" lowLevelDevices" />

<iot:Capability Name="lowLevelDevices"/>

< DeviceCapability Name =" 109b86ad-f53d-4b76-aa5f-821e2ddf2141" />

<DeviceCapability Name="109b86ad-f53d-4b76-aa5f-821e2ddf2141"/>

您的应用最初需要使用它们

They are needed for your App to work with the driver initially

希望这有助于


这篇关于直接内存映射GPIO驱动程序 - 如何?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆