Skip to content

cpu/esp8266: doc extended#10126

Merged
aabadie merged 4 commits intoRIOT-OS:masterfrom
gschorcht:esp8266_doc
Jan 11, 2019
Merged

cpu/esp8266: doc extended#10126
aabadie merged 4 commits intoRIOT-OS:masterfrom
gschorcht:esp8266_doc

Conversation

@gschorcht
Copy link
Copy Markdown
Contributor

Contribution description

Documentation in cpu/esp8266/doc.txt was extended by section Erasing the Device which describes

  • how to erase the flash of the device, and
  • more important what to do after erasing the flash to get the device working again.

Testing procedure

It's just documentation.

@miri64 miri64 requested a review from jia200x October 9, 2018 12:30
@miri64 miri64 added Type: enhancement The issue suggests enhanceable parts / The PR enhances parts of the codebase / documentation Area: doc Area: Documentation Platform: ESP Platform: This PR/issue effects ESP-based platforms labels Oct 9, 2018
@jia200x jia200x added the CI: ready for build If set, CI server will compile all applications for all available boards for the labeled PR label Oct 24, 2018
@aabadie aabadie added this to the Release 2019.01 milestone Dec 3, 2018
@gschorcht
Copy link
Copy Markdown
Contributor Author

@jia200x The disadvantage of handling board documentation as part of the code and as normal PRs is that it takes a lot of time before the changes become active. This PR is opened for almost 3 months.

Another problem I'm running into is that it becomes more and more difficult to merge the changes of this PR with changes of the documentation I had to make as part of other PRs 😟

Copy link
Copy Markdown
Contributor

@aabadie aabadie left a comment

Choose a reason for hiding this comment

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

A few comments, mainly typos, duplicated words. I haven't checked the generated html.

I also think that the README.md file should be removed and only doc.txt be kept. This is the file used in the end by doxygen. Because as it is now, I see a very large and detailed documentation duplicated.

USEMODULE += esp_spiffs
```

Modules can be also be activated temporarily at the command line when calling the make command:
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Extra be: Modules can also be activated...

#endif
```
constructs, so it is possible to override them by defining them in front of these constructs.
The board-specific configuration files ```board.h``` and ```periph_conf.h``` as well well as the driver parameter configuration files ```<driver>_params.h``` define the default configurations for peripherals and device driver modules. These are, for example, the GPIOs used, bus interfaces used or available bus speeds. Because there are many possible configurations and many different application requirements, these default configurations are usually only a compromise between different requirements.
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Extra well

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

And I think this line could be split, but this comment would apply to large parts of this file.

Copy link
Copy Markdown
Contributor Author

@gschorcht gschorcht Dec 29, 2018

Choose a reason for hiding this comment

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

I remember to our discussion regarding 80 characters per line also for documentation. These files were written before. I you insist on it, I can split the lines.


</center><br>

For example, to activate the a SPIFFS drive in on-board flash memory, the makefile of application has simply to add the ```esp_spiffs``` module to ```USEMODULE``` make variable:
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Extra a copy pasted from the README.md. Just a thought: can we just keep one of these files ? (doc.txt)

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

README.md and doc.txt are identical. I use README.md to write the documentation to have immediate feedback in markdown viewer. It is quite tedious to write complex documentation for doxygen and execute make doc to see the results.

Using doc.txt is the new approach for board documentation. So, if only one file should be kept, it should be doc.txt 😟

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I kept README.md for the moment so that you can track requested changes. I will remove it before squashing.

@gschorcht
Copy link
Copy Markdown
Contributor Author

@aabadie Many thanks for your review.

Copy link
Copy Markdown
Contributor

@aabadie aabadie left a comment

Choose a reason for hiding this comment

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

I built the documentation and checked the result: it's all ok.

ACK, please squash

@gschorcht
Copy link
Copy Markdown
Contributor Author

@aabadie What do you think, should I remove README.md first? Yes, it is difficult to keep them consistent.

@aabadie
Copy link
Copy Markdown
Contributor

aabadie commented Jan 9, 2019

should I remove README.md first? Yes, it is difficult to keep them consistent.

That would be better indeed.

@gschorcht gschorcht added CI: ready for build If set, CI server will compile all applications for all available boards for the labeled PR and removed CI: ready for build If set, CI server will compile all applications for all available boards for the labeled PR labels Jan 9, 2019
@gschorcht
Copy link
Copy Markdown
Contributor Author

@aabadie I would say that, the Codacy problem is a false positive. Can we merge inspite of it?

@aabadie
Copy link
Copy Markdown
Contributor

aabadie commented Jan 10, 2019

Just in case @gschorcht, your last commit (71ff082) is removing the wrong README.md (in esp32 instead of esp8266) :)

The Codacy failure should be tackled if you fix this ;)

Documentation is generated by doxygen from doc.txt
@gschorcht
Copy link
Copy Markdown
Contributor Author

gschorcht commented Jan 11, 2019

@aabadie

your last commit (71ff082) is removing the wrong README.md (in esp32 instead of esp8266) :)

Ups 😎 Fixed.

@aabadie
Copy link
Copy Markdown
Contributor

aabadie commented Jan 11, 2019

All green, let's merge!

@aabadie aabadie merged commit afe3d67 into RIOT-OS:master Jan 11, 2019
@gschorcht
Copy link
Copy Markdown
Contributor Author

@aabadie Thanks for your review.

@gschorcht gschorcht deleted the esp8266_doc branch January 11, 2019 12:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Area: doc Area: Documentation CI: ready for build If set, CI server will compile all applications for all available boards for the labeled PR Platform: ESP Platform: This PR/issue effects ESP-based platforms Type: enhancement The issue suggests enhanceable parts / The PR enhances parts of the codebase / documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants