📄 p0.h
字号:
#ifndef _P0_H_
#define _P0_H_
#define P0_DATABUS_SHIFT (16)
#define P0_ADDRBUS_SHIFT ( 8)
#define P0_TXD0 ( 1 << 0) // serial xmit is P0_0
#define P0_RXD0 ( 1 << 1) // serial rcv is P0.1
#define P0_SCL ( 1 << 2) // i2c clock is P0.2
#define P0_SDA ( 1 << 3) // i2c data is P0.3
#define P0_SCK ( 1 << 4) // spi clock is P0.4
#define P0_MISO ( 1 << 5) // spi miso is P0.5
#define P0_MOSI ( 1 << 6) // spi mosi is P0.6
#define P0_SSEL ( 1 << 7) // spi ssel is P0.7
#define P0_ADDRBUS (0x0F << 8) // addr bus is P0.8 - P0.11
#define P0_IORDn ( 1 << 12) // IO Read is P0.12
#define P0_IOWRn ( 1 << 13) // IO Write is P0.13
#define P0_EXINT1 ( 1 << 14) // Ext Interrupt 1 is P0.14 - BSL
#define P0_EXINT2 ( 1 << 15) // Ext Interrupt 2 is P0.15 - BUT - IO Exp Interrupt
#define P0_DATABUS (0xFF << 16) // data bus is P0.16 - P0.23
#define P0_YELLOW ( 1 << 24) // yellow led is P0.24 ** temporary
#define P0_MP3DRQ ( 1 << 25) // MP3 DRQ is P0.25
#define P0_CFCD1 ( 1 << 26) // CF card detect is P0.26
#define P0_CFRDY ( 1 << 27) // CF ready is P0.27
#define P0_MP3RST ( 1 << 28) // MP3 reset is P0.28
#define P0_CS (0x07 << 29) // chip select is P0.29 - P0.31
#endif //_P0_H_
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -