Skip to content

[FEATURE]SPI module SSPx macros #385

@StrahinjaJacimovic

Description

@StrahinjaJacimovic

Is your feature request related to a problem? Please describe.

The feature is related to changing the SPI low level implementation.

To be more precise, the module enabling function.

Describe the solution you'd like

Instead of generalized SSPx macros, use module specified macros.

Describe alternatives you've considered

Suggestion for low level SPI implementation is:

// Add inside source in the PRIVATE MACROS section
#ifndef HAL_LL_SSP1_MODULE_BIT
    #ifdef HAL_LL_SPI1_MODULE_BIT
        #define HAL_LL_SSP1_MODULE_BIT HAL_LL_SPI1_MODULE_BIT
    #endif
#endif

#ifndef HAL_LL_SSP2_MODULE_BIT
    #ifdef HAL_LL_SPI2_MODULE_BIT
        #define HAL_LL_SSP2_MODULE_BIT HAL_LL_SPI2_MODULE_BIT
    #endif
#endif

Additional context

This will work in congestion with new mcu_definition.h files.


Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions