General cleanup, use _BV
This commit is contained in:
		@@ -25,7 +25,7 @@
 | 
			
		||||
 * Emulate EEPROM storage using Flash Memory
 | 
			
		||||
 *
 | 
			
		||||
 * Use a single 32K flash sector to store EEPROM data. To reduce the
 | 
			
		||||
 * number of erase operations a simple "levelling" scheme is used that
 | 
			
		||||
 * number of erase operations a simple "leveling" scheme is used that
 | 
			
		||||
 * maintains a number of EEPROM "slots" within the larger flash sector.
 | 
			
		||||
 * Each slot is used in turn and the entire sector is only erased when all
 | 
			
		||||
 * slots have been used.
 | 
			
		||||
 
 | 
			
		||||
@@ -152,7 +152,7 @@ FORCE_INLINE static void HAL_timer_disable_interrupt(const uint8_t timer_num) {
 | 
			
		||||
 | 
			
		||||
// This function is missing from CMSIS
 | 
			
		||||
FORCE_INLINE static bool NVIC_GetEnableIRQ(IRQn_Type IRQn) {
 | 
			
		||||
  return (NVIC->ISER[((uint32_t)IRQn) >> 5] & (1 << ((uint32_t)IRQn) & 0x1F)) != 0;
 | 
			
		||||
  return TEST(NVIC->ISER[uint32_t(IRQn) >> 5], uint32_t(IRQn) & 0x1F);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
FORCE_INLINE static bool HAL_timer_interrupt_enabled(const uint8_t timer_num) {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user