source: ReferenceDesigns/w3_802.11/c/wlan_w3_common/include/w3_common.h

Last change on this file was 6319, checked in by chunter, 5 years ago

1.8.0 release wlan-mac-se

File size: 1.5 KB
Line 
1#ifndef W3_PLATFORM_COMMON_H_
2#define W3_PLATFORM_COMMON_H_
3
4#include "xparameters.h"
5
6
7#define PLATFORM_ID_W3      0x00000001
8#define PLATFORM_CONFIG     0x00000000
9
10/*********************************************************************
11 * Mapping macros from xparameters.h
12 *
13 * The BSP generates xparameters.h to define macros for hardware-specific
14 * parameters, including peripheral memory addresses, peripheral IDs,
15 * interrupt IDs, etc.
16 *
17 * The macros below map the BSP-generated macros ("XPAR_...") to the
18 * hardware-agnostic names used by the 802.11 Ref Design C code. Each
19 * platform must implement this mapping in wlan_platform_common.h.
20 *
21 **********************************************************************/
22
23// --------------------------------------------------------------------
24// Peripherals accessible by both CPUs
25
26// IIC EEPROMs - WARP v3 on-board and FMC-RF-2X245 EEPROMs
27#define EEPROM_BASEADDR         XPAR_W3_IIC_EEPROM_ONBOARD_BASEADDR
28#define FMC_EEPROM_BASEADDR     XPAR_W3_IIC_EEPROM_FMC_BASEADDR
29
30// IPC mailbox
31#define PLATFORM_DEV_ID_MAILBOX    XPAR_MBOX_0_DEVICE_ID
32
33// System monitor
34#define PLATFORM_BASEADDR_SYSMON   XPAR_SYSMON_0_BASEADDR
35
36
37// Mutex for Tx/Rx packet buffers
38#define PLATFORM_DEV_ID_PKT_BUF_MUTEX   XPAR_MUTEX_0_DEVICE_ID
39
40
41// Tx Power range
42#define TX_POWER_MAX_DBM                                  (21)
43#define TX_POWER_MIN_DBM                                  (-9)
44
45#endif /* W3_PLATFORM_COMMON_H_ */
Note: See TracBrowser for help on using the repository browser.