void BoardDriverShutdown(void)
{
    sduStop(&SDU1);
    ws2811Stop(&ws2811);

    MFRC522Stop(&RFID1);
    spiStop(&SPID1);
}
示例#2
0
/*
 * @brief   The function containing all drivers and modules to be deinitialized.
 *          All deinitialization should be here (except internal deinits).
 *
 * @note    This will run after the request for critical tasks to terminate,
 *          but before SysTick is disabled.
 *
 * @note    Remember to do the deinitialization in reverse order from the
 *          initialization.
 */
static void vSystemDeinitList(void)
{
    /*
     *
     * Add all driver and module deinitializations here!
     *
     */

    /*
     *
     * Disable the serial-over-USB CDC driver.
     *
     */
    usbDisconnectBus(serusbcfg.usbp);
    usbStop(serusbcfg.usbp);
    sduStop(&SDU1);

}
示例#3
0
void BoardDriverShutdown(void)
{
    sduStop(&SDU1);
    ws281xStop(&ws281x);
}