Skip to content

Commit

Permalink
add Teensy 4.x support
Browse files Browse the repository at this point in the history
  • Loading branch information
LAtimes2 committed Jun 28, 2020
1 parent e56d4dc commit f7f30c4
Show file tree
Hide file tree
Showing 2 changed files with 130 additions and 0 deletions.
65 changes: 65 additions & 0 deletions ols.distribution/src/main/config/ols.profile-teensy40_600.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
# Configuration for the Teensy profile
# http://dangerousprototypes.com/docs/Logic_analyzer_mode

# The short (single word) type of the device described in this profile
device.type = Teensy40_600
# A longer description of the device
device.description = Teensy 4.0 600 MHz OLS
# The device interface, SERIAL only
device.interface = SERIAL
# F_CPU - The device's native clockspeed, in Hertz.
device.clockspeed = 600000000
# F_BUS - The clockspeed used in the divider calculation, in Hertz. Defaults to 100MHz as most devices appear to use this.
device.dividerClockspeed = 600000000
# Whether or not double-data-rate is supported by the device (also known as the "demux"-mode).
device.supports_ddr = false
# Supported sample rates in Hertz, separated by comma's
device.samplerates = 10, 20, 50, 100, 200, 500, 1000, 2000, 5000, 10000, 20000, 50000, 100000, 200000, 500000, 1000000, 2000000, 5000000, 10000000, 12500000, 25000000, 75000000
# Default sample rate in Hertz
device.defaultsamplerate = 5000000
# What capture clocks are supported
device.captureclock = INTERNAL
# The supported capture sizes, in bytes
device.capturesizes = 2048, 16384, 32768, 65536, 131072, 251904, 471040, 942080, 1884160, 3768320
# Default capture size
device.defaultcapturesize = 251904
# Whether or not the noise filter is supported
device.feature.noisefilter = false
# Whether or not Run-Length encoding is supported
device.feature.rle = true
# Whether or not a testing mode is supported
device.feature.testmode = false
# Whether or not triggers are supported
device.feature.triggers = true
# The number of trigger stages
device.trigger.stages = 4
# Whether or not "complex" triggers are supported
device.trigger.complex = true

# The total number of channels usable for capturing
device.channel.count = 8
# The number of channels groups, together with the channel count determines the channels per group
device.channel.groups = 1
# Whether the capture size is limited by the enabled channel groups
device.capturesize.bound = false
# Whether the capture size is limited by the enabled channels (1,2,4,8)
device.capturesize.channelbound = true
# Which numbering does the device support
device.channel.numberingschemes = DEFAULT

# Is a delay after opening the port and device detection needed? (0 = no delay, >0 = delay in milliseconds)
device.open.portdelay = 100
# The receive timeout for the device (in milliseconds, 100 = default, <=0 = no timeout)
device.receive.timeout = 1000
# Does the device need a high or low DTR-line to operate correctly? (high = true, low = false)
device.open.portdtr = false
# Which metadata keys correspond to this device profile? Value is a comma-separated list of (double quoted) names...
device.metadata.keys = "Teensy40_600"

# In which order are samples sent back from the device? false = last sample first, true = first sample first
device.samples.reverseOrder = false

# Commands to load firmware
device.firmwareCommand.windows = cmd /c cd firmware & tycmd upload TeensyLogicAnalyzer_600.TEENSY40.hex 2>&1
device.firmwareCommand.linux = firmware/tycmd upload firmware/TeensyLogicAnalyzer_600.TEENSY40.hex 2>&1
###EOF###
65 changes: 65 additions & 0 deletions ols.distribution/src/main/config/ols.profile-teensy41_600.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
# Configuration for the Teensy profile
# http://dangerousprototypes.com/docs/Logic_analyzer_mode

# The short (single word) type of the device described in this profile
device.type = Teensy41_600
# A longer description of the device
device.description = Teensy 4.1 600 MHz OLS
# The device interface, SERIAL only
device.interface = SERIAL
# F_CPU - The device's native clockspeed, in Hertz.
device.clockspeed = 600000000
# F_BUS - The clockspeed used in the divider calculation, in Hertz. Defaults to 100MHz as most devices appear to use this.
device.dividerClockspeed = 600000000
# Whether or not double-data-rate is supported by the device (also known as the "demux"-mode).
device.supports_ddr = false
# Supported sample rates in Hertz, separated by comma's
device.samplerates = 10, 20, 50, 100, 200, 500, 1000, 2000, 5000, 10000, 20000, 50000, 100000, 200000, 500000, 1000000, 2000000, 5000000, 10000000, 12500000, 25000000, 75000000
# Default sample rate in Hertz
device.defaultsamplerate = 5000000
# What capture clocks are supported
device.captureclock = INTERNAL
# The supported capture sizes, in bytes
device.capturesizes = 2048, 16384, 32768, 65536, 131072, 251904, 471040, 942080, 1884160, 3768320
# Default capture size
device.defaultcapturesize = 251904
# Whether or not the noise filter is supported
device.feature.noisefilter = false
# Whether or not Run-Length encoding is supported
device.feature.rle = true
# Whether or not a testing mode is supported
device.feature.testmode = false
# Whether or not triggers are supported
device.feature.triggers = true
# The number of trigger stages
device.trigger.stages = 4
# Whether or not "complex" triggers are supported
device.trigger.complex = true

# The total number of channels usable for capturing
device.channel.count = 8
# The number of channels groups, together with the channel count determines the channels per group
device.channel.groups = 1
# Whether the capture size is limited by the enabled channel groups
device.capturesize.bound = false
# Whether the capture size is limited by the enabled channels (1,2,4,8)
device.capturesize.channelbound = true
# Which numbering does the device support
device.channel.numberingschemes = DEFAULT

# Is a delay after opening the port and device detection needed? (0 = no delay, >0 = delay in milliseconds)
device.open.portdelay = 100
# The receive timeout for the device (in milliseconds, 100 = default, <=0 = no timeout)
device.receive.timeout = 1000
# Does the device need a high or low DTR-line to operate correctly? (high = true, low = false)
device.open.portdtr = false
# Which metadata keys correspond to this device profile? Value is a comma-separated list of (double quoted) names...
device.metadata.keys = "Teensy40_600"

# In which order are samples sent back from the device? false = last sample first, true = first sample first
device.samples.reverseOrder = false

# Commands to load firmware
device.firmwareCommand.windows = cmd /c cd firmware & tycmd upload TeensyLogicAnalyzer_600.TEENSY41.hex 2>&1
device.firmwareCommand.linux = firmware/tycmd upload firmware/TeensyLogicAnalyzer_600.TEENSY41.hex 2>&1
###EOF###

0 comments on commit f7f30c4

Please sign in to comment.