Skip to content
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

Initial version of nanoFramework.Hardware.Esp32 #1

Merged
merged 8 commits into from
Jun 5, 2018
Merged

Initial version of nanoFramework.Hardware.Esp32 #1

merged 8 commits into from
Jun 5, 2018

Conversation

AdrianSoundy
Copy link
Member

No description provided.

@nfbot
Copy link
Member

nfbot commented Jun 4, 2018

Hi @AdrianSoundy,

I'm nanoFramework bot.
Thank you for your contribution!

A human will be reviewing it shortly. 😉

@CLAassistant
Copy link

CLAassistant commented Jun 4, 2018

CLA assistant check
All committers have signed the CLA.

@josesimoes josesimoes changed the base branch from master to develop June 4, 2018 08:32
Copy link
Member

@josesimoes josesimoes left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like a great addition for the ESP32 platform. 👏
Just a few minor changes before it's good to go... 😉

source/Errors.cs Outdated
/// <summary>
/// Encapsulates the ESP32 native errors
/// </summary>
public class Errors
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Considering that this class doesn't hold anything else except the enum, I would remove it shortening the path to reach it.

source/Errors.cs Outdated
// <summary>
// Espressif error codes
// </summary>
public enum Esp : Int32
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Perhaps something more meaningful like EspNativeError...

source/Errors.cs Outdated
/// <summary>
/// Memory allocation failed error
/// </summary>
ESP_ERR_NO_MEM = 0x101,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Starting all enum items echoing the enum name is more a C/C++ naming convention/style.
Removing the ESP_ERR_ from them makes it more readable. And perhaps using camel case in the names helps on that too.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All good suggestions

</Dependency>
</ItemGroup>
<PropertyGroup Label="Globals">
<ProjectGuid>96eaba11-6a33-454d-a7b2-b96ca5617e8c</ProjectGuid>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please replace this GUID, it's been used in the equivalent Nuget project in mscorlib repo

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also changed the DELIVERABLES one as well, just in case.
I thought there would be a issue with GUIDs, especially starting from copied projects.

@@ -0,0 +1,74 @@
<?xml version="1.0" encoding="utf-8"?>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Several fixes here:

  • correct the Nuget name to nanoFramework.Hardware.ESP32
  • the include files bellow should be referring to the ones from this project instead of Gpio ones
  • the description should be descriptive for this package

source/Sleep.cs Outdated
/// <summary>
/// Touch pad channel 0 is GPIO4
/// </summary>
TOUCH_PAD_NUM0 = 0,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same comment as above

source/Sleep.cs Outdated
/// </summary>
/// <param name="time"></param>
/// <returns></returns>
public static Errors.Esp EnableWakupByTimer(TimeSpan time)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Type in method name: missing the e

source/Sleep.cs Outdated
/// 0,2,4,12->15,25->27,32->39</param>
/// <param name="level"></param>
/// <returns></returns>
public static Errors.Esp EnableWakupByPin(WakeupGpioPin pin, int level)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Type in method name: missing the e

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok got all the Wakup

</Content>
</ItemGroup>
<ItemGroup>
<Dependency Include="nanoFramework.CoreLibrary">
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The dependencies descriptions bellow are pointing to outdated versions.

<Folder Include="lib\" />
</ItemGroup>
<ItemGroup>
<Dependency Include="nanoFramework.CoreLibrary">
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The dependencies descriptions bellow are pointing to outdated versions.

Copy link
Member

@josesimoes josesimoes left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@josesimoes josesimoes merged commit 4e1b921 into nanoframework:develop Jun 5, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants