chenlh
2025-09-18 681dbd552588d68ce67d8bee659e1ed2390ce5a1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
/*
 * linkport.h
 *
 *  Created on: 2024Äê5ÔÂ22ÈÕ
 *      Author: 86189
 */
 
#ifndef DRV_LINKPORT_H_
#define DRV_LINKPORT_H_
#ifdef __cplusplus
extern "C" {
#endif
 
#include <stdint.h>
#include "typedefs.h"
#include "board.h"
#include "dma.h"
 
struct link_port_regs ;
typedef struct link_port_regs LPRegsDef;
 
#define LINK_PORT0 (volatile LPRegsDef*)0x30FFE000
#define LINK_PORT1 (volatile LPRegsDef*)0x30FFE100
 
volatile LPRegsDef* get_LP_regs(uint32_t lpid);
void LP_config(volatile LPRegsDef* regs , struct LinkPortDef* config);
void LP_enable(int lp_id);
uvoid LP_transmit(void);
 
#ifdef __cplusplus
}
#endif
 
 
 
#endif /* DRV_LINKPORT_H_ */