zephyr/lib
Andrzej Głąbek 20202902f2 dts_fixups: Use DT_ prefix in all defined labels not related to Kconfig
These changes were obtained by running a script  created by
Ulf Magnusson <Ulf.Magnusson@nordicsemi.no> for the following
specification:

1. Read the contents of all dts_fixup.h files in Zephyr
2. Check the left-hand side of the #define macros (i.e. the X in
   #define X Y)
3. Check if that name is also the name of a Kconfig option
   3.a If it is, then do nothing
   3.b If it is not, then replace CONFIG_ with DT_ or add DT_ if it
       has neither of these two prefixes
4. Replace the use of the changed #define in the code itself
   (.c, .h, .ld)

Additionally, some tweaks had to be added to this script to catch some
of the macros used in the code in a parameterized form, e.g.:
- CONFIG_GPIO_STM32_GPIO##__SUFFIX##_BASE_ADDRESS
- CONFIG_UART_##idx##_TX_PIN
- I2C_SBCON_##_num##_BASE_ADDR
and to prevent adding DT_ prefix to the following symbols:
- FLASH_START
- FLASH_SIZE
- SRAM_START
- SRAM_SIZE
- _ROM_ADDR
- _ROM_SIZE
- _RAM_ADDR
- _RAM_SIZE
which are surprisingly also defined in some dts_fixup.h files.

Finally, some manual corrections had to be done as well:
- name##_IRQ -> DT_##name##_IRQ in uart_stm32.c

Signed-off-by: Andrzej Głąbek <andrzej.glabek@nordicsemi.no>
2018-11-13 10:44:42 -06:00
..
base64 lib: base64: Add statement of changes 2018-03-23 13:54:48 +01:00
cmsis_rtos_v1 kernel: Change k_poll_signal api 2018-11-04 11:37:24 -05:00
crc crc8: fix const correctness 2018-10-04 16:37:21 -05:00
json lib: json: Fix warning when building with newlib 2018-07-12 16:01:30 -05:00
libc dts_fixups: Use DT_ prefix in all defined labels not related to Kconfig 2018-11-13 10:44:42 -06:00
mempool lib: mempool: Fix compile warning 2018-10-29 10:52:00 -04:00
posix lib: posix: fs: Convert to use generic fdtable 2018-11-04 22:04:11 +01:00
rbtree lib: Normalize if/else statements 2018-11-06 16:20:15 -05:00
ring_buffer lib: ring_buffer: add raw byte access mode 2018-10-09 13:58:44 -04:00
CMakeLists.txt lib: posix: Implement generic file descriptor table 2018-11-04 22:04:11 +01:00
Kconfig Kconfig: Use a short, consistent style for prompts 2018-08-15 04:10:10 -07:00
fdtable.c lib: fdtable: File descriptor table should reside in kernel memory 2018-11-08 09:47:46 -08:00
thread_entry.c kernel: thread: Move out the function _thread_entry() to lib 2018-05-15 17:48:18 +03:00