summaryrefslogtreecommitdiffstats
path: root/nuttx/arch/c5471/src/c5471.h
diff options
context:
space:
mode:
Diffstat (limited to 'nuttx/arch/c5471/src/c5471.h')
-rw-r--r--nuttx/arch/c5471/src/c5471.h17
1 files changed, 8 insertions, 9 deletions
diff --git a/nuttx/arch/c5471/src/c5471.h b/nuttx/arch/c5471/src/c5471.h
index df49a7eb00..b91c9f3d15 100644
--- a/nuttx/arch/c5471/src/c5471.h
+++ b/nuttx/arch/c5471/src/c5471.h
@@ -40,10 +40,18 @@
* Included Files
************************************************************/
+#include <nuttx/config.h>
+
#ifndef __ASSEMBLY__
# include <sys/types.h>
#endif
+#if defined(CONFIG_BOARD_C5471EVM)
+# include <arch/board/c5471evm.h>
+#else
+# warning "Undefined C5471 Board"
+#endif
+
/************************************************************
* Definitions
************************************************************/
@@ -72,10 +80,6 @@
#define CC_Z_BIT (1 << 30)
#define CC_N_BIT (1 << 31)
-/* Clocking *************************************************/
-
-#define C5471_CLOCK 47500000 /* 47.5 MHz */
-
/* UARTs ****************************************************/
#define UART_IRDA_BASE 0xffff0800
@@ -370,11 +374,6 @@ static inline void putreg16(uint16 val, unsigned int addr)
__asm__ __volatile__("\tstrh %0, [%1]\n\t": : "r"(val), "r"(addr));
}
-/* Most C5471 registers are 16-bits wide */
-
-#define getreg(a) getreg16(1)
-#define putreg(v,a) putreg16(v,a)
-
#endif
#endif /* __C5471_H */