Tidy up defines within STM EEPROM emulation (#14275)
* Tidy up defines within stm eeprom emulation * Fix tests * Resolve todo * Still use page notion in clear * Remove more f4 refs
This commit is contained in:
		
							parent
							
								
									fe6d6cf76d
								
							
						
					
					
						commit
						8d6d8cfadf
					
				
					 6 changed files with 121 additions and 78 deletions
				
			
		| 
						 | 
				
			
			@ -151,7 +151,7 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.
 | 
			
		|||
#ifndef FLASHSIZE_BASE
 | 
			
		||||
#  define FLASHSIZE_BASE ((uint32_t)0x1FFFF7CCU) /*!< FLASH Size register base address */
 | 
			
		||||
#endif
 | 
			
		||||
#define EEPROM_START_ADDRESS
 | 
			
		||||
#define FEE_MCU_FLASH_SIZE_IGNORE_CHECK
 | 
			
		||||
#define FEE_MCU_FLASH_SIZE                              \
 | 
			
		||||
({                                                      \
 | 
			
		||||
    uint16_t (*flash_size) = (uint16_t*)FLASHSIZE_BASE;  \
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue