micropython/cc3200/mods
Alexander Steffen 299bc62586 all: Unify header guard usage.
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
2017-07-18 11:57:39 +10:00
..
modmachine.c cc3200/modmachine: Return frequency value directly, like other ports. 2017-04-05 11:58:17 +03:00
modnetwork.c cc3200: When raising OSError's use MP_Exxx as arg instead of a string. 2017-02-22 12:58:11 +11:00
modnetwork.h all: Unify header guard usage. 2017-07-18 11:57:39 +10:00
modubinascii.c all: Remove 'name' member from mp_obj_module_t struct. 2016-09-22 00:23:16 +10:00
modubinascii.h all: Unify header guard usage. 2017-07-18 11:57:39 +10:00
moduhashlib.c cc3200: When raising OSError's use MP_Exxx as arg instead of a string. 2017-02-22 12:58:11 +11:00
moduos.c ports: Add ilistdir in uos module. 2017-05-10 12:13:53 +10:00
moduos.h all: Unify header guard usage. 2017-07-18 11:57:39 +10:00
modusocket.c cc3200/modusocket: Fix connect() when in non-blocking or timeout mode. 2017-07-11 16:16:14 +10:00
modusocket.h all: Unify header guard usage. 2017-07-18 11:57:39 +10:00
modussl.c cc3200: Remove remaining references to std.h. 2017-02-21 18:01:43 +11:00
modutime.c all: Use full path name when including mp-readline/timeutils/netutils. 2017-03-31 22:29:39 +11:00
modwipy.c all: Remove 'name' member from mp_obj_module_t struct. 2016-09-22 00:23:16 +10:00
modwlan.c cc3200: Update for changes to mp_obj_str_get_data. 2017-03-29 12:56:45 +11:00
modwlan.h all: Unify header guard usage. 2017-07-18 11:57:39 +10:00
pybadc.c cc3200: When raising OSError's use MP_Exxx as arg instead of a string. 2017-02-22 12:58:11 +11:00
pybadc.h all: Unify header guard usage. 2017-07-18 11:57:39 +10:00
pybflash.c extmod: Merge old fsusermount.h header into vfs.h and vfs_fat.h. 2017-01-30 12:26:08 +11:00
pybflash.h cc3200: Convert to use new VFS sub-system and new ooFatFs library. 2017-01-30 12:26:07 +11:00
pybi2c.c cc3200/mods/pybi2c: Make readfnom_mem_into/writeto_mem return None. 2017-04-18 15:31:08 +10:00
pybi2c.h all: Unify header guard usage. 2017-07-18 11:57:39 +10:00
pybpin.c cc3200/mods/pybpin: Remove toggle() method. 2017-05-21 15:39:27 +03:00
pybpin.h all: Unify header guard usage. 2017-07-18 11:57:39 +10:00
pybrtc.c all: Use full path name when including mp-readline/timeutils/netutils. 2017-03-31 22:29:39 +11:00
pybrtc.h all: Unify header guard usage. 2017-07-18 11:57:39 +10:00
pybsd.c cc3200: When raising OSError's use MP_Exxx as arg instead of a string. 2017-02-22 12:58:11 +11:00
pybsd.h all: Unify header guard usage. 2017-07-18 11:57:39 +10:00
pybsleep.c all: Add py/mphal.h and use it in all ports. 2015-10-31 19:14:30 +03:00
pybsleep.h all: Unify header guard usage. 2017-07-18 11:57:39 +10:00
pybspi.c cc3200: When raising OSError's use MP_Exxx as arg instead of a string. 2017-02-22 12:58:11 +11:00
pybspi.h all: Unify header guard usage. 2017-07-18 11:57:39 +10:00
pybtimer.c cc3200: When raising OSError's use MP_Exxx as arg instead of a string. 2017-02-22 12:58:11 +11:00
pybtimer.h all: Unify header guard usage. 2017-07-18 11:57:39 +10:00
pybuart.c cc3200/pybuart: Make parity specifications consistent with HW API. 2017-04-09 00:19:02 +03:00
pybuart.h all: Unify header guard usage. 2017-07-18 11:57:39 +10:00
pybwdt.c cc3200: When raising OSError's use MP_Exxx as arg instead of a string. 2017-02-22 12:58:11 +11:00
pybwdt.h all: Unify header guard usage. 2017-07-18 11:57:39 +10:00