circuitpython/cc3200/hal
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
..
inc cc3200: Add cc3200 port of MicroPython. 2015-02-06 22:10:11 +00:00
adc.c cc3200: Add cc3200 port of MicroPython. 2015-02-06 22:10:11 +00:00
adc.h cc3200: Update HAL to SDK release version 1.1.0. 2015-03-16 00:42:05 +01:00
aes.c cc3200: Update HAL to SDK release version 1.1.0. 2015-03-16 00:42:05 +01:00
aes.h cc3200: Update HAL to SDK release version 1.1.0. 2015-03-16 00:42:05 +01:00
cc3200_asm.h cc3200: Add __get_BASEPRI and __set_BASEPRI inline function definitions. 2015-12-04 12:13:57 +00:00
cc3200_hal.c cc3200: Refactor "ticks" functions to use common extmod implementation. 2017-02-06 11:14:16 +11:00
cc3200_hal.h all: Unify header guard usage. 2017-07-18 11:57:39 +10:00
cpu.c cc3200: Add cc3200 port of MicroPython. 2015-02-06 22:10:11 +00:00
cpu.h cc3200: Add cc3200 port of MicroPython. 2015-02-06 22:10:11 +00:00
crc.c cc3200: Add cc3200 port of MicroPython. 2015-02-06 22:10:11 +00:00
crc.h cc3200: Add cc3200 port of MicroPython. 2015-02-06 22:10:11 +00:00
debug.h cc3200: Add cc3200 port of MicroPython. 2015-02-06 22:10:11 +00:00
des.c cc3200: Update HAL to SDK release version 1.1.0. 2015-03-16 00:42:05 +01:00
des.h cc3200: Add cc3200 port of MicroPython. 2015-02-06 22:10:11 +00:00
fault_registers.h cc3200: Add cc3200 port of MicroPython. 2015-02-06 22:10:11 +00:00
gpio.c cc3200: Add cc3200 port of MicroPython. 2015-02-06 22:10:11 +00:00
gpio.h cc3200: Add cc3200 port of MicroPython. 2015-02-06 22:10:11 +00:00
i2c.c cc3200: Add I2C module. Only master mode is currently supported. 2015-02-13 17:54:04 +01:00
i2c.h cc3200: Add I2C module. Only master mode is currently supported. 2015-02-13 17:54:04 +01:00
i2s.c cc3200: Update HAL to SDK release version 1.1.0. 2015-03-16 00:42:05 +01:00
i2s.h cc3200: Update HAL to SDK release version 1.1.0. 2015-03-16 00:42:05 +01:00
interrupt.c cc3200: Add cc3200 port of MicroPython. 2015-02-06 22:10:11 +00:00
interrupt.h cc3200: Add cc3200 port of MicroPython. 2015-02-06 22:10:11 +00:00
pin.c cc3200: Add antenna selection feature to WLAN. 2015-06-07 00:06:27 +02:00
pin.h cc3200: Add antenna selection feature to WLAN. 2015-06-07 00:06:27 +02:00
prcm.c cc3200: New irq API, affects all classes that provide the irq method. 2015-09-27 01:48:20 +02:00
prcm.h cc3200: New irq API, affects all classes that provide the irq method. 2015-09-27 01:48:20 +02:00
rom.h cc3200: Add cc3200 port of MicroPython. 2015-02-06 22:10:11 +00:00
rom_map.h cc3200: Add cc3200 port of MicroPython. 2015-02-06 22:10:11 +00:00
rom_patch.h cc3200: Update HAL to SDK release version 1.1.0. 2015-03-16 00:42:05 +01:00
sdhost.c cc3200: Update HAL to SDK release version 1.1.0. 2015-03-16 00:42:05 +01:00
sdhost.h cc3200: Update HAL to SDK release version 1.1.0. 2015-03-16 00:42:05 +01:00
shamd5.c cc3200: Add cc3200 port of MicroPython. 2015-02-06 22:10:11 +00:00
shamd5.h cc3200: Add cc3200 port of MicroPython. 2015-02-06 22:10:11 +00:00
spi.c cc3200: Fix SPI clock divider calculation. 2015-11-01 23:33:12 +01:00
spi.h cc3200: Add cc3200 port of MicroPython. 2015-02-06 22:10:11 +00:00
startup_gcc.c cc3200: Clean up linker scripts and startup file. 2015-03-14 10:08:45 +01:00
systick.c cc3200: Add cc3200 port of MicroPython. 2015-02-06 22:10:11 +00:00
systick.h cc3200: Add cc3200 port of MicroPython. 2015-02-06 22:10:11 +00:00
timer.c cc3200: Update HAL to SDK release version 1.1.0. 2015-03-16 00:42:05 +01:00
timer.h cc3200: Update HAL to SDK release version 1.1.0. 2015-03-16 00:42:05 +01:00
uart.c cc3200: Update HAL to SDK release version 1.1.0. 2015-03-16 00:42:05 +01:00
uart.h cc3200: Add cc3200 port of MicroPython. 2015-02-06 22:10:11 +00:00
utils.c cc3200: Add cc3200 port of MicroPython. 2015-02-06 22:10:11 +00:00
utils.h cc3200: Add cc3200 port of MicroPython. 2015-02-06 22:10:11 +00:00
wdt.c cc3200: Add cc3200 port of MicroPython. 2015-02-06 22:10:11 +00:00
wdt.h cc3200: Add cc3200 port of MicroPython. 2015-02-06 22:10:11 +00:00