-
-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add external events and drivers #43
Conversation
Attempts to find issues with build! Removes invalid solution project defefinition.
48120b0
to
81c32a8
Compare
- Rename namespace. - Rename class. - Add data width enum to make the parameter clear (same weight on interface size and processing for native code). - Split MountSpi method to make it clear that an fixed configuration option is available. - Adjusted documentation. - Rework using for System.Diagnostics namespace.
81c32a8
to
72c34f9
Compare
- Also removed static using which was causing MDP to fail.
Actually is not on the pipeline... I'll have to figure out why... 😞 |
@networkfusion @Ellerbach @AdrianSoundy please review and comment the revied API in |
Tried to do some testing with this but it's not building. RemovableDeviceEvent not found. Looks like it in wrong position in code. Source code changes looked ok. |
@networkfusion @AdrianSoundy issue related with MDP fixed. This is now building OK. Really really OK 😅 ! |
Ok i have it building now. I'll see if a can do some testing in next few days. |
Is there any native code for these changes ? I couldn't find them. |
Nope. Robin was adjusting the C# to bring in the "missing" classes for card detection and such. |
Ok i'll look at adding the native code required so i can test it |
Update:- Will look at doing a card Insert event as well but will need to know the GPIO used for that from managed code. Still need to tidy things up and looking at making it possible to just load System.IO.Filesystem without Window.Devices.Storage. There is an outstanding problem. You can't access the Internal partition as its now fixed to FAT32 where partition is Spiffs. |
There is no way to specify a GPIO for detecting the SD card insertion unless its hard coded in the build. Maybe we should create an instance of a SDCard class instead of a static class with constructors for MMC & SPI with an optional Inserted GPIO number. Then native code can fire event when card inserted. Also have an inserted property |
@AdrianSoundy Sounds sensible to me... but would have to rely on @josesimoes for thoughts... |
There is already nanoframework/Home#808 which is kind of inline with this. 🆗 I'm quite all right with adding those constructors with those parameters. Those should be overloads to the parameterless one. |
Changed from static class so it could be initialised with parameters Then is can be used either by polling IsCardDetected state or waiting for event via StorageEventManager
@josesimoes @networkfusion |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looking good!
@josesimoes Seems to be failing with a error in powershell build script, can you have a look |
@AdrianSoundy all green now |
Add IDisposable and renames Changed native to pick up parameters form class etc
…mework/System.IO.FileSystem into develop-removable-events
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! I've missed this last request for a review. Apologies.
Description
Superseeds #41. The replacement of Windows.Storage does not include detection of removable devices. Although this is (was) only available with UWP, it is very important in nanoFramework. It also includes another class for initializing external devices that are not part of the native framework.
Uses namespace
System.IO.nanoFramework
forExternalDrivers
andEvents
.Motivation and Context
Adds support for removable devices and external driver support.
How Has This Been Tested?
Screenshots
Types of changes
Checklist: