Improved multiplatform support
This commit is contained in:
		
							parent
							
								
									3ca92e892d
								
							
						
					
					
						commit
						af01541c17
					
				
							
								
								
									
										20
									
								
								Config.h
									
									
									
									
									
								
							
							
						
						
									
										20
									
								
								Config.h
									
									
									
									
									
								
							@ -13,6 +13,10 @@
 | 
			
		||||
	#define MCU_2560  0x92
 | 
			
		||||
	#define MCU_ESP32 0x81
 | 
			
		||||
 | 
			
		||||
	#define BOARD_RNODE 0x31
 | 
			
		||||
	#define BOARD_HMBRW 0x32
 | 
			
		||||
	#define BOARD_TBEAM 0x33
 | 
			
		||||
 | 
			
		||||
	#define MODE_HOST 0x11
 | 
			
		||||
	#define MODE_TNC  0x12
 | 
			
		||||
 | 
			
		||||
@ -45,6 +49,8 @@
 | 
			
		||||
		const int pin_led_rx = 12;
 | 
			
		||||
		const int pin_led_tx = 13;
 | 
			
		||||
 | 
			
		||||
		#define BOARD_MODEL BOARD_RNODE
 | 
			
		||||
 | 
			
		||||
		#define CONFIG_UART_BUFFER_SIZE 6144
 | 
			
		||||
		#define CONFIG_QUEUE_SIZE 6144
 | 
			
		||||
		#define CONFIG_QUEUE_MAX_LENGTH 250
 | 
			
		||||
@ -59,6 +65,8 @@
 | 
			
		||||
		const int pin_led_rx = 12;
 | 
			
		||||
		const int pin_led_tx = 13;
 | 
			
		||||
 | 
			
		||||
		#define BOARD_MODEL BOARD_HMBRW
 | 
			
		||||
 | 
			
		||||
		#define CONFIG_UART_BUFFER_SIZE 2048
 | 
			
		||||
		#define CONFIG_QUEUE_SIZE 2048
 | 
			
		||||
		#define CONFIG_QUEUE_MAX_LENGTH 80
 | 
			
		||||
@ -73,7 +81,9 @@
 | 
			
		||||
		const int pin_led_rx = 2;
 | 
			
		||||
		const int pin_led_tx = 4;
 | 
			
		||||
 | 
			
		||||
		#define CONFIG_UART_BUFFER_SIZE 6144
 | 
			
		||||
		#define BOARD_MODEL BOARD_TBEAM
 | 
			
		||||
 | 
			
		||||
		#define CONFIG_UART_BUFFER_SIZE 64
 | 
			
		||||
		#define CONFIG_QUEUE_SIZE 6144
 | 
			
		||||
		#define CONFIG_QUEUE_MAX_LENGTH 250
 | 
			
		||||
 | 
			
		||||
@ -85,6 +95,12 @@
 | 
			
		||||
		#define PIN_GPS_RX 34
 | 
			
		||||
	#endif
 | 
			
		||||
 | 
			
		||||
	#if BOARD_MODEL == BOARD_TBEAM
 | 
			
		||||
		#define I2C_SDA                     21
 | 
			
		||||
		#define I2C_SCL                     22
 | 
			
		||||
		#define PMU_IRQ                     35
 | 
			
		||||
	#endif
 | 
			
		||||
 | 
			
		||||
	#define eeprom_addr(a) (a+EEPROM_OFFSET)
 | 
			
		||||
 | 
			
		||||
	// MCU independent configuration parameters
 | 
			
		||||
@ -117,8 +133,8 @@
 | 
			
		||||
	int		last_rssi		= -292;
 | 
			
		||||
	uint8_t last_rssi_raw   = 0x00;
 | 
			
		||||
	uint8_t last_snr_raw	= 0x00;
 | 
			
		||||
	size_t	read_len		= 0;
 | 
			
		||||
	uint8_t seq				= 0xFF;
 | 
			
		||||
	uint16_t read_len		= 0;
 | 
			
		||||
 | 
			
		||||
	// Incoming packet buffer
 | 
			
		||||
	uint8_t pbuf[MTU];
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user