File indexing completed on 2025-05-11 08:23:40
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017
0018
0019
0020
0021
0022
0023 #ifndef LIBBSP_BFIN_BF537STAMP_BSP_H
0024 #define LIBBSP_BFIN_BF537STAMP_BSP_H
0025
0026
0027
0028
0029
0030
0031
0032
0033
0034
0035
0036 #ifndef ASM
0037
0038 #include <bspopts.h>
0039 #include <bsp/default-initial-extension.h>
0040
0041 #include <rtems.h>
0042
0043 #include <libcpu/bf537.h>
0044 #include <libcpu/memoryRegs.h>
0045
0046 #ifdef __cplusplus
0047 extern "C" {
0048 #endif
0049
0050
0051 #define BSP_DATA_CACHE_CONFIG (3 << DMEM_CONTROL_DMC_SHIFT)
0052
0053
0054
0055
0056
0057
0058
0059
0060
0061
0062
0063
0064
0065
0066
0067
0068 #define PLL_CSEL 0x0000
0069 #define PLL_SSEL 0x0003
0070 #define PLL_MSEL 0x3A00
0071 #define PLL_DF 0x0001
0072
0073 #define CCLK 500000000
0074 #define SCLK 100000000
0075
0076 #define CONSOLE_FORCE_BAUD 57600
0077
0078
0079
0080
0081 #define L1_DATA_SRAM_A 0xff800000L
0082
0083 #define FIFOLENGTH 0x100
0084
0085
0086
0087
0088
0089
0090 #define rtems_bsp_delay( microseconds ) \
0091 { \
0092 }
0093
0094
0095
0096 #define RAM_START 0
0097 #define RAM_END 0x4000000
0098
0099
0100
0101
0102
0103
0104
0105 void setLED(uint8_t value);
0106
0107
0108
0109
0110 uint8_t getLEDs(void);
0111 void setLEDs(uint8_t value);
0112 uint8_t getButtons(void);
0113
0114 rtems_isr_entry set_vector(
0115 rtems_isr_entry handler,
0116 rtems_vector_number vector,
0117 int type
0118 );
0119
0120
0121
0122
0123 void Init_RTC(void);
0124
0125
0126
0127
0128 struct rtems_bsdnet_ifconfig;
0129 extern int bf537Stamp_network_driver_attach(struct rtems_bsdnet_ifconfig *, int);
0130
0131 #define RTEMS_BSP_NETWORK_DRIVER_NAME "eth1"
0132 #define RTEMS_BSP_NETWORK_DRIVER_ATTACH bf537Stamp_network_driver_attach
0133
0134 #ifdef __cplusplus
0135 }
0136 #endif
0137
0138 #endif
0139
0140
0141
0142 #endif