30 May
2023
30 May
'23
7:06 a.m.
On 30.05.2023 09:47, Claudiu Beznea - M18063 wrote:
#define CLKPOL_BIT 5
#define TRITXEN_BIT 4
#define ELM_BIT 3
#define SYNCM_BIT 2
#define MS_BIT 1
Instead of these *_BIT defines as plain numbers you can defined them using BIT() macro and use macros in place instead of enum TDM_CLKPOL clkpolity; enum TDM_ELM elm; enum TDM_SYNCM syncm; enum TDM_MASTER_SLAVE_MODE ms_mode;
Something happens w/ my email client and I sent this section by accident. Thus you can ignore it.