noInterrupts() equivalent

Posted on
  • I'm looking for a way to disable timers and interrupts to test whatever or not the FS module is disrupted by running timers, so I would disable interrupts/timers, exec FS routine and re-enable them. Is this possible at the moment?

  • Afraid not... Interrupts are used for all IO, so it's a bit hard to disable them for any length of time. For example while irqs are disabled, a simple print statement could crash the device.

    I seriously doubt this is the problem though as SPI itself isn't really very timing critical. Are you sure it's not just a card that is formatted strangely?

  • Post a reply
    • Bold
    • Italics
    • Link
    • Image
    • List
    • Quote
    • code
    • Preview
About

noInterrupts() equivalent

Posted by Avatar for TiCPU @TiCPU

Actions