msp430_bsl 0.1.0 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bin/upload_hex +4 -1
- data/lib/msp430_bsl/uart/peripheral_interface.rb +1 -0
- data/lib/msp430_bsl/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4348c30b38b554c1acc4ae87bf794d41b5b0e093187b0d943a549524bbdb524e
|
4
|
+
data.tar.gz: ed9d5f99c55f4f773d30aada91db6e581a4b2a2659b68cf478da4c3c348f4aed
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c6d2884fb6079fb1a5211803dfcb9793316a69556287ffd3ddec8d6c9f0fab2f4972484b1eb7bcd97bf9ebf3ce89e46ad113f640ddc8c717ddd8ac7ad0de2724
|
7
|
+
data.tar.gz: 642e82aa7eb54c4b60b81f02e311b40e3891820e1b67e0ec51c120f4d99e10af9ae2714375aea899eac64e9bd0c668d09161e9716f768ae86f7075bce31d26a9
|
data/bin/upload_hex
CHANGED
@@ -5,6 +5,9 @@ Bundler.require
|
|
5
5
|
require 'slop'
|
6
6
|
require_relative '../lib/msp430_bsl'
|
7
7
|
|
8
|
+
# Force sync on STDOUT write. This way the logger flushes its output after every write
|
9
|
+
STDOUT.sync = true
|
10
|
+
|
8
11
|
include Msp430Bsl::Utils
|
9
12
|
|
10
13
|
HIGH_SPEED_UART_BAUD = 115200.freeze
|
@@ -95,7 +98,7 @@ line_groups.each do |group|
|
|
95
98
|
if curr_data_packet.empty?
|
96
99
|
# Use current line's addr as packet addr
|
97
100
|
curr_data_packet << line
|
98
|
-
curr_data_size +=
|
101
|
+
curr_data_size += line.data_length + Msp430Bsl::Uart::PeripheralInterface::TOTAL_SIZE
|
99
102
|
elsif (curr_data_size + line.data_length) <= Msp430Bsl::Uart::Connection::CORE_COMMANDS_BUFFER_SIZE
|
100
103
|
# If there's still room, append the line data
|
101
104
|
curr_data_packet << line
|
data/lib/msp430_bsl/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: msp430_bsl
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Alessandro Verlato
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-
|
11
|
+
date: 2023-08-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: zeitwerk
|
@@ -112,7 +112,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
112
112
|
- !ruby/object:Gem::Version
|
113
113
|
version: '0'
|
114
114
|
requirements: []
|
115
|
-
rubygems_version: 3.
|
115
|
+
rubygems_version: 3.3.7
|
116
116
|
signing_key:
|
117
117
|
specification_version: 4
|
118
118
|
summary: Texas Instrument MSP430 BSL Ruby library
|