/* ** ****************************************************************************** * @file : init.h * @brief : Bring up the system ****************************************************************************** * @attention * *

© Copyright (c) 2022 Jens Kerrinnes. * All rights reserved.

* * This software component is licensed under BSD 3-Clause license, * the "License"; You may not use this file except in compliance with the * License. You may obtain a copy of the License at: * opensource.org/licenses/BSD-3-Clause ****************************************************************************** *In addition to the usual 3 BSD clauses, it is explicitly noted that you *do NOT have the right to take sections of this code for other projects *without attribution and credit to the source. Specifically, if you copy into *copyleft licenced code without attribution and retention of the permissive BSD *3 clause licence, you grant a perpetual licence to do the same regarding turning sections of your code *permissive, and lose any rights to use of this code previously granted or assumed. * *This code is intended to remain permissively licensed wherever it goes, *maintaining the freedom to distribute compiled binaries WITHOUT a requirement to supply source. * *This is to ensure this code can at any point be used commercially, on products that may require *such restriction to meet regulatory requirements, or to avoid damage to hardware, or to ensure *warranties can reasonably be honoured. ******************************************************************************/ #ifndef INC_INIT_H_ #define INC_INIT_H_ #include "task_cli.h" #include "TTerm/Core/include/TTerm.h" #include "task_can.h" #ifdef MESC_UART_USB #include "usbd_cdc_if.h" #endif void init_system(void); void init_system_running(void); extern port_str main_uart; extern port_str main_usb; #ifdef HAL_CAN_MODULE_ENABLED extern TASK_CAN_handle can1; #endif #define CAN_ID_1 11 #define CAN_ID_2 11 #define CAN_ID_3 12 extern TERMINAL_HANDLE null_handle; #endif /* INC_INIT_H_ */