source: ReferenceDesigns/w3_802.11/c/wlan_w3_common/include/wlan_platform_debug_hdr.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.7 KB
Line 
1 /** @file wlan_platform_dbg_hdr.h
2 *  @brief Debug Header Macros
3 *
4 *  This file should be included by any context that wishes to toggle bits
5 *  on the hardware's debug header. This header is unique in that it is the
6 *  only part of the platform code that is directly included. This is by
7 *  design -- it is the only way to ensure near single-cycle write access
8 *  to the registers that drive the debug header.
9 *
10 *  @copyright Copyright 2013-2019, Mango Communications. All rights reserved.
11 *          Distributed under the Mango Communications Reference Design License
12 *              See LICENSE.txt included in the design archive or
13 *              at http://mangocomm.com/802.11/license
14 *
15 *  This file is part of the Mango 802.11 Reference Design (https://mangocomm.com/802.11)
16 */
17
18#ifndef WLAN_PLATFORM_COMMON_INCLUDE_WLAN_PLATFORM_DBG_HDR_H_
19#define WLAN_PLATFORM_COMMON_INCLUDE_WLAN_PLATFORM_DBG_HDR_H_
20
21#include "xparameters.h"
22#include "xil_io.h"
23#include "w3_userio.h"
24#include "w3_userio_util.h"
25
26
27// Wrapper macros for debug header IO
28#define wlan_mac_set_dbg_hdr_dir(dir, pin_mask) userio_set_dbg_hdr_io_dir(USERIO_BASEADDR, (dir), (pin_mask))
29#define wlan_mac_set_dbg_hdr_ctrlsrc(src, pin_mask) userio_set_dbg_hdr_out_ctrlsrc(USERIO_BASEADDR, (src), (pin_mask))
30#define wlan_mac_set_dbg_hdr_out(pin_mask)      userio_set_dbg_hdr_out(USERIO_BASEADDR, (pin_mask))
31#define wlan_mac_clear_dbg_hdr_out(pin_mask)    userio_clear_dbg_hdr_out(USERIO_BASEADDR, (pin_mask))
32#define wlan_mac_write_dbg_hdr_out(val)         userio_write_dbg_hdr_out(USERIO_BASEADDR, (val))
33#define wlan_mac_read_dbg_hdr_io(val)           userio_read_dbg_hdr_io(USERIO_BASEADDR)
34
35
36#endif /* WLAN_PLATFORM_COMMON_INCLUDE_WLAN_PLATFORM_DBG_HDR_H_ */
Note: See TracBrowser for help on using the repository browser.