Class: EmbedUtils::Board::Micro

Inherits:
Base
  • Object
show all
Defined in:
lib/embed_utils/board.rb

Instance Method Summary collapse

Instance Method Details

#avr_mcuObject



72
73
74
# File 'lib/embed_utils/board.rb', line 72

def avr_mcu
  'm32u4'
end

#avr_programmerObject



76
77
78
# File 'lib/embed_utils/board.rb', line 76

def avr_programmer
  'avr109'
end

#mcuObject



56
57
58
# File 'lib/embed_utils/board.rb', line 56

def mcu
  :atmega32u4
end

#predefinesObject



64
65
66
67
68
69
70
# File 'lib/embed_utils/board.rb', line 64

def predefines
  super + %w[
    -DF_CPU=16000000L
    -DUSB_VID=0x2341
    -DUSB_PID=0x8037
  ]
end

#upload_speedObject



80
81
82
# File 'lib/embed_utils/board.rb', line 80

def upload_speed
  57600
end

#variantObject



60
61
62
# File 'lib/embed_utils/board.rb', line 60

def variant
  :micro
end