39#ifndef LIBBSP_ARM_TMS570_SPI
40#define LIBBSP_ARM_TMS570_SPI
71 uint8_t reserved1 [4];
79 uint8_t reserved2 [8];
86 uint8_t reserved3 [4];
91 uint32_t RXOVRN_BUF_ADDR;
93 uint32_t EXT_PRESCALE1;
94 uint32_t EXT_PRESCALE2;
100#define TMS570_SPI_GCR0_nRESET BSP_BIT32(0)
105#define TMS570_SPI_GCR1_SPIEN BSP_BIT32(24)
108#define TMS570_SPI_GCR1_LOOPBACK BSP_BIT32(16)
111#define TMS570_SPI_GCR1_POWERDOWN BSP_BIT32(8)
114#define TMS570_SPI_GCR1_CLKMOD BSP_BIT32(1)
117#define TMS570_SPI_GCR1_MASTER BSP_BIT32(0)
122#define TMS570_SPI_INT0_ENABLEHIGHZ BSP_BIT32(24)
125#define TMS570_SPI_INT0_DMAREQEN BSP_BIT32(16)
130#define TMS570_SPI_LVL_TXINTLVL BSP_BIT32(9)
133#define TMS570_SPI_LVL_RXINTLVL BSP_BIT32(8)
136#define TMS570_SPI_LVL_RXOVRNINTLVL BSP_BIT32(6)
139#define TMS570_SPI_LVL_BITERRLVL BSP_BIT32(4)
142#define TMS570_SPI_LVL_DESYNCLVL BSP_BIT32(3)
145#define TMS570_SPI_LVL_PARERRLVL BSP_BIT32(2)
148#define TMS570_SPI_LVL_TIMEOUTLVL BSP_BIT32(1)
151#define TMS570_SPI_LVL_DLENERRLVL BSP_BIT32(0)
156#define TMS570_SPI_FLG_BUFINITACTIVE BSP_BIT32(24)
159#define TMS570_SPI_FLG_TXINTFLG BSP_BIT32(9)
162#define TMS570_SPI_FLG_RXINTFLG BSP_BIT32(8)
165#define TMS570_SPI_FLG_RXOVRNINTFLG BSP_BIT32(6)
168#define TMS570_SPI_FLG_BITERRFLG BSP_BIT32(4)
171#define TMS570_SPI_FLG_DESYNCFLG BSP_BIT32(3)
174#define TMS570_SPI_FLG_PARITYERRFLG BSP_BIT32(2)
177#define TMS570_SPI_FLG_TIMEOUTFLG BSP_BIT32(1)
180#define TMS570_SPI_FLG_DLENERRFLG BSP_BIT32(0)
185#define TMS570_SPI_PC0_SOMIFUN(val) BSP_FLD32(val,24, 31)
186#define TMS570_SPI_PC0_SOMIFUN_GET(reg) BSP_FLD32GET(reg,24, 31)
187#define TMS570_SPI_PC0_SOMIFUN_SET(reg,val) BSP_FLD32SET(reg, val,24, 31)
190#define TMS570_SPI_PC0_SIMOFUN(val) BSP_FLD32(val,16, 23)
191#define TMS570_SPI_PC0_SIMOFUN_GET(reg) BSP_FLD32GET(reg,16, 23)
192#define TMS570_SPI_PC0_SIMOFUN_SET(reg,val) BSP_FLD32SET(reg, val,16, 23)
195#define TMS570_SPI_PC0_SOMIFUN0 BSP_BIT32(11)
198#define TMS570_SPI_PC0_SIMOFUN0 BSP_BIT32(10)
201#define TMS570_SPI_PC0_CLKFUN BSP_BIT32(9)
204#define TMS570_SPI_PC0_ENAFUN BSP_BIT32(8)
207#define TMS570_SPI_PC0_SCSFUN(val) BSP_FLD32(val,0, 7)
208#define TMS570_SPI_PC0_SCSFUN_GET(reg) BSP_FLD32GET(reg,0, 7)
209#define TMS570_SPI_PC0_SCSFUN_SET(reg,val) BSP_FLD32SET(reg, val,0, 7)
214#define TMS570_SPI_PC1_SOMIDIR(val) BSP_FLD32(val,24, 31)
215#define TMS570_SPI_PC1_SOMIDIR_GET(reg) BSP_FLD32GET(reg,24, 31)
216#define TMS570_SPI_PC1_SOMIDIR_SET(reg,val) BSP_FLD32SET(reg, val,24, 31)
219#define TMS570_SPI_PC1_SIMODIR(val) BSP_FLD32(val,16, 23)
220#define TMS570_SPI_PC1_SIMODIR_GET(reg) BSP_FLD32GET(reg,16, 23)
221#define TMS570_SPI_PC1_SIMODIR_SET(reg,val) BSP_FLD32SET(reg, val,16, 23)
224#define TMS570_SPI_PC1_SOMIDIR0 BSP_BIT32(11)
227#define TMS570_SPI_PC1_SIMODIR0 BSP_BIT32(10)
230#define TMS570_SPI_PC1_CLKDIR BSP_BIT32(9)
233#define TMS570_SPI_PC1_ENADIR BSP_BIT32(8)
236#define TMS570_SPI_PC1_SCSDIR(val) BSP_FLD32(val,0, 7)
237#define TMS570_SPI_PC1_SCSDIR_GET(reg) BSP_FLD32GET(reg,0, 7)
238#define TMS570_SPI_PC1_SCSDIR_SET(reg,val) BSP_FLD32SET(reg, val,0, 7)
243#define TMS570_SPI_PC2_SOMIDIN(val) BSP_FLD32(val,24, 31)
244#define TMS570_SPI_PC2_SOMIDIN_GET(reg) BSP_FLD32GET(reg,24, 31)
245#define TMS570_SPI_PC2_SOMIDIN_SET(reg,val) BSP_FLD32SET(reg, val,24, 31)
248#define TMS570_SPI_PC2_SIMODIN(val) BSP_FLD32(val,16, 23)
249#define TMS570_SPI_PC2_SIMODIN_GET(reg) BSP_FLD32GET(reg,16, 23)
250#define TMS570_SPI_PC2_SIMODIN_SET(reg,val) BSP_FLD32SET(reg, val,16, 23)
253#define TMS570_SPI_PC2_SOMIDIN0 BSP_BIT32(11)
256#define TMS570_SPI_PC2_SIMODIN0 BSP_BIT32(10)
259#define TMS570_SPI_PC2_CLKDIN BSP_BIT32(9)
262#define TMS570_SPI_PC2_ENADIN BSP_BIT32(8)
265#define TMS570_SPI_PC2_SCSDIN(val) BSP_FLD32(val,0, 7)
266#define TMS570_SPI_PC2_SCSDIN_GET(reg) BSP_FLD32GET(reg,0, 7)
267#define TMS570_SPI_PC2_SCSDIN_SET(reg,val) BSP_FLD32SET(reg, val,0, 7)
272#define TMS570_SPI_PC3_SOMIDOUT(val) BSP_FLD32(val,24, 31)
273#define TMS570_SPI_PC3_SOMIDOUT_GET(reg) BSP_FLD32GET(reg,24, 31)
274#define TMS570_SPI_PC3_SOMIDOUT_SET(reg,val) BSP_FLD32SET(reg, val,24, 31)
277#define TMS570_SPI_PC3_SIMODOUT(val) BSP_FLD32(val,16, 23)
278#define TMS570_SPI_PC3_SIMODOUT_GET(reg) BSP_FLD32GET(reg,16, 23)
279#define TMS570_SPI_PC3_SIMODOUT_SET(reg,val) BSP_FLD32SET(reg, val,16, 23)
282#define TMS570_SPI_PC3_SOMIDOUT0 BSP_BIT32(11)
285#define TMS570_SPI_PC3_SIMODOUT0 BSP_BIT32(10)
288#define TMS570_SPI_PC3_CLKDOUT BSP_BIT32(9)
291#define TMS570_SPI_PC3_ENADOUT BSP_BIT32(8)
294#define TMS570_SPI_PC3_SCSDOUT(val) BSP_FLD32(val,0, 7)
295#define TMS570_SPI_PC3_SCSDOUT_GET(reg) BSP_FLD32GET(reg,0, 7)
296#define TMS570_SPI_PC3_SCSDOUT_SET(reg,val) BSP_FLD32SET(reg, val,0, 7)
301#define TMS570_SPI_PC4_SOMISET(val) BSP_FLD32(val,24, 31)
302#define TMS570_SPI_PC4_SOMISET_GET(reg) BSP_FLD32GET(reg,24, 31)
303#define TMS570_SPI_PC4_SOMISET_SET(reg,val) BSP_FLD32SET(reg, val,24, 31)
306#define TMS570_SPI_PC4_SIMOSET(val) BSP_FLD32(val,16, 23)
307#define TMS570_SPI_PC4_SIMOSET_GET(reg) BSP_FLD32GET(reg,16, 23)
308#define TMS570_SPI_PC4_SIMOSET_SET(reg,val) BSP_FLD32SET(reg, val,16, 23)
311#define TMS570_SPI_PC4_SOMISET0 BSP_BIT32(11)
314#define TMS570_SPI_PC4_SIMOSET0 BSP_BIT32(10)
317#define TMS570_SPI_PC4_CLKSET BSP_BIT32(9)
320#define TMS570_SPI_PC4_ENASET BSP_BIT32(8)
323#define TMS570_SPI_PC4_SCSSET(val) BSP_FLD32(val,0, 7)
324#define TMS570_SPI_PC4_SCSSET_GET(reg) BSP_FLD32GET(reg,0, 7)
325#define TMS570_SPI_PC4_SCSSET_SET(reg,val) BSP_FLD32SET(reg, val,0, 7)
330#define TMS570_SPI_PC5_SOMICLR(val) BSP_FLD32(val,24, 31)
331#define TMS570_SPI_PC5_SOMICLR_GET(reg) BSP_FLD32GET(reg,24, 31)
332#define TMS570_SPI_PC5_SOMICLR_SET(reg,val) BSP_FLD32SET(reg, val,24, 31)
335#define TMS570_SPI_PC5_SIMOCLR(val) BSP_FLD32(val,16, 23)
336#define TMS570_SPI_PC5_SIMOCLR_GET(reg) BSP_FLD32GET(reg,16, 23)
337#define TMS570_SPI_PC5_SIMOCLR_SET(reg,val) BSP_FLD32SET(reg, val,16, 23)
340#define TMS570_SPI_PC5_SOMICLR0 BSP_BIT32(11)
343#define TMS570_SPI_PC5_SIMOCLR0 BSP_BIT32(10)
346#define TMS570_SPI_PC5_CLKCLR BSP_BIT32(9)
349#define TMS570_SPI_PC5_ENACLR BSP_BIT32(8)
352#define TMS570_SPI_PC5_SCSCLR(val) BSP_FLD32(val,0, 7)
353#define TMS570_SPI_PC5_SCSCLR_GET(reg) BSP_FLD32GET(reg,0, 7)
354#define TMS570_SPI_PC5_SCSCLR_SET(reg,val) BSP_FLD32SET(reg, val,0, 7)
359#define TMS570_SPI_PC6_SOMIPDR(val) BSP_FLD32(val,24, 31)
360#define TMS570_SPI_PC6_SOMIPDR_GET(reg) BSP_FLD32GET(reg,24, 31)
361#define TMS570_SPI_PC6_SOMIPDR_SET(reg,val) BSP_FLD32SET(reg, val,24, 31)
364#define TMS570_SPI_PC6_SIMOPDR(val) BSP_FLD32(val,16, 23)
365#define TMS570_SPI_PC6_SIMOPDR_GET(reg) BSP_FLD32GET(reg,16, 23)
366#define TMS570_SPI_PC6_SIMOPDR_SET(reg,val) BSP_FLD32SET(reg, val,16, 23)
369#define TMS570_SPI_PC6_SOMIPDR0 BSP_BIT32(11)
372#define TMS570_SPI_PC6_SIMOPDR0 BSP_BIT32(10)
375#define TMS570_SPI_PC6_CLKPDR BSP_BIT32(9)
378#define TMS570_SPI_PC6_ENAPDR BSP_BIT32(8)
381#define TMS570_SPI_PC6_SCSPDR(val) BSP_FLD32(val,0, 7)
382#define TMS570_SPI_PC6_SCSPDR_GET(reg) BSP_FLD32GET(reg,0, 7)
383#define TMS570_SPI_PC6_SCSPDR_SET(reg,val) BSP_FLD32SET(reg, val,0, 7)
388#define TMS570_SPI_PC7_SOMIDIS(val) BSP_FLD32(val,24, 31)
389#define TMS570_SPI_PC7_SOMIDIS_GET(reg) BSP_FLD32GET(reg,24, 31)
390#define TMS570_SPI_PC7_SOMIDIS_SET(reg,val) BSP_FLD32SET(reg, val,24, 31)
393#define TMS570_SPI_PC7_SIMODIS(val) BSP_FLD32(val,16, 23)
394#define TMS570_SPI_PC7_SIMODIS_GET(reg) BSP_FLD32GET(reg,16, 23)
395#define TMS570_SPI_PC7_SIMODIS_SET(reg,val) BSP_FLD32SET(reg, val,16, 23)
398#define TMS570_SPI_PC7_SOMIPDIS0 BSP_BIT32(11)
401#define TMS570_SPI_PC7_SIMOPDIS0 BSP_BIT32(10)
404#define TMS570_SPI_PC7_CLKPDIS BSP_BIT32(9)
407#define TMS570_SPI_PC7_ENAPDIS BSP_BIT32(8)
410#define TMS570_SPI_PC7_SCSPDIS(val) BSP_FLD32(val,0, 7)
411#define TMS570_SPI_PC7_SCSPDIS_GET(reg) BSP_FLD32GET(reg,0, 7)
412#define TMS570_SPI_PC7_SCSPDIS_SET(reg,val) BSP_FLD32SET(reg, val,0, 7)
417#define TMS570_SPI_PC8_SOMIPSEL(val) BSP_FLD32(val,24, 31)
418#define TMS570_SPI_PC8_SOMIPSEL_GET(reg) BSP_FLD32GET(reg,24, 31)
419#define TMS570_SPI_PC8_SOMIPSEL_SET(reg,val) BSP_FLD32SET(reg, val,24, 31)
422#define TMS570_SPI_PC8_SIMOPSEL(val) BSP_FLD32(val,16, 23)
423#define TMS570_SPI_PC8_SIMOPSEL_GET(reg) BSP_FLD32GET(reg,16, 23)
424#define TMS570_SPI_PC8_SIMOPSEL_SET(reg,val) BSP_FLD32SET(reg, val,16, 23)
427#define TMS570_SPI_PC8_SOMIPSEL0 BSP_BIT32(11)
430#define TMS570_SPI_PC8_SIMOPSEL0 BSP_BIT32(10)
433#define TMS570_SPI_PC8_CLKPSEL BSP_BIT32(9)
436#define TMS570_SPI_PC8_ENAPSEL BSP_BIT32(8)
439#define TMS570_SPI_PC8_SCSPSEL(val) BSP_FLD32(val,0, 7)
440#define TMS570_SPI_PC8_SCSPSEL_GET(reg) BSP_FLD32GET(reg,0, 7)
441#define TMS570_SPI_PC8_SCSPSEL_SET(reg,val) BSP_FLD32SET(reg, val,0, 7)
446#define TMS570_SPI_DAT0_TXDATA(val) BSP_FLD32(val,0, 15)
447#define TMS570_SPI_DAT0_TXDATA_GET(reg) BSP_FLD32GET(reg,0, 15)
448#define TMS570_SPI_DAT0_TXDATA_SET(reg,val) BSP_FLD32SET(reg, val,0, 15)
453#define TMS570_SPI_DAT1_CSHOLD BSP_BIT32(28)
456#define TMS570_SPI_DAT1_WDEL BSP_BIT32(26)
459#define TMS570_SPI_DAT1_DFSEL(val) BSP_FLD32(val,24, 25)
460#define TMS570_SPI_DAT1_DFSEL_GET(reg) BSP_FLD32GET(reg,24, 25)
461#define TMS570_SPI_DAT1_DFSEL_SET(reg,val) BSP_FLD32SET(reg, val,24, 25)
464#define TMS570_SPI_DAT1_CSNR(val) BSP_FLD32(val,16, 23)
465#define TMS570_SPI_DAT1_CSNR_GET(reg) BSP_FLD32GET(reg,16, 23)
466#define TMS570_SPI_DAT1_CSNR_SET(reg,val) BSP_FLD32SET(reg, val,16, 23)
469#define TMS570_SPI_DAT1_TXDATA(val) BSP_FLD32(val,0, 15)
470#define TMS570_SPI_DAT1_TXDATA_GET(reg) BSP_FLD32GET(reg,0, 15)
471#define TMS570_SPI_DAT1_TXDATA_SET(reg,val) BSP_FLD32SET(reg, val,0, 15)
476#define TMS570_SPI_BUF_RXEMPTY BSP_BIT32(31)
479#define TMS570_SPI_BUF_RXOVR BSP_BIT32(30)
482#define TMS570_SPI_BUF_TXFULL BSP_BIT32(29)
485#define TMS570_SPI_BUF_BITERR BSP_BIT32(28)
488#define TMS570_SPI_BUF_DESYNC BSP_BIT32(27)
491#define TMS570_SPI_BUF_PARITYERR BSP_BIT32(26)
494#define TMS570_SPI_BUF_TIMEOUT BSP_BIT32(25)
497#define TMS570_SPI_BUF_DLENERR BSP_BIT32(24)
500#define TMS570_SPI_BUF_LCSNR(val) BSP_FLD32(val,16, 23)
501#define TMS570_SPI_BUF_LCSNR_GET(reg) BSP_FLD32GET(reg,16, 23)
502#define TMS570_SPI_BUF_LCSNR_SET(reg,val) BSP_FLD32SET(reg, val,16, 23)
505#define TMS570_SPI_BUF_RXDATA(val) BSP_FLD32(val,0, 15)
506#define TMS570_SPI_BUF_RXDATA_GET(reg) BSP_FLD32GET(reg,0, 15)
507#define TMS570_SPI_BUF_RXDATA_SET(reg,val) BSP_FLD32SET(reg, val,0, 15)
512#define TMS570_SPI_EMU_EMU_RXDATA(val) BSP_FLD32(val,0, 15)
513#define TMS570_SPI_EMU_EMU_RXDATA_GET(reg) BSP_FLD32GET(reg,0, 15)
514#define TMS570_SPI_EMU_EMU_RXDATA_SET(reg,val) BSP_FLD32SET(reg, val,0, 15)
519#define TMS570_SPI_DELAY_C2TDELAY(val) BSP_FLD32(val,24, 31)
520#define TMS570_SPI_DELAY_C2TDELAY_GET(reg) BSP_FLD32GET(reg,24, 31)
521#define TMS570_SPI_DELAY_C2TDELAY_SET(reg,val) BSP_FLD32SET(reg, val,24, 31)
524#define TMS570_SPI_DELAY_T2CDELAY(val) BSP_FLD32(val,16, 23)
525#define TMS570_SPI_DELAY_T2CDELAY_GET(reg) BSP_FLD32GET(reg,16, 23)
526#define TMS570_SPI_DELAY_T2CDELAY_SET(reg,val) BSP_FLD32SET(reg, val,16, 23)
529#define TMS570_SPI_DELAY_T2EDELAY(val) BSP_FLD32(val,8, 15)
530#define TMS570_SPI_DELAY_T2EDELAY_GET(reg) BSP_FLD32GET(reg,8, 15)
531#define TMS570_SPI_DELAY_T2EDELAY_SET(reg,val) BSP_FLD32SET(reg, val,8, 15)
534#define TMS570_SPI_DELAY_C2EDELAY(val) BSP_FLD32(val,0, 7)
535#define TMS570_SPI_DELAY_C2EDELAY_GET(reg) BSP_FLD32GET(reg,0, 7)
536#define TMS570_SPI_DELAY_C2EDELAY_SET(reg,val) BSP_FLD32SET(reg, val,0, 7)
541#define TMS570_SPI_DEF_CDEF(val) BSP_FLD32(val,0, 7)
542#define TMS570_SPI_DEF_CDEF_GET(reg) BSP_FLD32GET(reg,0, 7)
543#define TMS570_SPI_DEF_CDEF_SET(reg,val) BSP_FLD32SET(reg, val,0, 7)
548#define TMS570_SPI_FMTx_WDELAY(val) BSP_FLD32(val,24, 31)
549#define TMS570_SPI_FMTx_WDELAY_GET(reg) BSP_FLD32GET(reg,24, 31)
550#define TMS570_SPI_FMTx_WDELAY_SET(reg,val) BSP_FLD32SET(reg, val,24, 31)
553#define TMS570_SPI_FMTx_PARPOL BSP_BIT32(23)
556#define TMS570_SPI_FMTx_PARITYENA BSP_BIT32(22)
559#define TMS570_SPI_FMTx_WAITENA BSP_BIT32(21)
562#define TMS570_SPI_FMTx_SHIFTDIR BSP_BIT32(20)
565#define TMS570_SPI_FMTx_HDUPLEX_ENAx BSP_BIT32(19)
568#define TMS570_SPI_FMTx_DIS_CS_TIMERS BSP_BIT32(18)
571#define TMS570_SPI_FMTx_POLARITY BSP_BIT32(17)
574#define TMS570_SPI_FMTx_PHASE BSP_BIT32(16)
577#define TMS570_SPI_FMTx_PRESCALE(val) BSP_FLD32(val,8, 15)
578#define TMS570_SPI_FMTx_PRESCALE_GET(reg) BSP_FLD32GET(reg,8, 15)
579#define TMS570_SPI_FMTx_PRESCALE_SET(reg,val) BSP_FLD32SET(reg, val,8, 15)
582#define TMS570_SPI_FMTx_CHARLEN(val) BSP_FLD32(val,0, 4)
583#define TMS570_SPI_FMTx_CHARLEN_GET(reg) BSP_FLD32GET(reg,0, 4)
584#define TMS570_SPI_FMTx_CHARLEN_SET(reg,val) BSP_FLD32SET(reg, val,0, 4)
589#define TMS570_SPI_INTVECT0_INTVECT0(val) BSP_FLD32(val,1, 5)
590#define TMS570_SPI_INTVECT0_INTVECT0_GET(reg) BSP_FLD32GET(reg,1, 5)
591#define TMS570_SPI_INTVECT0_INTVECT0_SET(reg,val) BSP_FLD32SET(reg, val,1, 5)
594#define TMS570_SPI_INTVECT0_SUSPEND0 BSP_BIT32(0)
599#define TMS570_SPI_INTVECT1_INTVECT1(val) BSP_FLD32(val,1, 5)
600#define TMS570_SPI_INTVECT1_INTVECT1_GET(reg) BSP_FLD32GET(reg,1, 5)
601#define TMS570_SPI_INTVECT1_INTVECT1_SET(reg,val) BSP_FLD32SET(reg, val,1, 5)
604#define TMS570_SPI_INTVECT1_SUSPEND1 BSP_BIT32(0)
609#define TMS570_SPI_PMCTRL_MOD_CLK_POL_3 BSP_BIT32(29)
612#define TMS570_SPI_PMCTRL_MMODE_3(val) BSP_FLD32(val,26, 28)
613#define TMS570_SPI_PMCTRL_MMODE_3_GET(reg) BSP_FLD32GET(reg,26, 28)
614#define TMS570_SPI_PMCTRL_MMODE_3_SET(reg,val) BSP_FLD32SET(reg, val,26, 28)
617#define TMS570_SPI_PMCTRL_PMODE_3(val) BSP_FLD32(val,24, 25)
618#define TMS570_SPI_PMCTRL_PMODE_3_GET(reg) BSP_FLD32GET(reg,24, 25)
619#define TMS570_SPI_PMCTRL_PMODE_3_SET(reg,val) BSP_FLD32SET(reg, val,24, 25)
622#define TMS570_SPI_PMCTRL_MOD_CLK_POL_2 BSP_BIT32(21)
625#define TMS570_SPI_PMCTRL_MMODE_2(val) BSP_FLD32(val,18, 20)
626#define TMS570_SPI_PMCTRL_MMODE_2_GET(reg) BSP_FLD32GET(reg,18, 20)
627#define TMS570_SPI_PMCTRL_MMODE_2_SET(reg,val) BSP_FLD32SET(reg, val,18, 20)
630#define TMS570_SPI_PMCTRL_PMODE_2(val) BSP_FLD32(val,16, 17)
631#define TMS570_SPI_PMCTRL_PMODE_2_GET(reg) BSP_FLD32GET(reg,16, 17)
632#define TMS570_SPI_PMCTRL_PMODE_2_SET(reg,val) BSP_FLD32SET(reg, val,16, 17)
635#define TMS570_SPI_PMCTRL_MOD_CLK_POL_1 BSP_BIT32(13)
638#define TMS570_SPI_PMCTRL_MMODE_1(val) BSP_FLD32(val,10, 12)
639#define TMS570_SPI_PMCTRL_MMODE_1_GET(reg) BSP_FLD32GET(reg,10, 12)
640#define TMS570_SPI_PMCTRL_MMODE_1_SET(reg,val) BSP_FLD32SET(reg, val,10, 12)
643#define TMS570_SPI_PMCTRL_PMODE_1(val) BSP_FLD32(val,8, 9)
644#define TMS570_SPI_PMCTRL_PMODE_1_GET(reg) BSP_FLD32GET(reg,8, 9)
645#define TMS570_SPI_PMCTRL_PMODE_1_SET(reg,val) BSP_FLD32SET(reg, val,8, 9)
648#define TMS570_SPI_PMCTRL_MOD_CLK_POL_0 BSP_BIT32(5)
651#define TMS570_SPI_PMCTRL_MMODE_0(val) BSP_FLD32(val,2, 4)
652#define TMS570_SPI_PMCTRL_MMODE_0_GET(reg) BSP_FLD32GET(reg,2, 4)
653#define TMS570_SPI_PMCTRL_MMODE_0_SET(reg,val) BSP_FLD32SET(reg, val,2, 4)
656#define TMS570_SPI_PMCTRL_PMODE_0(val) BSP_FLD32(val,0, 1)
657#define TMS570_SPI_PMCTRL_PMODE_0_GET(reg) BSP_FLD32GET(reg,0, 1)
658#define TMS570_SPI_PMCTRL_PMODE_0_SET(reg,val) BSP_FLD32SET(reg, val,0, 1)
663#define TMS570_SPI_MIBSPIE_RXRAM_ACCESS BSP_BIT32(16)
666#define TMS570_SPI_MIBSPIE_MSPIENA BSP_BIT32(0)
671#define TMS570_SPI_TGITENST_SET_INTENRDY(val) BSP_FLD32(val,16, 31)
672#define TMS570_SPI_TGITENST_SET_INTENRDY_GET(reg) BSP_FLD32GET(reg,16, 31)
673#define TMS570_SPI_TGITENST_SET_INTENRDY_SET(reg,val) BSP_FLD32SET(reg, val,16, 31)
676#define TMS570_SPI_TGITENST_SET_INTENSUS(val) BSP_FLD32(val,0, 15)
677#define TMS570_SPI_TGITENST_SET_INTENSUS_GET(reg) BSP_FLD32GET(reg,0, 15)
678#define TMS570_SPI_TGITENST_SET_INTENSUS_SET(reg,val) BSP_FLD32SET(reg, val,0, 15)
683#define TMS570_SPI_TGITENCR_CLR_INTENRDY(val) BSP_FLD32(val,16, 31)
684#define TMS570_SPI_TGITENCR_CLR_INTENRDY_GET(reg) BSP_FLD32GET(reg,16, 31)
685#define TMS570_SPI_TGITENCR_CLR_INTENRDY_SET(reg,val) BSP_FLD32SET(reg, val,16, 31)
688#define TMS570_SPI_TGITENCR_CLR_INTENSUS(val) BSP_FLD32(val,0, 15)
689#define TMS570_SPI_TGITENCR_CLR_INTENSUS_GET(reg) BSP_FLD32GET(reg,0, 15)
690#define TMS570_SPI_TGITENCR_CLR_INTENSUS_SET(reg,val) BSP_FLD32SET(reg, val,0, 15)
695#define TMS570_SPI_TGITLVST_SET_INTLVLRDY(val) BSP_FLD32(val,16, 31)
696#define TMS570_SPI_TGITLVST_SET_INTLVLRDY_GET(reg) BSP_FLD32GET(reg,16, 31)
697#define TMS570_SPI_TGITLVST_SET_INTLVLRDY_SET(reg,val) BSP_FLD32SET(reg, val,16, 31)
700#define TMS570_SPI_TGITLVST_SET_INTLVLSUS(val) BSP_FLD32(val,0, 15)
701#define TMS570_SPI_TGITLVST_SET_INTLVLSUS_GET(reg) BSP_FLD32GET(reg,0, 15)
702#define TMS570_SPI_TGITLVST_SET_INTLVLSUS_SET(reg,val) BSP_FLD32SET(reg, val,0, 15)
707#define TMS570_SPI_TGITLVCR_CLR_INTLVLRDY(val) BSP_FLD32(val,16, 31)
708#define TMS570_SPI_TGITLVCR_CLR_INTLVLRDY_GET(reg) BSP_FLD32GET(reg,16, 31)
709#define TMS570_SPI_TGITLVCR_CLR_INTLVLRDY_SET(reg,val) BSP_FLD32SET(reg, val,16, 31)
712#define TMS570_SPI_TGITLVCR_CLR_INTLVLSUS(val) BSP_FLD32(val,0, 15)
713#define TMS570_SPI_TGITLVCR_CLR_INTLVLSUS_GET(reg) BSP_FLD32GET(reg,0, 15)
714#define TMS570_SPI_TGITLVCR_CLR_INTLVLSUS_SET(reg,val) BSP_FLD32SET(reg, val,0, 15)
719#define TMS570_SPI_TGINTFLG_INTFLGRDY(val) BSP_FLD32(val,16, 31)
720#define TMS570_SPI_TGINTFLG_INTFLGRDY_GET(reg) BSP_FLD32GET(reg,16, 31)
721#define TMS570_SPI_TGINTFLG_INTFLGRDY_SET(reg,val) BSP_FLD32SET(reg, val,16, 31)
724#define TMS570_SPI_TGINTFLG_INTFLGSUS(val) BSP_FLD32(val,0, 15)
725#define TMS570_SPI_TGINTFLG_INTFLGSUS_GET(reg) BSP_FLD32GET(reg,0, 15)
726#define TMS570_SPI_TGINTFLG_INTFLGSUS_SET(reg,val) BSP_FLD32SET(reg, val,0, 15)
731#define TMS570_SPI_TICKCNT_TICKENA BSP_BIT32(31)
734#define TMS570_SPI_TICKCNT_RELOAD BSP_BIT32(30)
737#define TMS570_SPI_TICKCNT_CLKCTRL(val) BSP_FLD32(val,28, 29)
738#define TMS570_SPI_TICKCNT_CLKCTRL_GET(reg) BSP_FLD32GET(reg,28, 29)
739#define TMS570_SPI_TICKCNT_CLKCTRL_SET(reg,val) BSP_FLD32SET(reg, val,28, 29)
742#define TMS570_SPI_TICKCNT_TICKVALUE(val) BSP_FLD32(val,0, 15)
743#define TMS570_SPI_TICKCNT_TICKVALUE_GET(reg) BSP_FLD32GET(reg,0, 15)
744#define TMS570_SPI_TICKCNT_TICKVALUE_SET(reg,val) BSP_FLD32SET(reg, val,0, 15)
749#define TMS570_SPI_LTGPEND_TG_IN_SERVICE(val) BSP_FLD32(val,24, 28)
750#define TMS570_SPI_LTGPEND_TG_IN_SERVICE_GET(reg) BSP_FLD32GET(reg,24, 28)
751#define TMS570_SPI_LTGPEND_TG_IN_SERVICE_SET(reg,val) BSP_FLD32SET(reg, val,24, 28)
754#define TMS570_SPI_LTGPEND_LPEND(val) BSP_FLD32(val,8, 14)
755#define TMS570_SPI_LTGPEND_LPEND_GET(reg) BSP_FLD32GET(reg,8, 14)
756#define TMS570_SPI_LTGPEND_LPEND_SET(reg,val) BSP_FLD32SET(reg, val,8, 14)
761#define TMS570_SPI_TGCTRL_TGENA BSP_BIT32(31)
764#define TMS570_SPI_TGCTRL_ONESHOTx BSP_BIT32(30)
767#define TMS570_SPI_TGCTRL_PRSTx BSP_BIT32(29)
770#define TMS570_SPI_TGCTRL_TGTDx BSP_BIT32(28)
775#define TMS570_SPI_DMACTRL_ONESHOT BSP_BIT32(31)
778#define TMS570_SPI_DMACTRL_BUFIDx(val) BSP_FLD32(val,24, 30)
779#define TMS570_SPI_DMACTRL_BUFIDx_GET(reg) BSP_FLD32GET(reg,24, 30)
780#define TMS570_SPI_DMACTRL_BUFIDx_SET(reg,val) BSP_FLD32SET(reg, val,24, 30)
783#define TMS570_SPI_DMACTRL_RXDMA_MAPx(val) BSP_FLD32(val,20, 23)
784#define TMS570_SPI_DMACTRL_RXDMA_MAPx_GET(reg) BSP_FLD32GET(reg,20, 23)
785#define TMS570_SPI_DMACTRL_RXDMA_MAPx_SET(reg,val) BSP_FLD32SET(reg, val,20, 23)
788#define TMS570_SPI_DMACTRL_TXDMA_MAPx(val) BSP_FLD32(val,16, 19)
789#define TMS570_SPI_DMACTRL_TXDMA_MAPx_GET(reg) BSP_FLD32GET(reg,16, 19)
790#define TMS570_SPI_DMACTRL_TXDMA_MAPx_SET(reg,val) BSP_FLD32SET(reg, val,16, 19)
793#define TMS570_SPI_DMACTRL_RXDMAENAx BSP_BIT32(15)
796#define TMS570_SPI_DMACTRL_TXDAMENAx BSP_BIT32(14)
799#define TMS570_SPI_DMACTRL_NOBRKx BSP_BIT32(13)
802#define TMS570_SPI_DMACTRL_ICOUNTx(val) BSP_FLD32(val,8, 12)
803#define TMS570_SPI_DMACTRL_ICOUNTx_GET(reg) BSP_FLD32GET(reg,8, 12)
804#define TMS570_SPI_DMACTRL_ICOUNTx_SET(reg,val) BSP_FLD32SET(reg, val,8, 12)
807#define TMS570_SPI_DMACTRL_COUNT_BIT17x BSP_BIT32(6)
810#define TMS570_SPI_DMACTRL_COUNTx(val) BSP_FLD32(val,0, 5)
811#define TMS570_SPI_DMACTRL_COUNTx_GET(reg) BSP_FLD32GET(reg,0, 5)
812#define TMS570_SPI_DMACTRL_COUNTx_SET(reg,val) BSP_FLD32SET(reg, val,0, 5)
817#define TMS570_SPI_DMACOUNT_ICOUNTx(val) BSP_FLD32(val,16, 31)
818#define TMS570_SPI_DMACOUNT_ICOUNTx_GET(reg) BSP_FLD32GET(reg,16, 31)
819#define TMS570_SPI_DMACOUNT_ICOUNTx_SET(reg,val) BSP_FLD32SET(reg, val,16, 31)
822#define TMS570_SPI_DMACOUNT_COUNTx(val) BSP_FLD32(val,0, 15)
823#define TMS570_SPI_DMACOUNT_COUNTx_GET(reg) BSP_FLD32GET(reg,0, 15)
824#define TMS570_SPI_DMACOUNT_COUNTx_SET(reg,val) BSP_FLD32SET(reg, val,0, 15)
829#define TMS570_SPI_DMACNTLEN_LARGE_COUNT BSP_BIT32(0)
834#define TMS570_SPI_UERRCTRL_PTESTEN BSP_BIT32(8)
837#define TMS570_SPI_UERRCTRL_EDEN(val) BSP_FLD32(val,0, 3)
838#define TMS570_SPI_UERRCTRL_EDEN_GET(reg) BSP_FLD32GET(reg,0, 3)
839#define TMS570_SPI_UERRCTRL_EDEN_SET(reg,val) BSP_FLD32SET(reg, val,0, 3)
844#define TMS570_SPI_UERRSTAT_EDFLG1 BSP_BIT32(1)
847#define TMS570_SPI_UERRSTAT_EDFLG0 BSP_BIT32(0)
852#define TMS570_SPI_UERRADDRRX_OVERADDR1(val) BSP_FLD32(val,0, 9)
853#define TMS570_SPI_UERRADDRRX_OVERADDR1_GET(reg) BSP_FLD32GET(reg,0, 9)
854#define TMS570_SPI_UERRADDRRX_OVERADDR1_SET(reg,val) BSP_FLD32SET(reg, val,0, 9)
859#define TMS570_SPI_UERRADDRTX_UERRADDR0(val) BSP_FLD32(val,0, 8)
860#define TMS570_SPI_UERRADDRTX_UERRADDR0_GET(reg) BSP_FLD32GET(reg,0, 8)
861#define TMS570_SPI_UERRADDRTX_UERRADDR0_SET(reg,val) BSP_FLD32SET(reg, val,0, 8)
866#define TMS570_SPI_RXOVRN_BUF_ADDR_RXOVRN_BUF_ADDR(val) BSP_FLD32(val,0, 9)
867#define TMS570_SPI_RXOVRN_BUF_ADDR_RXOVRN_BUF_ADDR_GET(reg) BSP_FLD32GET(reg,0, 9)
868#define TMS570_SPI_RXOVRN_BUF_ADDR_RXOVRN_BUF_ADDR_SET(reg,val) BSP_FLD32SET(reg, val,0, 9)
873#define TMS570_SPI_IOLPBKTSTCR_SCS_FAIL_FLG BSP_BIT32(24)
876#define TMS570_SPI_IOLPBKTSTCR_CTRL_BITERR BSP_BIT32(20)
879#define TMS570_SPI_IOLPBKTSTCR_CTRL_DESYNC BSP_BIT32(19)
882#define TMS570_SPI_IOLPBKTSTCR_CTRL_PARERR BSP_BIT32(18)
885#define TMS570_SPI_IOLPBKTSTCR_CTRL_TIMEOUT BSP_BIT32(17)
888#define TMS570_SPI_IOLPBKTSTCR_CTRL_DLENERR BSP_BIT32(16)
891#define TMS570_SPI_IOLPBKTSTCR_IOLPBKSTENA(val) BSP_FLD32(val,8, 11)
892#define TMS570_SPI_IOLPBKTSTCR_IOLPBKSTENA_GET(reg) BSP_FLD32GET(reg,8, 11)
893#define TMS570_SPI_IOLPBKTSTCR_IOLPBKSTENA_SET(reg,val) BSP_FLD32SET(reg, val,8, 11)
896#define TMS570_SPI_IOLPBKTSTCR_ERR_SCS_PIN(val) BSP_FLD32(val,3, 5)
897#define TMS570_SPI_IOLPBKTSTCR_ERR_SCS_PIN_GET(reg) BSP_FLD32GET(reg,3, 5)
898#define TMS570_SPI_IOLPBKTSTCR_ERR_SCS_PIN_SET(reg,val) BSP_FLD32SET(reg, val,3, 5)
901#define TMS570_SPI_IOLPBKTSTCR_CTRL_SCS_PIN BSP_BIT32(2)
904#define TMS570_SPI_IOLPBKTSTCR_LPBK_TYPE BSP_BIT32(1)
907#define TMS570_SPI_IOLPBKTSTCR_RXP_ENA BSP_BIT32(0)
912#define TMS570_SPI_EXT_PRESCALEx_EPRESCALE_FMTx(val) BSP_FLD32(val,16, 26)
913#define TMS570_SPI_EXT_PRESCALEx_EPRESCALE_FMTx_GET(reg) BSP_FLD32GET(reg,16, 26)
914#define TMS570_SPI_EXT_PRESCALEx_EPRESCALE_FMTx_SET(reg,val) BSP_FLD32SET(reg, val,16, 26)
This header file provides utility macros for BSPs.