optimize GPIO operation
parent
5067c94911
commit
b26b576760
|
@ -86,18 +86,20 @@ typedef struct
|
|||
extern NaviKit_t NaviKit;
|
||||
|
||||
//device on board
|
||||
enum Device_t{USB2_Port1=0x00,USB2_Port2,USB2_Port3,USB2_Port4,USB2_Port5,USB2_Port6, //USB2.0 Port
|
||||
USB3_Port5,USB3_Port6,USB3_Port1,USB3_Port2,USB3_Port3,USB3_Port4, //USB3.0 Port
|
||||
|
||||
SOC_USB2_HUB=0x10,SOC_USB3_HUB,SOC_USB3_HOST,SOC_USB3_GEC,SOC_GE_SW, //SOC on Board
|
||||
|
||||
SYS_FAN1=0x20,SYS_FAN2,SYS_FAN3, //Fan on Board
|
||||
SYS_RUN_LED,SYS_PWR_LED, //LED on Board
|
||||
SYS_SRC_BUZZ, //Oscillation source internal buzzer
|
||||
|
||||
SOM_PWR_EN=0x30,SOM_DFU,SOM_RESET,SOM_SLEEP, //SOM Control
|
||||
|
||||
PMB_PS_ON=0x40}; //Power Management Board
|
||||
enum Device_t{
|
||||
//USB Port
|
||||
USB2_Port1=0x00,USB2_Port2,USB2_Port3,USB2_Port4,USB2_Port5,USB2_Port6, //USB2.0 Port
|
||||
USB3_Port5,USB3_Port6,USB3_Port1,USB3_Port2,USB3_Port3,USB3_Port4, //USB3.0 Port
|
||||
//SOC on Board
|
||||
SOC_USB2_HUB=0x10,SOC_USB3_HUB,SOC_USB3_HOST,SOC_USB3_GEC,SOC_GE_SW,
|
||||
//System component
|
||||
SYS_FAN1=0x20,SYS_FAN2,SYS_FAN3, //Fan on Board
|
||||
SYS_RUN_LED,SYS_PWR_LED, //LED on Board
|
||||
SYS_SRC_BUZZ, //Oscillation source internal buzzer
|
||||
//System on module --Jetson nano
|
||||
SOM_PWR_EN=0x30,SOM_DFU,SOM_RESET,SOM_SLEEP,
|
||||
//Power Management Board
|
||||
PMB_PS_ON=0x40};
|
||||
|
||||
void PWR_Enable(enum Device_t device,bool en,uint16_t delay);
|
||||
bool PWR_Enable_IRQ(enum Device_t device,bool en,uint16_t delay);
|
||||
|
|
Loading…
Reference in New Issue