code-scan starred ESP32-CAN-Driver
2021-12-27 01:55:33 Author: github.com(查看原文) 阅读量:33 收藏

version 0.1 A basic CAN driver for the Espressif ESP32 by Thomas Barth

version 0.1_third_parts by rudi ;-) Change Log from 22 March 2017

	- modified for esp-idf
	- modified for component driver mode
		- menuconfig file created
		- cretaed component.mk for menuconfig and component version 
	- modified and expanded demo code for using with menuconfig
		- modified code for using it for Linux and Windows user

		menuconfig config defines that you can use in the code:
			ESPCan activated:
				- CONFIG_ESPCAN ( bool ) 
			baudrade 100,125, 250, 500, 800, 1000 and user: 
				- CONFIG_CAN_SPEED_100KBPS 
				- CONFIG_CAN_SPEED_125KBPS
				- CONFIG_CAN_SPEED_250KBPS
				- CONFIG_CAN_SPEED_500KBPS
				- CONFIG_CAN_SPEED_800KBPS
				- CONFIG_CAN_SPEED_1000KBPS
				- CONFIG_CAN_SPEED_USER_KBPS
			user CAN speed
				- CONFIG_CAN_SPEED_USER_KBPS ( bool )
					-CONFIG_CAN_SPEED_USER_KBPS_VAL (value)
			gpio pins for CANRx and CANTx
				- CONFIG_ESP_CAN_RXD_PIN_NUM
				- CONFIG_ESP_CAN_TXD_PIN_NUM 
			node id ( CAN identifier )
				- CONFIG_ESP_CAN_NODE_ITSELF
			enbable/disable send test frames
				- CAN_TEST_SENDING_ENABLED
				- CAN_TEST_SENDING_DISABLED 

文章来源: https://github.com/ThomasBarth/ESP32-CAN-Driver
如有侵权请联系:admin#unsafe.sh