This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

how to disable all interrupt

as the topic

Parents Reply
  • HI,Ivan:

    example:BLE_APP_MOUSE

    SDK16

    one more another question:the source code as below,the "for"statement would be optimised,how to prevent it?

    void sensor_init(void)
    {
        uint32_t VAR1;
        uint32_t VAR2;
        
        nrf_gpio_cfg_output(power);
        nrf_gpio_cfg_output(cs);
        nrf_gpio_pin_set(cs);
     //   nrf_gpio_pin_set(power);
        nrf_gpio_pin_clear(cs);
    
    
       nrf_gpio_pin_set(cs);
       for(VAR1=0;VAR1<10000;VAR1++)
       {
          
       }
       nrf_gpio_pin_clear(cs);

Children
Related