Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions stm32cube/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -139,3 +139,24 @@ endif()

# Add the series-agnostic LL headers to include directories
zephyr_include_directories(common_ll/include)

# Add placeholder for STM32Cube HAL Legacy definitions header
#
# Each serie's STM32Cube package originally contains a header
# provided for compatibility and filled with "old names" of
# various Cube definitions. These are not used from Zephyr
# as drivers should always be using the up-to-date Cube API
# and, more importantly, some of these "legacy" definitions
# clash with macros provided by Zephyr which breaks build!
#
# Sadly, the header can't be simply discarded when STM32Cube
# packages are added to this repository as it is included
# unconditionally by "stm32XXXxx_hal_def.h", a header which
# provides definitions we do need. To avoid the maintenance
# burden of patching every STM32Cube package to remove the
# the offending `#include "Legacy/stm32_hal_legacy.h"`, we
# instead do discard the Legacy header but add a carefully
# crafted directory to the include path such that, when the
# offending `#include` line is reached, it ends up including
# an empty header file and everything works out :)
zephyr_include_directories(cube_legacy_placeholder)
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/* Dummy replacement for HAL Legacy definitions header (c.f., CMakeLists.txt) */
4 changes: 0 additions & 4 deletions stm32cube/stm32c0xx/README
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,4 @@ Patch List:
-Added stm32cube/stm32c0xx/drivers/include/stm32_assert.h
-Removed unused stm32cube/stm32c0xx/drivers/include/stm32_assert_template.h

*Fix to remove PAGESIZE definition which conflicts with POSIX
Impacted files:
drivers/include/Legacy/stm32_hal_legacy.h

See release_note.html from STM32Cube
4,419 changes: 0 additions & 4,419 deletions stm32cube/stm32c0xx/drivers/include/Legacy/stm32_hal_legacy.h

This file was deleted.

4 changes: 0 additions & 4 deletions stm32cube/stm32f0xx/README
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,4 @@ Patch List:
-Added stm32cube/stm32f0xx/drivers/include/stm32_assert.h
-Removed unused stm32cube/stm32f0xx/drivers/include/stm32_assert_template.h

*Fix to remove PAGESIZE definition which conflicts with POSIX
Impacted files:
drivers/include/Legacy/stm32_hal_legacy.h

See release_note.html from STM32Cube
4,358 changes: 0 additions & 4,358 deletions stm32cube/stm32f0xx/drivers/include/Legacy/stm32_hal_legacy.h

This file was deleted.

790 changes: 0 additions & 790 deletions stm32cube/stm32f0xx/drivers/include/Legacy/stm32f0xx_hal_can_legacy.h

This file was deleted.

4 changes: 0 additions & 4 deletions stm32cube/stm32f1xx/README
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,4 @@ Patch List:
-Added stm32cube/stm32f1xx/drivers/include/stm32_assert.h
-Removed unused stm32cube/stm32f1xx/drivers/include/stm32_assert_template.h

*Fix to remove PAGESIZE definition which conflicts with POSIX
Impacted files:
drivers/include/Legacy/stm32_hal_legacy.h

See release_note.html from STM32Cube
4,375 changes: 0 additions & 4,375 deletions stm32cube/stm32f1xx/drivers/include/Legacy/stm32_hal_legacy.h

This file was deleted.

This file was deleted.

Loading