Ha Thach 
							
						 
					 
					
						
						
							
						
						104a5daef4 
					 
					
						
						
							
							Merge pull request  #2618  from HiFiPhile/fifo_const_split  
						
						 
						
						... 
						
						
						
						tusb_fifo: skip constant address functions if not used 
						
						
					 
					
						2024-05-06 18:31:29 +07:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								hathach 
							
						 
					 
					
						
						
							
						
						ea3f1d39e8 
					 
					
						
						
							
							add cmake for pi zero (renamed from pi zero_w), build but the flash size seem wrong (only 24 bytes for text)  
						
						 
						
						
						
						
					 
					
						2024-05-02 13:29:29 +07:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								HiFiPhile 
							
						 
					 
					
						
						
							
						
						c303b5d81d 
					 
					
						
						
							
							Guard const addr fifo functions with TUP_MEM_CONST_ADDR.  
						
						 
						
						
						
						
					 
					
						2024-04-29 22:35:55 +02:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								hathach 
							
						 
					 
					
						
						
							
						
						2cf171095e 
					 
					
						
						
							
							code format  
						
						 
						
						
						
						
					 
					
						2024-03-22 12:45:23 +07:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								hathach 
							
						 
					 
					
						
						
							
						
						2a1b81e3c5 
					 
					
						
						
							
							minimize tu_fifo size to 16  
						
						 
						
						... 
						
						
						
						- remove non_used_index_space
- packed overwritable with item_size 
						
						
					 
					
						2023-01-06 11:51:17 +07:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								hathach 
							
						 
					 
					
						
						
							
						
						9c73c1a532 
					 
					
						
						
							
							minor clean up  
						
						 
						
						
						
						
					 
					
						2023-01-06 10:56:19 +07:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								hathach 
							
						 
					 
					
						
						
							
						
						b42d298b81 
					 
					
						
						
							
							Merge branch 'master' into fix-fifo-memory-overflow  
						
						 
						
						
						
						
					 
					
						2023-01-06 10:52:25 +07:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								hathach 
							
						 
					 
					
						
						
							
						
						660343d200 
					 
					
						
						
							
							update fifo per PanRe review  
						
						 
						
						
						
						
					 
					
						2022-12-16 16:55:25 +07:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								hathach 
							
						 
					 
					
						
						
							
						
						88e6da7273 
					 
					
						
						
							
							use OSAL_MUTEX_REQUIRED to replace CFG_FIFO_MUTEX/TUSB_OPT_MUTEX  
						
						 
						
						... 
						
						
						
						add macro to swallow mutex API in order to simplify code with mutex 
						
						
					 
					
						2022-12-15 18:03:01 +07:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								hathach 
							
						 
					 
					
						
						
							
						
						04a5c03ea8 
					 
					
						
						
							
							fix int conversion warnings  
						
						 
						
						
						
						
					 
					
						2022-12-12 11:54:33 +07:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								hathach 
							
						 
					 
					
						
						
							
						
						82852774a7 
					 
					
						
						
							
							add fifo implementation note  
						
						 
						
						... 
						
						
						
						- handle/fix double overflowed with write()
- other minor clean upp 
						
						
					 
					
						2022-12-09 18:20:09 +07:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								hathach 
							
						 
					 
					
						
						
							
						
						3e32fa36b8 
					 
					
						
						
							
							enhance tu fifo  
						
						 
						
						... 
						
						
						
						- rename wr/rd absolute to index, and rel to pointer.
- fix crash with _tu_fifo_remaining()
- change get_relative_pointer() to idx2ptr() and merge with _ff_mod() 
						
						
					 
					
						2022-12-08 16:39:24 +07:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Bastien Nocera 
							
						 
					 
					
						
						
							
						
						6a2cf67289 
					 
					
						
						
							
							Fix typos  
						
						 
						
						
						
						
					 
					
						2022-12-04 19:43:23 +07:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								hathach 
							
						 
					 
					
						
						
							
						
						137dff620b 
					 
					
						
						
							
							add option to silent a driver log  
						
						 
						
						
						
						
					 
					
						2021-07-13 20:41:28 +07:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Ned Konz 
							
						 
					 
					
						
						
							
						
						76336a67a0 
					 
					
						
						
							
							Changed order of struct initializer to avoid compiler error  
						
						 
						
						
						
						
					 
					
						2021-06-18 14:50:55 -07:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								hathach 
							
						 
					 
					
						
						
							
						
						f384d6f67e 
					 
					
						
						
							
							more with clean up  
						
						 
						
						
						
						
					 
					
						2021-05-27 18:11:12 +07:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								hathach 
							
						 
					 
					
						
						
							
						
						c7cecf28c8 
					 
					
						
						
							
							clean up  
						
						 
						
						
						
						
					 
					
						2021-05-27 00:16:45 +07:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								hathach 
							
						 
					 
					
						
						
							
						
						18c35bb89e 
					 
					
						
						
							
							some text fomarting, update unit test to test get buffer info for fifo  
						
						 
						
						
						
						
					 
					
						2021-05-02 15:01:28 +07:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Reinhard Panhuber 
							
						 
					 
					
						
						
							
						
						5add664874 
					 
					
						
						
							
							Remove n from tu_fifo_get_write_info() and fix bug in vendor class  
						
						 
						
						
						
						
					 
					
						2021-04-30 17:37:14 +02:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Reinhard Panhuber 
							
						 
					 
					
						
						
							
						
						5f88def9c9 
					 
					
						
						
							
							Comment cleanup  
						
						 
						
						
						
						
					 
					
						2021-04-30 15:14:27 +02:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Reinhard Panhuber 
							
						 
					 
					
						
						
							
						
						14e2c004cd 
					 
					
						
						
							
							Remove variable n in tu_fifo_get_read_info()  
						
						 
						
						
						
						
					 
					
						2021-04-30 15:08:14 +02:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Reinhard Panhuber 
							
						 
					 
					
						
						
							
						
						de933c45bc 
					 
					
						
						
							
							Remove all remainings with peek_at  
						
						 
						
						
						
						
					 
					
						2021-04-30 14:56:14 +02:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Reinhard Panhuber 
							
						 
					 
					
						
						
							
						
						5f268608d7 
					 
					
						
						
							
							Remove offset feature from fifo.c  
						
						 
						
						
						
						
					 
					
						2021-04-30 13:39:55 +02:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Reinhard Panhuber 
							
						 
					 
					
						
						
							
						
						8f72c97f7b 
					 
					
						
						
							
							Change read infos to pointer type  
						
						 
						
						
						
						
					 
					
						2021-04-30 12:59:12 +02:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Reinhard Panhuber 
							
						 
					 
					
						
						
							
						
						7072f0155e 
					 
					
						
						
							
							Change tu_fifo_get_linear_write/read_info() to return a struct  
						
						 
						
						... 
						
						
						
						Compilers always complain that variables set by function via pointer
might be uninitialized so to avoid that return values are now delivered
via struct. 
						
						
					 
					
						2021-04-23 11:48:54 +02:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Reinhard Panhuber 
							
						 
					 
					
						
						
							
						
						03f974c9b9 
					 
					
						
						
							
							Implement functions to allow for DMA usage in audio driver.  
						
						 
						
						... 
						
						
						
						- Add tud_audio_n_get_ep_out_ff(), tud_audio_n_get_ep_in_ff(),
tud_audio_n_get_rx_support_ff(), and tud_audio_n_get_tx_support_ff()
- Change get_linear_read/write_info() to return linear and wrapped part
at once
- Adjusted affected code in audio_device.c and tested with
audio_4_channel. 
						
						
					 
					
						2021-04-23 10:27:48 +02:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								hathach 
							
						 
					 
					
						
						
							
						
						893919a848 
					 
					
						
						
							
							remove tu_fifo_backward_write/read_pointer API  
						
						 
						
						... 
						
						
						
						since it is illegal from fifo perspective 
						
						
					 
					
						2021-04-07 13:27:28 +07:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Reinhard Panhuber 
							
						 
					 
					
						
						
							
						
						a60bd0c8ac 
					 
					
						
						
							
							Fix bug in writing to constant src/dst address.  
						
						 
						
						... 
						
						
						
						Copying has to be conduct in full words (at least for STM32). Renamed
copy function to tu_fifo_write_n_const_addr_full_words() 
						
						
					 
					
						2021-03-23 19:33:04 +01:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Reinhard Panhuber 
							
						 
					 
					
						
						
							
						
						8cb3bd3cd3 
					 
					
						
						
							
							Merge remote-tracking branch 'upstream/edpt_ISO_xfer' into edpt_ISO_xfer  
						
						 
						
						
						
						
					 
					
						2021-03-10 19:33:11 +01:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Reinhard Panhuber 
							
						 
					 
					
						
						
							
						
						d5a5a1cab6 
					 
					
						
						
							
							Implement audio PCM type I enc./decoding acc. to 2.3.1.5 Audio Streams  
						
						 
						
						... 
						
						
						
						Extending capabilities of support FIFOs
Removing copy from to FIFO
Adjusting audio examples
Remove peek/read into other FIFO 
						
						
					 
					
						2021-03-10 19:32:13 +01:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								hathach 
							
						 
					 
					
						
						
							
						
						a397353916 
					 
					
						
						
							
							fix ci build with rp2040  
						
						 
						
						
						
						
					 
					
						2021-03-10 17:58:39 +07:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								hathach 
							
						 
					 
					
						
						
							
						
						e864bda627 
					 
					
						
						
							
							fix build with freertos  
						
						 
						
						
						
						
					 
					
						2021-03-10 17:21:59 +07:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Reinhard Panhuber 
							
						 
					 
					
						
						
							
						
						7e56f46957 
					 
					
						
						
							
							Extend FIFO mutex to use separate write and read mutexes.  
						
						 
						
						... 
						
						
						
						Adjust all USB drivers using FIFO and mutexes. 
						
						
					 
					
						2021-03-04 13:52:14 +01:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Reinhard Panhuber 
							
						 
					 
					
						
						
							
						
						bd2bab7aff 
					 
					
						
						
							
							Remove set_copy_modes(), implement:  
						
						 
						
						... 
						
						
						
						tu_fifo_read_n_const_addr(), tu_fifo_write_n_const_addr() 
						
						
					 
					
						2021-03-02 21:41:51 +01:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Reinhard Panhuber 
							
						 
					 
					
						
						
							
						
						cc948288bd 
					 
					
						
						
							
							Revert tusb_fifo.h include form to original.  
						
						 
						
						
						
						
					 
					
						2021-02-25 11:18:37 +01:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Reinhard Panhuber 
							
						 
					 
					
						
						
							
						
						387bf1478e 
					 
					
						
						
							
							Fix missing , in tusb_fifo.h  
						
						 
						
						
						
						
					 
					
						2021-02-23 19:52:31 +01:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Reinhard Panhuber 
							
						 
					 
					
						
						
							
						
						e223d46033 
					 
					
						
						
							
							Merge remote-tracking branch 'upstream/master' into edpt_ISO_xfer  
						
						 
						
						... 
						
						
						
						Conflicts:
	src/common/tusb_fifo.h
	src/osal/osal_none.h 
						
						
					 
					
						2021-02-23 19:47:57 +01:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								hathach 
							
						 
					 
					
						
						
							
						
						2a04ee68b8 
					 
					
						
						
							
							add TU_FIFO_INIT() to help with tu_fifo declaration  
						
						 
						
						... 
						
						
						
						tu_fifo_clear() also reset max_pointer_idx and non_used_index_space 
						
						
					 
					
						2021-02-19 11:57:56 +07:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Reinhard Panhuber 
							
						 
					 
					
						
						
							
						
						8904874f76 
					 
					
						
						
							
							Exclude #include "osal/osal.h" for OPT_OS_NONE  
						
						 
						
						
						
						
					 
					
						2021-02-18 20:52:57 +01:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Reinhard Panhuber 
							
						 
					 
					
						
						
							
						
						31bf73517e 
					 
					
						
						
							
							Add #include "osal/osal.h" in tu_fifo.h  
						
						 
						
						
						
						
					 
					
						2021-02-18 20:16:57 +01:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Reinhard Panhuber 
							
						 
					 
					
						
						
							
						
						681cfd0bf2 
					 
					
						
						
							
							Correct for wrong pointer type in audio_device.c  
						
						 
						
						
						
						
					 
					
						2021-02-18 11:12:16 +01:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Reinhard Panhuber 
							
						 
					 
					
						
						
							
						
						ae20d11124 
					 
					
						
						
							
							Merge remote-tracking branch 'upstream/master' into edpt_ISO_xfer  
						
						 
						
						... 
						
						
						
						Conflicts:
	src/common/tusb_fifo.h 
						
						
					 
					
						2021-02-17 22:08:21 +01:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Reinhard Panhuber 
							
						 
					 
					
						
						
							
						
						c87357c025 
					 
					
						
						
							
							Improve tu_fifo capabilites  
						
						 
						
						... 
						
						
						
						Added tu_fifo_get_linear_write_info(), tu_fifo_backward_write_pointer(),
and tu_fifo_backward_read_pointer() 
						
						
					 
					
						2021-02-17 20:44:26 +01:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Nicholas R Dinsmore 
							
						 
					 
					
						
						
							
						
						b7ec66e33a 
					 
					
						
						
							
							This fixes the overflow mathmatic in the fifo  
						
						 
						
						
						
						
					 
					
						2021-02-16 23:08:08 -05:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Reinhard Panhuber 
							
						 
					 
					
						
						
							
						
						51c80630f5 
					 
					
						
						
							
							Clean up  
						
						 
						
						
						
						
					 
					
						2021-01-18 17:13:06 +01:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Reinhard Panhuber 
							
						 
					 
					
						
						
							
						
						8450bc3225 
					 
					
						
						
							
							Add FIFO copy modes: tu_fifo_copy_mode_t  
						
						 
						
						... 
						
						
						
						Allows to copy from/to constant pointers required for STM32 hardware
FIFO copies. 
						
						
					 
					
						2021-01-18 17:12:39 +01:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Reinhard Panhuber 
							
						 
					 
					
						
						
							
						
						bdbcb8df39 
					 
					
						
						
							
							Add tu_fifo_read_n_into_other_fifo() to copy into from FIFO into another  
						
						 
						
						... 
						
						
						
						Fix overflow in tu_fifo_write_n() 
						
						
					 
					
						2021-01-17 11:55:33 +01:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								hathach 
							
						 
					 
					
						
						
							
						
						4b4f880785 
					 
					
						
						
							
							add tud_ready() check in tud_cdc_n_write_flush()  
						
						 
						
						... 
						
						
						
						other clean up 
						
						
					 
					
						2020-11-23 23:40:13 +07:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Jan Dümpelmann 
							
						 
					 
					
						
						
							
						
						54e29e9ff4 
					 
					
						
						
							
							Implementation of the discussed changes  
						
						 
						
						... 
						
						
						
						- remove usbd_edpt_xfer_abort
- rename tu_fifo_change_mode to tu_fifo_set_mode
- remove CFG_TUD_CDC_CLEAR_AT_CONNECTION definition
- remove auto fifo clear at connection event
- add tud_cdc_n_write_clear function 
						
						
					 
					
						2020-11-18 09:42:50 +01:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Jan Dümpelmann 
							
						 
					 
					
						
						
							
						
						af9f0f1cd6 
					 
					
						
						
							
							Merge remote-tracking branch 'hathach/master' into cdc_without_dtr  
						
						 
						
						
						
						
					 
					
						2020-11-04 17:11:01 +01:00