mirror of
https://github.com/logicog/RTLPlayground.git
synced 2026-10-29 17:54:14 +08:00
Moving PHY code to BANK1
This commit is contained in:
1 parent
73a0a7d137
commit
5faf31cdb8
10 files changed
+356
-302
No files matched your search
@@ -0,0 +1,22 @@
|
||||
#ifndef _RTL837X_STDIO_H_
|
||||
#define _RTL837X_STDIO_H_
|
||||
|
||||
// Headers for calls in the common code area (HOME/BANK0)
|
||||
|
||||
void print_string(__code char *p);
|
||||
void print_short(uint16_t a);
|
||||
void print_byte(uint8_t a);
|
||||
void print_sfr_data(void);
|
||||
void print_phy_data(void);
|
||||
void phy_write(uint16_t phy_mask, uint8_t dev_id, uint16_t reg, uint16_t v);
|
||||
void phy_read(uint8_t phy_id, uint8_t dev_id, uint16_t reg);
|
||||
void reg_read(uint16_t reg_addr);
|
||||
void reg_read_m(uint16_t reg_addr);
|
||||
void reg_write(uint16_t reg_addr);
|
||||
void reg_write_m(uint16_t reg_addr);
|
||||
void delay(uint16_t t);
|
||||
void sleep(uint16_t t);
|
||||
void write_char(char c);
|
||||
void print_reg(uint16_t reg);
|
||||
|
||||
#endif
|
||||
Reference in new issue
Block a user