aboutsummaryrefslogtreecommitdiff
path: root/esp8266/etshal.h
AgeCommit message (Collapse)Author
2017-09-06ports: Make new ports/ sub-directory and move all ports there.Damien George
This is to keep the top-level directory clean, to make it clear what is core and what is a port, and to allow the repository to grow with new ports in a sustainable way.
2017-07-18all: Unify header guard usage.Alexander Steffen
The code conventions suggest using header guards, but do not define how those should look like and instead point to existing files. However, not all existing files follow the same scheme, sometimes omitting header guards altogether, sometimes using non-standard names, making it easy to accidentally pick a "wrong" example. This commit ensures that all header files of the MicroPython project (that were not simply copied from somewhere else) follow the same pattern, that was already present in the majority of files, especially in the py folder. The rules are as follows. Naming convention: * start with the words MICROPY_INCLUDED * contain the full path to the file * replace special characters with _ In addition, there are no empty lines before #ifndef, between #ifndef and one empty line before #endif. #endif is followed by a comment containing the name of the guard macro. py/grammar.h cannot use header guards by design, since it has to be included multiple times in a single C file. Several other files also do not need header guards as they are only used internally and guaranteed to be included only once: * MICROPY_MPHALPORT_H * mpconfigboard.h * mpconfigport.h * mpthreadport.h * pin_defs_*.h * qstrdefs*.h
2016-11-02esp8266/etshal.h: Adjust size of MD5_CTX structure.Paul Sokolovsky
Size 64 was incorrect and will lead to stack corruption. Size 88 was verified empirically. Also, allow to skip defining it if MD5_CTX preprocessor macro is already defined (to avoid header conflict).
2016-11-02esp8266/etshal.h: Add prototypes for SPIRead/SPIWrite/SPIEraseSector.Paul Sokolovsky
2016-10-23esp8266/etshal.h: Add few more ESP8266 vendor lib prototypes.Paul Sokolovsky
2016-09-03esp8266/modmachinewdt: Add .deinit() method.Paul Sokolovsky
2016-08-04esp8266/modesp: Add check_fw() function to check integrity of the firmware.Paul Sokolovsky
Requires firmware generated by the latest makeimg.py (which stores size and md5 of the firmware together with the firmware itself).
2016-05-03esp8266/modesp: Add malloc() and free() functions.Paul Sokolovsky
Useful for testing fragmentation issues in OS heap. E.g. freemem() may report large amount, but is it possible to actually allocate block of a given size? Issue malloc() (followed by free()) to find out.
2016-03-29esp8266: Implement os.urandom function.Damien George
Uses what is suspected to be a hardware random number generator.
2016-03-05esp8266/etshal.h: More prototypes of ESP8266 SDK/BootROM functions.Damien George
2016-03-04esp8266/etshal.h: Add timer functions prototypes.Paul Sokolovsky
2015-05-28esp8266: Enable setting CPU frequency to 160MHzJosef Gajdusek
2014-11-27esp8266: New port of Micro Python to ESP8266 wifi module.Damien George