xiuos\APP_Framework\Framework\connection\lora\e220:
(1)Add Kconfig files and SConscript files related to e220
This commit is contained in:
		
							parent
							
								
									8f6078d40c
								
							
						
					
					
						commit
						bfa8c734c4
					
				| 
						 | 
				
			
			@ -39,11 +39,11 @@ if ADD_NUTTX_FETURES
 | 
			
		|||
 | 
			
		||||
        config ADAPTER_E220_M0_PATH
 | 
			
		||||
                string "E220 M0 pin device"
 | 
			
		||||
                default "/dev/gpio0"
 | 
			
		||||
                default "/dev/gpout0"
 | 
			
		||||
 | 
			
		||||
        config ADAPTER_E220_M1_PATH
 | 
			
		||||
                string "E220 M1 pin device"
 | 
			
		||||
                default "/dev/gpio1"
 | 
			
		||||
                default "/dev/gpout1"
 | 
			
		||||
        
 | 
			
		||||
        config ADAPTER_E220_DRIVER_EXTUART
 | 
			
		||||
                bool "Using extra uart to support lora"
 | 
			
		||||
| 
						 | 
				
			
			@ -64,5 +64,34 @@ if ADD_NUTTX_FETURES
 | 
			
		|||
endif
 | 
			
		||||
 | 
			
		||||
if ADD_RTTHREAD_FETURES
 | 
			
		||||
     config ADAPTER_E220_M0
 | 
			
		||||
                int "E220 M0 pin number"
 | 
			
		||||
                default "11"
 | 
			
		||||
 | 
			
		||||
        config ADAPTER_E220_M1
 | 
			
		||||
                int "E220 M1 pin number"
 | 
			
		||||
                default "9"
 | 
			
		||||
 | 
			
		||||
        config ADAPTER_E220_PIN_DRIVER
 | 
			
		||||
                string "E220 device pin driver path"
 | 
			
		||||
                default "/dev/dev3"
 | 
			
		||||
        
 | 
			
		||||
        config ADAPTER_E220_DRIVER_EXTUART
 | 
			
		||||
                bool "Using extra uart to support lora"
 | 
			
		||||
                default y
 | 
			
		||||
 | 
			
		||||
        config ADAPTER_E220_DRIVER
 | 
			
		||||
                string "E220 device uart driver path"
 | 
			
		||||
                default "/dev/dev3"
 | 
			
		||||
                depends on !ADAPTER_E220_DRIVER_EXTUART
 | 
			
		||||
 | 
			
		||||
        if ADAPTER_E220_DRIVER_EXTUART                    
 | 
			
		||||
                config ADAPTER_E220_DRIVER
 | 
			
		||||
                        string "E220 device extra uart driver path"
 | 
			
		||||
                        default "/dev/dev3"
 | 
			
		||||
 | 
			
		||||
                config ADAPTER_E220_DRIVER_EXT_PORT
 | 
			
		||||
                        int "if E220 device using extuart, choose port"
 | 
			
		||||
                        default "3"
 | 
			
		||||
        endif
 | 
			
		||||
endif
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -0,0 +1,10 @@
 | 
			
		|||
from building import *
 | 
			
		||||
import os
 | 
			
		||||
 | 
			
		||||
cwd = GetCurrentDir()
 | 
			
		||||
src = []
 | 
			
		||||
if GetDepend(['ADAPTER_E220']):
 | 
			
		||||
    src += ['e220.c']
 | 
			
		||||
group = DefineGroup('connection lora e220', src, depend = [], CPPPATH = [cwd])
 | 
			
		||||
 | 
			
		||||
Return('group')
 | 
			
		||||
		Loading…
	
		Reference in New Issue