-#include "hal/hal.h"
-
-
-/**
- * @brief Sleep the board
- *
- * @param[in] cmd_io Pointer to IO stack
- * @param[in] des Pointer to command descriptor
- * @param[in] param Parameters of command
- * @return 0 when OK or error code
- */
-int cmd_do_sleep(cmd_io_t *cmd_io, const struct cmd_des *des, char *param[])
-{
- hal_gpio_pin_set_value(PIN_DSC_CANNSTB, 1);
- hal_gpio_pin_set_value(PIN_DSC_CANEN, 1);
- hal_gpio_pin_set_value(PIN_DSC_LIN2NSLP, 1);
- hal_gpio_pin_set_value(PIN_DSC_LIN1NSLP, 1);
- vTaskDelay(10/portTICK_RATE_MS);
- hal_gpio_pin_set_value(PIN_DSC_LIN2NSLP, 0);
- hal_gpio_pin_set_value(PIN_DSC_LIN1NSLP, 0);
- hal_gpio_pin_set_value(PIN_DSC_CANNSTB, 0);
- return 0;
-}