diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2007-03-26 16:47:17 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2007-03-26 16:47:17 +0000 |
commit | 899c7204851d44de519804af8a75e0b459012e9f (patch) | |
tree | 449ad4c5decd48591605264d1a881a4b81b9bdce /nuttx/arch/c5471/src/c5471.h | |
parent | 3a5002af1855fbc7989ea994301abaa420be6db3 (diff) | |
download | px4-nuttx-899c7204851d44de519804af8a75e0b459012e9f.tar.gz px4-nuttx-899c7204851d44de519804af8a75e0b459012e9f.tar.bz2 px4-nuttx-899c7204851d44de519804af8a75e0b459012e9f.zip |
Create a place to hold board specific header files
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@146 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/arch/c5471/src/c5471.h')
-rw-r--r-- | nuttx/arch/c5471/src/c5471.h | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/nuttx/arch/c5471/src/c5471.h b/nuttx/arch/c5471/src/c5471.h index df49a7eb0..b91c9f3d1 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 */ |