changed types to use <stdint.h>

This commit is contained in:
Markus Fröschle
2012-10-12 15:45:50 +00:00
parent d4ecd8a366
commit cd603546d7
44 changed files with 1990 additions and 1290 deletions

View File

@@ -24,87 +24,87 @@
*********************************************************************/
/* Register read/write macros */
#define MCF_INTC_IPRH (*(vuint32*)(&__MBAR[0x700]))
#define MCF_INTC_IPRL (*(vuint32*)(&__MBAR[0x704]))
#define MCF_INTC_IMRH (*(vuint32*)(&__MBAR[0x708]))
#define MCF_INTC_IMRL (*(vuint32*)(&__MBAR[0x70C]))
#define MCF_INTC_INTFRCH (*(vuint32*)(&__MBAR[0x710]))
#define MCF_INTC_INTFRCL (*(vuint32*)(&__MBAR[0x714]))
#define MCF_INTC_IRLR (*(vuint8 *)(&__MBAR[0x718]))
#define MCF_INTC_IACKLPR (*(vuint8 *)(&__MBAR[0x719]))
#define MCF_INTC_ICR01 (*(vuint8 *)(&__MBAR[0x741]))
#define MCF_INTC_ICR02 (*(vuint8 *)(&__MBAR[0x742]))
#define MCF_INTC_ICR03 (*(vuint8 *)(&__MBAR[0x743]))
#define MCF_INTC_ICR04 (*(vuint8 *)(&__MBAR[0x744]))
#define MCF_INTC_ICR05 (*(vuint8 *)(&__MBAR[0x745]))
#define MCF_INTC_ICR06 (*(vuint8 *)(&__MBAR[0x746]))
#define MCF_INTC_ICR07 (*(vuint8 *)(&__MBAR[0x747]))
#define MCF_INTC_ICR08 (*(vuint8 *)(&__MBAR[0x748]))
#define MCF_INTC_ICR09 (*(vuint8 *)(&__MBAR[0x749]))
#define MCF_INTC_ICR10 (*(vuint8 *)(&__MBAR[0x74A]))
#define MCF_INTC_ICR11 (*(vuint8 *)(&__MBAR[0x74B]))
#define MCF_INTC_ICR12 (*(vuint8 *)(&__MBAR[0x74C]))
#define MCF_INTC_ICR13 (*(vuint8 *)(&__MBAR[0x74D]))
#define MCF_INTC_ICR14 (*(vuint8 *)(&__MBAR[0x74E]))
#define MCF_INTC_ICR15 (*(vuint8 *)(&__MBAR[0x74F]))
#define MCF_INTC_ICR16 (*(vuint8 *)(&__MBAR[0x750]))
#define MCF_INTC_ICR17 (*(vuint8 *)(&__MBAR[0x751]))
#define MCF_INTC_ICR18 (*(vuint8 *)(&__MBAR[0x752]))
#define MCF_INTC_ICR19 (*(vuint8 *)(&__MBAR[0x753]))
#define MCF_INTC_ICR20 (*(vuint8 *)(&__MBAR[0x754]))
#define MCF_INTC_ICR21 (*(vuint8 *)(&__MBAR[0x755]))
#define MCF_INTC_ICR22 (*(vuint8 *)(&__MBAR[0x756]))
#define MCF_INTC_ICR23 (*(vuint8 *)(&__MBAR[0x757]))
#define MCF_INTC_ICR24 (*(vuint8 *)(&__MBAR[0x758]))
#define MCF_INTC_ICR25 (*(vuint8 *)(&__MBAR[0x759]))
#define MCF_INTC_ICR26 (*(vuint8 *)(&__MBAR[0x75A]))
#define MCF_INTC_ICR27 (*(vuint8 *)(&__MBAR[0x75B]))
#define MCF_INTC_ICR28 (*(vuint8 *)(&__MBAR[0x75C]))
#define MCF_INTC_ICR29 (*(vuint8 *)(&__MBAR[0x75D]))
#define MCF_INTC_ICR30 (*(vuint8 *)(&__MBAR[0x75E]))
#define MCF_INTC_ICR31 (*(vuint8 *)(&__MBAR[0x75F]))
#define MCF_INTC_ICR32 (*(vuint8 *)(&__MBAR[0x760]))
#define MCF_INTC_ICR33 (*(vuint8 *)(&__MBAR[0x761]))
#define MCF_INTC_ICR34 (*(vuint8 *)(&__MBAR[0x762]))
#define MCF_INTC_ICR35 (*(vuint8 *)(&__MBAR[0x763]))
#define MCF_INTC_ICR36 (*(vuint8 *)(&__MBAR[0x764]))
#define MCF_INTC_ICR37 (*(vuint8 *)(&__MBAR[0x765]))
#define MCF_INTC_ICR38 (*(vuint8 *)(&__MBAR[0x766]))
#define MCF_INTC_ICR39 (*(vuint8 *)(&__MBAR[0x767]))
#define MCF_INTC_ICR40 (*(vuint8 *)(&__MBAR[0x768]))
#define MCF_INTC_ICR41 (*(vuint8 *)(&__MBAR[0x769]))
#define MCF_INTC_ICR42 (*(vuint8 *)(&__MBAR[0x76A]))
#define MCF_INTC_ICR43 (*(vuint8 *)(&__MBAR[0x76B]))
#define MCF_INTC_ICR44 (*(vuint8 *)(&__MBAR[0x76C]))
#define MCF_INTC_ICR45 (*(vuint8 *)(&__MBAR[0x76D]))
#define MCF_INTC_ICR46 (*(vuint8 *)(&__MBAR[0x76E]))
#define MCF_INTC_ICR47 (*(vuint8 *)(&__MBAR[0x76F]))
#define MCF_INTC_ICR48 (*(vuint8 *)(&__MBAR[0x770]))
#define MCF_INTC_ICR49 (*(vuint8 *)(&__MBAR[0x771]))
#define MCF_INTC_ICR50 (*(vuint8 *)(&__MBAR[0x772]))
#define MCF_INTC_ICR51 (*(vuint8 *)(&__MBAR[0x773]))
#define MCF_INTC_ICR52 (*(vuint8 *)(&__MBAR[0x774]))
#define MCF_INTC_ICR53 (*(vuint8 *)(&__MBAR[0x775]))
#define MCF_INTC_ICR54 (*(vuint8 *)(&__MBAR[0x776]))
#define MCF_INTC_ICR55 (*(vuint8 *)(&__MBAR[0x777]))
#define MCF_INTC_ICR56 (*(vuint8 *)(&__MBAR[0x778]))
#define MCF_INTC_ICR57 (*(vuint8 *)(&__MBAR[0x779]))
#define MCF_INTC_ICR58 (*(vuint8 *)(&__MBAR[0x77A]))
#define MCF_INTC_ICR59 (*(vuint8 *)(&__MBAR[0x77B]))
#define MCF_INTC_ICR60 (*(vuint8 *)(&__MBAR[0x77C]))
#define MCF_INTC_ICR61 (*(vuint8 *)(&__MBAR[0x77D]))
#define MCF_INTC_ICR62 (*(vuint8 *)(&__MBAR[0x77E]))
#define MCF_INTC_ICR63 (*(vuint8 *)(&__MBAR[0x77F]))
#define MCF_INTC_SWIACK (*(vuint8 *)(&__MBAR[0x7E0]))
#define MCF_INTC_L1IACK (*(vuint8 *)(&__MBAR[0x7E4]))
#define MCF_INTC_L2IACK (*(vuint8 *)(&__MBAR[0x7E8]))
#define MCF_INTC_L3IACK (*(vuint8 *)(&__MBAR[0x7EC]))
#define MCF_INTC_L4IACK (*(vuint8 *)(&__MBAR[0x7F0]))
#define MCF_INTC_L5IACK (*(vuint8 *)(&__MBAR[0x7F4]))
#define MCF_INTC_L6IACK (*(vuint8 *)(&__MBAR[0x7F8]))
#define MCF_INTC_L7IACK (*(vuint8 *)(&__MBAR[0x7FC]))
#define MCF_INTC_ICR(x) (*(vuint8 *)(&__MBAR[0x741 + ((x-1)*0x1)]))
#define MCF_INTC_LIACK(x) (*(vuint8 *)(&__MBAR[0x7E4 + ((x-1)*0x4)]))
#define MCF_INTC_IPRH (*(volatile uint32_t*)(&__MBAR[0x700]))
#define MCF_INTC_IPRL (*(volatile uint32_t*)(&__MBAR[0x704]))
#define MCF_INTC_IMRH (*(volatile uint32_t*)(&__MBAR[0x708]))
#define MCF_INTC_IMRL (*(volatile uint32_t*)(&__MBAR[0x70C]))
#define MCF_INTC_INTFRCH (*(volatile uint32_t*)(&__MBAR[0x710]))
#define MCF_INTC_INTFRCL (*(volatile uint32_t*)(&__MBAR[0x714]))
#define MCF_INTC_IRLR (*(volatile uint8_t *)(&__MBAR[0x718]))
#define MCF_INTC_IACKLPR (*(volatile uint8_t *)(&__MBAR[0x719]))
#define MCF_INTC_ICR01 (*(volatile uint8_t *)(&__MBAR[0x741]))
#define MCF_INTC_ICR02 (*(volatile uint8_t *)(&__MBAR[0x742]))
#define MCF_INTC_ICR03 (*(volatile uint8_t *)(&__MBAR[0x743]))
#define MCF_INTC_ICR04 (*(volatile uint8_t *)(&__MBAR[0x744]))
#define MCF_INTC_ICR05 (*(volatile uint8_t *)(&__MBAR[0x745]))
#define MCF_INTC_ICR06 (*(volatile uint8_t *)(&__MBAR[0x746]))
#define MCF_INTC_ICR07 (*(volatile uint8_t *)(&__MBAR[0x747]))
#define MCF_INTC_ICR08 (*(volatile uint8_t *)(&__MBAR[0x748]))
#define MCF_INTC_ICR09 (*(volatile uint8_t *)(&__MBAR[0x749]))
#define MCF_INTC_ICR10 (*(volatile uint8_t *)(&__MBAR[0x74A]))
#define MCF_INTC_ICR11 (*(volatile uint8_t *)(&__MBAR[0x74B]))
#define MCF_INTC_ICR12 (*(volatile uint8_t *)(&__MBAR[0x74C]))
#define MCF_INTC_ICR13 (*(volatile uint8_t *)(&__MBAR[0x74D]))
#define MCF_INTC_ICR14 (*(volatile uint8_t *)(&__MBAR[0x74E]))
#define MCF_INTC_ICR15 (*(volatile uint8_t *)(&__MBAR[0x74F]))
#define MCF_INTC_ICR16 (*(volatile uint8_t *)(&__MBAR[0x750]))
#define MCF_INTC_ICR17 (*(volatile uint8_t *)(&__MBAR[0x751]))
#define MCF_INTC_ICR18 (*(volatile uint8_t *)(&__MBAR[0x752]))
#define MCF_INTC_ICR19 (*(volatile uint8_t *)(&__MBAR[0x753]))
#define MCF_INTC_ICR20 (*(volatile uint8_t *)(&__MBAR[0x754]))
#define MCF_INTC_ICR21 (*(volatile uint8_t *)(&__MBAR[0x755]))
#define MCF_INTC_ICR22 (*(volatile uint8_t *)(&__MBAR[0x756]))
#define MCF_INTC_ICR23 (*(volatile uint8_t *)(&__MBAR[0x757]))
#define MCF_INTC_ICR24 (*(volatile uint8_t *)(&__MBAR[0x758]))
#define MCF_INTC_ICR25 (*(volatile uint8_t *)(&__MBAR[0x759]))
#define MCF_INTC_ICR26 (*(volatile uint8_t *)(&__MBAR[0x75A]))
#define MCF_INTC_ICR27 (*(volatile uint8_t *)(&__MBAR[0x75B]))
#define MCF_INTC_ICR28 (*(volatile uint8_t *)(&__MBAR[0x75C]))
#define MCF_INTC_ICR29 (*(volatile uint8_t *)(&__MBAR[0x75D]))
#define MCF_INTC_ICR30 (*(volatile uint8_t *)(&__MBAR[0x75E]))
#define MCF_INTC_ICR31 (*(volatile uint8_t *)(&__MBAR[0x75F]))
#define MCF_INTC_ICR32 (*(volatile uint8_t *)(&__MBAR[0x760]))
#define MCF_INTC_ICR33 (*(volatile uint8_t *)(&__MBAR[0x761]))
#define MCF_INTC_ICR34 (*(volatile uint8_t *)(&__MBAR[0x762]))
#define MCF_INTC_ICR35 (*(volatile uint8_t *)(&__MBAR[0x763]))
#define MCF_INTC_ICR36 (*(volatile uint8_t *)(&__MBAR[0x764]))
#define MCF_INTC_ICR37 (*(volatile uint8_t *)(&__MBAR[0x765]))
#define MCF_INTC_ICR38 (*(volatile uint8_t *)(&__MBAR[0x766]))
#define MCF_INTC_ICR39 (*(volatile uint8_t *)(&__MBAR[0x767]))
#define MCF_INTC_ICR40 (*(volatile uint8_t *)(&__MBAR[0x768]))
#define MCF_INTC_ICR41 (*(volatile uint8_t *)(&__MBAR[0x769]))
#define MCF_INTC_ICR42 (*(volatile uint8_t *)(&__MBAR[0x76A]))
#define MCF_INTC_ICR43 (*(volatile uint8_t *)(&__MBAR[0x76B]))
#define MCF_INTC_ICR44 (*(volatile uint8_t *)(&__MBAR[0x76C]))
#define MCF_INTC_ICR45 (*(volatile uint8_t *)(&__MBAR[0x76D]))
#define MCF_INTC_ICR46 (*(volatile uint8_t *)(&__MBAR[0x76E]))
#define MCF_INTC_ICR47 (*(volatile uint8_t *)(&__MBAR[0x76F]))
#define MCF_INTC_ICR48 (*(volatile uint8_t *)(&__MBAR[0x770]))
#define MCF_INTC_ICR49 (*(volatile uint8_t *)(&__MBAR[0x771]))
#define MCF_INTC_ICR50 (*(volatile uint8_t *)(&__MBAR[0x772]))
#define MCF_INTC_ICR51 (*(volatile uint8_t *)(&__MBAR[0x773]))
#define MCF_INTC_ICR52 (*(volatile uint8_t *)(&__MBAR[0x774]))
#define MCF_INTC_ICR53 (*(volatile uint8_t *)(&__MBAR[0x775]))
#define MCF_INTC_ICR54 (*(volatile uint8_t *)(&__MBAR[0x776]))
#define MCF_INTC_ICR55 (*(volatile uint8_t *)(&__MBAR[0x777]))
#define MCF_INTC_ICR56 (*(volatile uint8_t *)(&__MBAR[0x778]))
#define MCF_INTC_ICR57 (*(volatile uint8_t *)(&__MBAR[0x779]))
#define MCF_INTC_ICR58 (*(volatile uint8_t *)(&__MBAR[0x77A]))
#define MCF_INTC_ICR59 (*(volatile uint8_t *)(&__MBAR[0x77B]))
#define MCF_INTC_ICR60 (*(volatile uint8_t *)(&__MBAR[0x77C]))
#define MCF_INTC_ICR61 (*(volatile uint8_t *)(&__MBAR[0x77D]))
#define MCF_INTC_ICR62 (*(volatile uint8_t *)(&__MBAR[0x77E]))
#define MCF_INTC_ICR63 (*(volatile uint8_t *)(&__MBAR[0x77F]))
#define MCF_INTC_SWIACK (*(volatile uint8_t *)(&__MBAR[0x7E0]))
#define MCF_INTC_L1IACK (*(volatile uint8_t *)(&__MBAR[0x7E4]))
#define MCF_INTC_L2IACK (*(volatile uint8_t *)(&__MBAR[0x7E8]))
#define MCF_INTC_L3IACK (*(volatile uint8_t *)(&__MBAR[0x7EC]))
#define MCF_INTC_L4IACK (*(volatile uint8_t *)(&__MBAR[0x7F0]))
#define MCF_INTC_L5IACK (*(volatile uint8_t *)(&__MBAR[0x7F4]))
#define MCF_INTC_L6IACK (*(volatile uint8_t *)(&__MBAR[0x7F8]))
#define MCF_INTC_L7IACK (*(volatile uint8_t *)(&__MBAR[0x7FC]))
#define MCF_INTC_ICR(x) (*(volatile uint8_t *)(&__MBAR[0x741 + ((x-1)*0x1)]))
#define MCF_INTC_LIACK(x) (*(volatile uint8_t *)(&__MBAR[0x7E4 + ((x-1)*0x4)]))