Posted on May 17, 2011 at 14:10I found a partial solution. If you declare M25P_DMA_SPITXE as 32bit: # Define M25P_DMA_SPITXE (u32 )(*(( u32 *) 0x42400600)) Then after compiling the STR instruction is used: 0x0800154E 4E32 LDR r6, [pc, # 200]; @ 0x08...
Posted on May 17, 2011 at 14:10This macro works! For example, for GPIO:typedef enum {Low = 0, High = 1} Pin;#define PE13out (Pin)(*((Pin*) 0x422301B4)) //GPIOE13 register ODR /***********************************************************************...