Fixed USBTask.h not conditionally including HostChapter9.h only when CAN_BE_DEVICE is defined (thanks to Ian Gregg).
This commit is contained in:
		
							parent
							
								
									4bb59f9673
								
							
						
					
					
						commit
						1c9092a8a6
					
				
					 4 changed files with 9 additions and 3 deletions
				
			
		| 
						 | 
				
			
			@ -46,10 +46,13 @@
 | 
			
		|||
		
 | 
			
		||||
		#include "../../../Scheduler/Scheduler.h"
 | 
			
		||||
		#include "../LowLevel/LowLevel.h"
 | 
			
		||||
		#include "../LowLevel/HostChapter9.h"
 | 
			
		||||
		#include "../LowLevel/USBMode.h"
 | 
			
		||||
		#include "Events.h"
 | 
			
		||||
		#include "StdDescriptors.h"
 | 
			
		||||
 | 
			
		||||
		#if defined(USB_CAN_BE_HOST)
 | 
			
		||||
			#include "../LowLevel/HostChapter9.h"
 | 
			
		||||
		#endif		
 | 
			
		||||
		
 | 
			
		||||
	/* Enable C linkage for C++ Compilers: */
 | 
			
		||||
		#if defined(__cplusplus)
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -46,8 +46,9 @@
 | 
			
		|||
		#include "../HighLevel/USBTask.h"
 | 
			
		||||
 | 
			
		||||
		#if !defined(NO_STREAM_CALLBACKS) || defined(__DOXYGEN__)
 | 
			
		||||
		#include "StreamCallbacks.h"
 | 
			
		||||
			#include "StreamCallbacks.h"
 | 
			
		||||
		#endif
 | 
			
		||||
		
 | 
			
		||||
	/* Enable C linkage for C++ Compilers: */
 | 
			
		||||
		#if defined(__cplusplus)
 | 
			
		||||
			extern "C" {
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -46,8 +46,9 @@
 | 
			
		|||
		#include "../HighLevel/USBTask.h"
 | 
			
		||||
 | 
			
		||||
		#if !defined(NO_STREAM_CALLBACKS) || defined(__DOXYGEN__)
 | 
			
		||||
		#include "StreamCallbacks.h"
 | 
			
		||||
			#include "StreamCallbacks.h"
 | 
			
		||||
		#endif
 | 
			
		||||
		
 | 
			
		||||
	/* Enable C linkage for C++ Compilers: */
 | 
			
		||||
		#if defined(__cplusplus)
 | 
			
		||||
			extern "C" {
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue