github.com/tinygo-org/tinygo@v0.31.3-0.20240404173401-90b0bf646c27/src/device/avr/avr_tiny85.go (about)

     1  //go:build avr && attiny85
     2  
     3  package avr
     4  
     5  // The attiny85 have only TIMSK when other AVR boards have TIMSK0 and TIMSK1, etc.
     6  // Create an alias of TIMSK, TIMSK_OCIE0A, TIMSK_OCIE0B and TIMSK_TOIE0 so we can use
     7  // common code to mask interrupts.
     8  
     9  var TIMSK0 = TIMSK
    10  
    11  const (
    12  	TIMSK0_OCIE0A = TIMSK_OCIE0A
    13  	TIMSK0_OCIE0B = TIMSK_OCIE0B
    14  	TIMSK0_TOIE0  = TIMSK_TOIE0
    15  )