/var/www/restricted/ssh/stm32/www/stm32circle/ STM CircleOS forum / How to disable all interrupts for STM32F205

Username:     
Password:     
             

Forum

# 1   2011-09-23 08:19:45 How to disable all interrupts for STM32F205

anointee
New member
Registered: 2011-09-23
Posts: 1

How to disable all interrupts for STM32F205

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)

Offline

 

# 2   2011-10-15 20:58:04 How to disable all interrupts for STM32F205

gremlinc5
New member
Registered: 2010-09-28
Posts: 4

Re: How to disable all interrupts for STM32F205

You absolutely don't need to use functions from library to achieve a core function like disable interrupts.

From "core_cm3.h"

Near:
/*------------------ ICC Compiler -------------------*/
    /* IAR iccarm specific functions */
There is:
#define __disable_irq   __disable_interrupt /*!< global Interrupt disable */

Or search yours for Atolic STM32 compiler... I don't know what's for you.

Or try to take an Atollic STM32 example project and do a "Search All File" with "disable" or "interrupt".

I hope it helps.

Last edited by gremlinc5 (2011-10-15 21:09:50)

Offline

 

Board footer