コード例 #1
0
void TwoWire::end()
{
    NVIC_DisableIRQ(irqNumber);
    I2C_HAL_Disable(instance);
    I2C_HAL_SetAddress7bit(instance, 0);
    SIM_HAL_DisableClock(SIM, gate_name);
}
コード例 #2
0
void Uart::end()
{
    UART_HAL_Init(instance);
    NVIC_DisableIRQ(irqNumber);
    SIM_HAL_DisableClock(SIM, gate_name);
    rxBuffer.clear();
}
コード例 #3
0
/*FUNCTION**********************************************************************
 *
 * Function Name : CLOCK_SYS_DisableUartClock
 * Description   : Disable the clock for UART module
 * This function enables the clock for UART module
 *
 *END**************************************************************************/
void CLOCK_SYS_DisableUartClock(uint32_t instance)
{
    assert(instance < sizeof(uartGateTable)/sizeof(uartGateTable[0]));

    SIM_HAL_DisableClock(SIM, uartGateTable[instance]);
}
コード例 #4
0
/*FUNCTION**********************************************************************
 *
 * Function Name : CLOCK_SYS_DisableI2cClock
 * Description   : Disable the clock for I2C module
 * This function disables the clock for I2C module
 *
 *END**************************************************************************/
void CLOCK_SYS_DisableI2cClock(uint32_t instance)
{
    assert(instance < sizeof(i2cGateTable)/sizeof(i2cGateTable[0]));

    SIM_HAL_DisableClock(SIM, i2cGateTable[instance]);
}
コード例 #5
0
/*FUNCTION**********************************************************************
 *
 * Function Name : CLOCK_SYS_DisableSpiClock
 * Description   : Disable the clock for SPI module
 * This function disables the clock for SPI module
 *
 *END**************************************************************************/
void CLOCK_SYS_DisableSpiClock(uint32_t instance)
{
    assert(instance < sizeof(spiGateTable)/sizeof(spiGateTable[0]));

    SIM_HAL_DisableClock(SIM, spiGateTable[instance]);
}
コード例 #6
0
/*FUNCTION**********************************************************************
 *
 * Function Name : CLOCK_SYS_DisableFtmClock
 * Description   : Disable the clock for FTM module
 * This function disables the clock for FTM module
 *
 *END**************************************************************************/
void CLOCK_SYS_DisableFtmClock(uint32_t instance)
{
    assert(instance < sizeof(ftmGateTable)/sizeof(ftmGateTable[0]));

    SIM_HAL_DisableClock(SIM, ftmGateTable[instance]);
}
コード例 #7
0
/*FUNCTION**********************************************************************
 *
 * Function Name : CLOCK_SYS_DisablePdbClock
 * Description   : Disable the clock for PDB module
 * This function disables the clock for PDB module
 *
 *END**************************************************************************/
void CLOCK_SYS_DisablePdbClock(uint32_t instance)
{
    assert(instance < sizeof(pdbGateTable)/sizeof(pdbGateTable[0]));

    SIM_HAL_DisableClock(SIM, pdbGateTable[instance]);
}