/*
|
* 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_ */
|