IAR has a C function to disable all interrupts (global interrupts).
___disableinterrupt();
I am using Atolic STM32 compiler and can you suggest me how to disable all interrupts (global interrupts)?
Should I configure all of followings into "DISABLE"?
Waiting to hear your suggests.
Kim
void ADC_ITConfig(ADC_TypeDef* ADCx, uint16_t ADC_IT, FunctionalState NewState);
void CRYP_ITConfig(uint8_t CRYP_IT, FunctionalState NewState);
void DAC_ITConfig(uint32_t DAC_Channel, uint32_t DAC_IT, FunctionalState NewState);
void DCMI_ITConfig(uint16_t DCMI_IT, FunctionalState NewState);
void DMA_ITConfig(DMA_Stream_TypeDef* DMAy_Streamx, uint32_t DMA_IT, FunctionalState NewState);
void FLASH_ITConfig(uint32_t FLASH_IT, FunctionalState NewState);
void FSMC_ITConfig(uint32_t FSMC_Bank, uint32_t FSMC_IT, FunctionalState NewState);
void HASH_ITConfig(uint8_t HASH_IT, FunctionalState NewState);
void I2C_ITConfig(I2C_TypeDef* I2Cx, uint16_t I2C_IT, FunctionalState NewState);
void RCC_ITConfig(uint8_t RCC_IT, FunctionalState NewState);
void RNG_ITConfig(FunctionalState NewState);
void RTC_ITConfig(uint32_t RTC_IT, FunctionalState NewState);
void SDIO_ITConfig(uint32_t SDIO_IT, FunctionalState NewState);
void SPI_I2S_ITConfig(SPI_TypeDef* SPIx, uint8_t SPI_I2S_IT, FunctionalState NewState);
void TIM_ITConfig(TIM_TypeDef* TIMx, uint16_t TIM_IT, FunctionalState NewState);
void USART_ITConfig(USART_TypeDef* USARTx, uint16_t USART_IT, FunctionalState NewState);
void ADC_ITConfig(ADC_TypeDef* ADCx, uint16_t ADC_IT, FunctionalState NewState)
void CAN_ITConfig(CAN_TypeDef* CANx, uint32_t CAN_IT, FunctionalState NewState)
void CRYP_ITConfig(uint8_t CRYP_IT, FunctionalState NewState)
void DAC_ITConfig(uint32_t DAC_Channel, uint32_t DAC_IT, FunctionalState NewState)
void DCMI_ITConfig(uint16_t DCMI_IT, FunctionalState NewState)
void DMA_ITConfig(DMA_Stream_TypeDef* DMAy_Streamx, uint32_t DMA_IT, FunctionalState NewState)
void FLASH_ITConfig(uint32_t FLASH_IT, FunctionalState NewState)
void FSMC_ITConfig(uint32_t FSMC_Bank, uint32_t FSMC_IT, FunctionalState NewState)
void HASH_ITConfig(uint8_t HASH_IT, FunctionalState NewState)
void I2C_ITConfig(I2C_TypeDef* I2Cx, uint16_t I2C_IT, FunctionalState NewState)
void RCC_ITConfig(uint8_t RCC_IT, FunctionalState NewState)
void RNG_ITConfig(FunctionalState NewState)
void RTC_ITConfig(uint32_t RTC_IT, FunctionalState NewState)
void SDIO_ITConfig(uint32_t SDIO_IT, FunctionalState NewState)
void SPI_I2S_ITConfig(SPI_TypeDef* SPIx, uint8_t SPI_I2S_IT, FunctionalState NewState)
void TIM_ITConfig(TIM_TypeDef* TIMx, uint16_t TIM_IT, FunctionalState NewState)
void USART_ITConfig(USART_TypeDef* USARTx, uint16_t USART_IT, FunctionalState NewState)