ibmpc_usb: Fix hard reset code

This commit is contained in:
tmk 2020-01-23 23:40:04 +09:00
parent c2e8c0d43e
commit a42cc4bddb
3 changed files with 24 additions and 13 deletions

View file

@ -71,11 +71,8 @@ volatile uint8_t ibmpc_error = IBMPC_ERR_NONE;
void ibmpc_host_init(void)
{
// initialize reset pin
IBMPC_RST_PORT |= (1<<IBMPC_RST_BIT1);
IBMPC_RST_DDR |= (1<<IBMPC_RST_BIT1);
IBMPC_RST_PORT |= (1<<IBMPC_RST_BIT2);
IBMPC_RST_DDR |= (1<<IBMPC_RST_BIT2);
// initialize reset pin to HiZ
IBMPC_RST_HIZ();
inhibit();
IBMPC_INT_INIT();
IBMPC_INT_OFF();