#include "CAN_FW.h"
#include "Can.h"
#include "IO.h"
#include "Utils.h"


void Init (TCanFwMem * vars)
{
	CoreFunc->DebugConsole("CAN_FW version: %s\n", (const char*)(gCanFwInfo.TextInfo));

	static const TCanInit can1_init =
	{
		CCan::CanBaudrate500,
		1,
		{
			CCan::Filter::List11 (0x660),
			CCan::Filter::Mask11 (0x7E0, 0x7F0),		// 0x7E0..0x7EF
		}
	};
	CoreFunc->CanInit (CANch1, &can1_init);

}