mirror of
				https://github.com/thelsing/knx.git
				synced 2025-10-26 10:26:25 +01:00 
			
		
		
		
	Merge pull request #261 from OpenKNX/remove-byteorder-rp2040
remove byteorder macros for rp2040 platform
This commit is contained in:
		
						commit
						e602b59fe3
					
				@ -5,7 +5,7 @@
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
#if defined(__linux__)
 | 
					#if defined(__linux__)
 | 
				
			||||||
#include <arpa/inet.h>
 | 
					#include <arpa/inet.h>
 | 
				
			||||||
#elif defined(ARDUINO_ARCH_SAMD) || defined(ARDUINO_ARCH_RP2040) || defined(ARDUINO_ARCH_STM32) || defined (DeviceFamily_CC13X0)
 | 
					#elif defined(ARDUINO_ARCH_SAMD) || defined(ARDUINO_ARCH_STM32) || defined (DeviceFamily_CC13X0)
 | 
				
			||||||
#define getbyte(x,n) (*(((uint8_t*)&(x))+n))
 | 
					#define getbyte(x,n) (*(((uint8_t*)&(x))+n))
 | 
				
			||||||
#define htons(x)  ( (getbyte(x,0)<<8) | getbyte(x,1) ) 
 | 
					#define htons(x)  ( (getbyte(x,0)<<8) | getbyte(x,1) ) 
 | 
				
			||||||
#define htonl(x) ( (getbyte(x,0)<<24) | (getbyte(x,1)<<16) | (getbyte(x,2)<<8) | getbyte(x,3) )
 | 
					#define htonl(x) ( (getbyte(x,0)<<24) | (getbyte(x,1)<<16) | (getbyte(x,2)<<8) | getbyte(x,3) )
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
		Reference in New Issue
	
	Block a user