Skip to content

Commit

Permalink
[ext] Remove peripheral typedef in device header
Browse files Browse the repository at this point in the history
They do not work reliably.
  • Loading branch information
salkinium committed Oct 1, 2023
1 parent 9b961f6 commit d22ef29
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions ext/st/device.hpp.in
Original file line number Diff line number Diff line change
Expand Up @@ -61,19 +61,4 @@
#define RCC_CFGR_PPRE_DIV16 (0x00007000UL) /*!< HCLK divided by 16 */
%% endif

/// @cond
// This is a hack to make the *_Typedef's known to GDB, so that you can debug
// the peripherals directly in GDB in any context.
// Otherwise GDB would throw a "no symbol 'GPIO_TypeDef' in current context".
%% for (name, type) in peripherals
%% if type == "SAU_Type"
#if defined (__ARM_FEATURE_CMSE) && (__ARM_FEATURE_CMSE == 3U)
%% endif
extern {{ type | lbuild.pad(19) }} ___{{ name | lbuild.pad(15) }};
%% if type == "SAU_Type"
#endif /* defined (__ARM_FEATURE_CMSE) && (__ARM_FEATURE_CMSE == 3U) */
%% endif
%% endfor
/// @endcond

#endif // MODM_DEVICE_HPP

0 comments on commit d22ef29

Please sign in to comment.