1
0
forked from me/IronOS

Compare commits

...

202 Commits
v2.09 ... v2.11

Author SHA1 Message Date
Ben V. Brown
372f8e3565 Update Dockerfile 2020-08-29 14:39:46 +10:00
Ben V. Brown
3d3799d414 Prepare v2.11 release 2020-08-29 14:38:56 +10:00
Ben V. Brown
11f3eadfc9 Merge pull request #655 from paulfertser/temp-rfc-patches
RFC patches
2020-08-27 11:06:03 +10:00
Paul Fertser
b331032f30 Makefile: remove duplicated code generation options from LINKER_FLAGS
LINKER_FLAGS already includes CPUFLAGS via CXXFLAGS (and that's the
right way to have the correct options defined at a single place).
2020-08-26 15:07:28 +03:00
Paul Fertser
25aee6b661 Move I2CSemaphore creation outside postRToSInit
The code assumes that whenever scheduler is running I2CSemaphore is
available. Initialising it in a task might lead to race conditions and
is also not happening at all if the task is disabled (for debugging or
due to lack of need for a particular usecase).

The race condition can't happen with the current code though, as GUI
task has lower priority than the MOV task, and they're the only tasks
that currently use I2C. However, this might change in the future with
the code refactoring or introduction of new features.
2020-08-26 15:07:13 +03:00
Paul Fertser
c1dd88ba53 Allow SWD debugging when built with swd_enable=1 2020-08-26 11:54:29 +03:00
Paul Fertser
780f1f35ca Make flash and bootloader sizes configurable
This patch makes allocating special pages automatic and flexible,
allowing flash size and application start offset specification with
linker command line arguments. It should allow easier porting to
different targets and experimentation without adding code complexity.

Many original STM32F103x8 chips have fully functional 128 kiB flash and
so this additional space might come useful for experimentation,
additional optional features etc. Tested on v2.51A board, including
writing and verifying 128 kiB of random data.

Make variables are added to control that, so to build for the full
undocumented flash size and dapboot configured to start the app from 8
kiB offset one can run:

make flash_size=128k bootldr_size=0x2000
2020-08-26 11:53:47 +03:00
Paul Fertser
76099406ef Update FreeRTOS port-specific files to V10.3.1
This updates Cortex-M3 port files to version found in
V10.3.1-kernel-only tag of FreeRTOS-Kernel.

The new upstream release includes memory barriers which are essential
for use with modern optimising compilers. Without those firmware
certainly breaks with -O3 -flto and might be also broken with other
optimisation configurations.

Fixes: d59ec10c4e ("Update FreeRTOS to v10.3.1")
2020-08-26 11:52:05 +03:00
Ben V. Brown
e66fe461d2 Merge pull request #680 from dimitroffs/better-bg-translate
Better Bulgarian language translations
2020-08-20 07:53:18 +10:00
Dimitar Dimitrov
5d358feee9 Small changes after detailed view on a display 2020-08-19 18:18:58 +03:00
Ben V. Brown
09ff363ae5 Update README.md 2020-08-19 15:09:55 +10:00
Dimitar Dimitrov
e92a81c229 Better Bulgarian language translations 2020-08-17 16:42:27 +03:00
Ben V. Brown
138000f4a5 Merge pull request #672 from Ralim/supporting-FUSB302
Adding support for the TS80P using FUSB302 for USB-PD
2020-08-15 17:10:35 +10:00
Ben V. Brown
8faeb4e587 More accurate TS80P peak 12V current draw 2020-08-15 16:41:28 +10:00
Ben V. Brown
b370fcfa6f Fix warnings 2020-08-02 16:36:52 +10:00
Ben V. Brown
e4aab8aa91 Update pd.h 2020-08-02 16:27:34 +10:00
Ben V. Brown
c066ec8ae5 Setup delay not required anymore 2020-08-02 16:18:50 +10:00
Ben V. Brown
026e5cc9c5 NULL pointer checks for race 2020-08-02 16:18:43 +10:00
Ben V. Brown
666c250630 Setup to basically always pick 5V 2020-08-02 16:18:32 +10:00
Ben V. Brown
d73ad0d11c No need to listen to SOP' SOP" now 2020-08-02 16:18:17 +10:00
Ben V. Brown
0d03650726 Correct timings 2020-08-02 16:17:51 +10:00
Ben V. Brown
d47c28b760 Use mutex for priority inversion prevention 2020-08-02 16:17:41 +10:00
Ben V. Brown
e2c5e51fe1 Refactor to 1khz RToS 2020-08-01 21:16:23 +10:00
Ben V. Brown
9391158399 Re enable accel, fix accel flags & cleanup qc 2020-07-29 22:53:08 +10:00
Ben V. Brown
a39185315d Allow query PD for status and remove more cruft from PPS 2020-07-29 22:52:36 +10:00
Ben V. Brown
a59d008d07 Hold off QC until PD is done 2020-07-29 22:52:20 +10:00
Ben V. Brown
d68eb95f50 Cleanup more unrequired logic 2020-07-28 22:27:14 +10:00
Ben V. Brown
b6ee4207dd Dont need to soft reset if timing gives SOP' without SOP following
Easier to wait again and let timeout handle reset
2020-07-28 21:56:50 +10:00
Ben V. Brown
be57c4f58a Update BSP_PD.c 2020-07-28 21:43:42 +10:00
Ben V. Brown
7b41e2fcca Lower min spec to ~27W for 12v neg 2020-07-28 21:28:27 +10:00
Ben V. Brown
1e19fc80f4 Add ts80p to auto build 2020-07-28 21:26:26 +10:00
Ben V. Brown
add65ead9c Drop timer support as not used 2020-07-28 21:26:05 +10:00
Ben V. Brown
0b2311e001 Update config and clean up debugging calls 2020-07-28 21:20:36 +10:00
Ben V. Brown
8f395e2294 Update protocol_tx.cpp 2020-07-28 20:28:36 +10:00
Ben V. Brown
9832b97248 Header updates to match 2020-07-28 20:10:34 +10:00
Ben V. Brown
d35b2bf115 Update protocol_rx.cpp 2020-07-28 20:05:58 +10:00
Ben V. Brown
dd340d3a2b Port from test env cleanups 2020-07-28 20:05:47 +10:00
Ben V. Brown
8eacf50a5b mask stacked reset if another message recieved at the same time 2020-07-28 20:02:32 +10:00
Ben V. Brown
c9a8794fb9 Policy handle already pending message 2020-07-28 20:01:56 +10:00
Ben V. Brown
23ce11a68f Listen for SOP packets too to keep in sync (discard at software layer) 2020-07-28 19:59:28 +10:00
Ben V. Brown
e6d1249c91 Cleanup model selection 2020-07-25 22:28:38 +10:00
Ben V. Brown
f36e78f664 . 2020-07-23 22:49:05 +10:00
Ben V. Brown
ff65e6437b Shrink flash usage _just_ enough 2020-07-23 22:45:00 +10:00
Ben V. Brown
85decdc15b Merge branch 'master' into supporting-FUSB302 2020-07-23 20:26:56 +10:00
Ben V. Brown
b40a21470b Update fusbpd.cpp 2020-07-22 23:09:46 +10:00
Ben V. Brown
9b0a071e9a Cleaning up a bit for ease of integration 2020-07-22 23:06:59 +10:00
Ben V. Brown
1f6dfe5da5 MVP 2020-07-22 22:59:20 +10:00
Ben V. Brown
4441a5ca93 Handle NTC in TS80P 2020-07-22 22:54:55 +10:00
Ben V. Brown
1cebcdc42b Works on SRC only units.. mostly 2020-07-22 22:39:35 +10:00
Ben V. Brown
6097216b24 Port unreliable but starter PD setup 2020-07-22 22:39:20 +10:00
Ben V. Brown
164c402d1c Update I2CBB.cpp 2020-07-22 22:33:18 +10:00
Ben V. Brown
db517a13e8 Merge pull request #670 from pfeerick/patch-1
Upgrading.md - Use file explorer, not alternatives when upgrading on Windows
2020-07-22 22:19:34 +10:00
Peter
237a1b2dea Use native file explorer, not alternatives
Add mention of not using alternative file managers / copy handlers, similar to wiki mention.

Resolves #544
2020-07-22 20:37:11 +10:00
Ben V. Brown
b6c61cfb52 Still testing 2020-07-21 13:39:50 +10:00
Ben V. Brown
1cc4153315 Merge pull request #665 from Swyter/master
Update the Spanish translation to cover the recent UI changes
2020-07-06 21:44:24 +10:00
Swyter
96d368b91a Last tweaks to the Castilian Spanish translation. The power pulse option acts a bit weird, so shorten the string a big. Happy with the rest. 2020-07-05 14:27:00 +02:00
Swyter
93ef2ea2f1 Minor tweaks to the Castilian Spanish translation, to improve the layout, the explanations and to adapt better to the tight space. 2020-07-05 14:00:07 +02:00
Swyter
a48a5ddf84 Update the Spanish translation to cover the recent UI changes. 2020-07-05 12:31:46 +02:00
Ben V. Brown
a81511ceb9 Merge pull request #659 from paulfertser/fix-tempchange-menu
Fix "Temp change short/long" menu display
2020-06-21 10:25:08 +10:00
Ben V. Brown
6cf245f33e Merge pull request #660 from paulfertser/fix-thumb-position
Fix scrollbar thumb position for long menus
2020-06-21 10:23:41 +10:00
Paul Fertser
099d6b8aee Fix scrollbar thumb position for long menus
Advanced settings menu has 9 entries so the thumb ends up being one
pixel high and on the 9th menu it ends up being closer to the middle of
the screen rather than the end. This patch fixes it.
2020-06-21 00:37:15 +03:00
Paul Fertser
021b8e2fc8 Fix "Temp change short/long" menu display
The values are only two digits so do not overwrite the end of the menu
item string.

Fixes: #658.
2020-06-20 23:41:44 +03:00
Ben V. Brown
c70689df7d Hook up IRQ 2020-06-17 18:22:43 +10:00
Ben V. Brown
43b7947645 Update fusbpd.cpp 2020-06-17 18:15:27 +10:00
Ben V. Brown
12e8d2a93d Update hard_reset.cpp 2020-06-17 18:15:22 +10:00
Ben V. Brown
c55b91af6a static state 2020-06-17 18:15:16 +10:00
Ben V. Brown
6d23617670 IRQ int 2020-06-17 18:14:17 +10:00
Ben V. Brown
4c2fb11d32 Filter returned WFE 2020-06-16 21:25:28 +10:00
Ben V. Brown
2fd06887e8 Better messages flowing 2020-06-16 20:21:26 +10:00
Ben V. Brown
54a8aa7ac6 I2C protection 2020-06-16 20:19:06 +10:00
Ben V. Brown
968e22c7dc Add blank flash hex 2020-06-15 18:56:11 +10:00
Ben V. Brown
9ea92a3c17 Disable i2c slave code (shaves off a few hundred bytes) 2020-06-14 21:12:41 +10:00
Ben V. Brown
61f991e423 Fix watchdog timeouts && get unit to boot 2020-06-14 21:12:25 +10:00
Ben V. Brown
f196c5f1c9 Moving PD framework + big thread cleanup 2020-06-14 16:32:11 +10:00
Ben V. Brown
60abcb0d8b Merge pull request #648 from federck/patch-24
IT_translation update
2020-06-13 23:11:17 +10:00
Ben V. Brown
051417d515 Merge pull request #650 from paulfertser/ts100-swd-over-usb
New TS100 v2.51A version allows SWD over USB pins
2020-06-13 23:10:59 +10:00
Ben V. Brown
2c0b14edd4 Culling until fits in code
Does _not_ negotiate correctly :(
2020-06-12 22:13:40 +10:00
Ben V. Brown
34ae57ee58 Bitbang I2C setup + detect test 2020-06-12 21:10:03 +10:00
Ben V. Brown
aa4485d1d9 Merge pull request #652 from radjah/patch-1
Typos and commas
2020-06-12 07:27:16 +10:00
Ben V. Brown
479b9fc670 Merge pull request #651 from pelkat/dev_tpe
Translated remaining CS (czech) strings
2020-06-12 07:26:41 +10:00
Radjah
5444c3f8de Typos and commas
Corrected errors in the text
2020-06-11 18:16:14 +03:00
Ben V. Brown
450ce17935 Import existing FUSB302 library 2020-06-11 23:30:06 +10:00
Tomas Pelka
753310c212 Translated remaining CS (czech) strings 2020-06-11 14:08:21 +02:00
Ben V. Brown
954770373c Starting the roughout 2020-06-11 18:50:36 +10:00
Paul Fertser
d2b05570fc New TS100 v2.51A version allows SWD over USB pins 2020-06-09 23:36:19 +03:00
federck
b3d16df69a Update translation_it.json 2020-06-07 16:40:53 +03:00
federck
30d8490128 Update translation_it.json 2020-06-07 14:11:58 +03:00
federck
05c5e04bed IT_translation update 2020-06-07 13:32:57 +03:00
Ben V. Brown
18a2c0a9ec Merge pull request #644 from Ralim/docs
Updating some of the markdown docs
2020-06-03 12:01:30 +10:00
Ben V. Brown
88caa3f3c7 Merge pull request #645 from Realetive/patch-1
Fix mistakes
2020-06-03 12:01:12 +10:00
Ben V. Brown
316de7cb1e Merge pull request #638 from playday3008/patch-1
Update translation_uk.json
2020-06-03 12:01:01 +10:00
Ben V. Brown
3b4852f8fb Merge pull request #646 from KITT3000/patch-1
Update PL translation
2020-06-03 12:00:23 +10:00
Ziuta
b7ad1ae0cd Update translation_pl.json 2020-06-02 17:24:41 +02:00
Ziuta
9491262e87 Update PL translation 2020-06-02 17:22:41 +02:00
Realetive
9c86cd228c Fix mistakes 2020-06-02 17:43:07 +03:00
PlayDay
dd5d2c955d Merge branch 'master' into patch-1 2020-06-02 15:57:25 +02:00
Ben V. Brown
f28ba93f0e Update README.md 2020-06-02 22:36:43 +10:00
Ben V. Brown
e6129c3456 Update README.md 2020-06-02 22:32:47 +10:00
Ben V. Brown
b3507218ad Update menu.md 2020-06-02 22:32:44 +10:00
Ben V. Brown
7518a2fe7d Create upgrading.md 2020-06-02 22:32:42 +10:00
Ben V. Brown
76f2278516 Merge pull request #643 from Ralim/update-freertos
Update FreeRTOS to v10.3.1
2020-06-02 18:50:13 +10:00
Ben V. Brown
d59ec10c4e Update FreeRTOS to v10.3.1 2020-06-02 18:20:16 +10:00
Ben V. Brown
64d5e8b1af Fix mixtake in I2C probe check 2020-05-30 18:35:15 +10:00
Ben V. Brown
441ac7f83a Move IRQ's for easier tracing 2020-05-30 18:34:49 +10:00
PlayDay
71a09c0014 Update translation_uk.json 2020-05-30 08:07:36 +02:00
PlayDay
4dc1a19230 Update translation_uk.json 2020-05-30 07:46:39 +02:00
PlayDay
76881e6f50 Update translation_uk.json 2020-05-30 07:42:10 +02:00
PlayDay
93c87fd91d Update translation_uk.json
Forgot  ","
2020-05-30 07:29:21 +02:00
PlayDay
abbcd05117 Update translation_uk.json
Don't merge now
2020-05-30 07:24:09 +02:00
Ben V. Brown
cf18863958 Update version for release 2020-05-30 13:57:04 +10:00
Ben V. Brown
6af4494442 Merge pull request #637 from Ralim/update-compiler
Update to newest compiler from ARM
2020-05-30 13:55:41 +10:00
Ben V. Brown
b4384be3ac Update docker-compose.yml 2020-05-30 13:41:24 +10:00
Ben V. Brown
24f6da9b50 Update to newest compiler from ARM 2020-05-30 13:28:21 +10:00
Ben V. Brown
37d03bdb17 Merge pull request #636 from discip/master
Update translation_en.json
2020-05-30 13:05:24 +10:00
Ben V. Brown
1207f65ba9 Merge pull request #634 from Ralim/feat/BSP
Feature: Move board dependant code to be separate
2020-05-30 13:04:45 +10:00
Ben V. Brown
7cff1cdf3b Update Power.cpp 2020-05-30 12:43:49 +10:00
Ben V. Brown
05b43dfa1c Clean up power calls 2020-05-30 12:43:32 +10:00
Ben V. Brown
5bb85a4a32 Pull out more QC hooks 2020-05-30 12:05:11 +10:00
Ben V. Brown
2bcebd473e Cleanup QC Names 2020-05-30 11:46:13 +10:00
Ben V. Brown
e422fe28ae Enable -werror & wrap malloc
Preventing accidental use of dynamic memory
2020-05-30 11:39:58 +10:00
Ben V. Brown
341d7b1d5a Pin ubuntu version 2020-05-30 11:39:28 +10:00
discip
c6c1c07bfb Merge branch 'master' into master 2020-05-30 00:15:19 +02:00
discip
ecd59462d0 Update translation_en.json 2020-05-30 00:13:48 +02:00
Ben V. Brown
a7a97e604f Update Makefile 2020-05-30 00:29:44 +10:00
Ben V. Brown
5ca0d6e670 Update Translation.h 2020-05-30 00:29:18 +10:00
Ben V. Brown
1e420c8b01 Move Vendor drivers 2020-05-30 00:25:23 +10:00
Ben V. Brown
22aba0855d Cleanup I2C and drivers 2020-05-30 00:23:07 +10:00
Ben V. Brown
ed8e5232b6 Finishing up file cleanup 2020-05-30 00:10:23 +10:00
Ben V. Brown
42ebd37bc8 Pull out settings flash calls 2020-05-30 00:05:28 +10:00
Ben V. Brown
22ac8d797b Update main.cpp 2020-05-29 23:17:23 +10:00
Ben V. Brown
7c45b67967 Update includes 2020-05-29 23:13:30 +10:00
Ben V. Brown
2d8d1ad8da Move I2C 2020-05-29 23:12:31 +10:00
Ben V. Brown
a32e245789 Split I2C + startup logo 2020-05-29 23:07:59 +10:00
Ben V. Brown
d2dacf990c Move I2C to drivers 2020-05-29 22:26:21 +10:00
Ben V. Brown
a01e79aa64 Refactor QC logic for TS80 2020-05-29 22:25:43 +10:00
Ben V. Brown
cd5d9df5ed Update BSP.h 2020-05-29 22:00:24 +10:00
Ben V. Brown
7dbbdf348c Update Makefile 2020-05-29 21:55:53 +10:00
Ben V. Brown
a13f501dfd More refactoring for the movement thread 2020-05-29 21:54:09 +10:00
Ben V. Brown
6bb56c28ba Drivers + Threads 2020-05-29 21:49:13 +10:00
Ben V. Brown
8d59b072ef More shuffle 2020-05-29 21:39:12 +10:00
Ben V. Brown
fd700aecb9 Beginnings of the shuffle 2020-05-29 21:39:06 +10:00
Ben V. Brown
ef5ba8b650 Move Accel probe into class 2020-05-29 20:46:19 +10:00
Ben V. Brown
3b0fc9c6f8 Clean up file locations 2020-05-29 20:13:18 +10:00
Ben V. Brown
45614ff397 Merge pull request #606 from Firebie/TipCoeff
Add tip coeff as setting parameter
2020-05-29 19:30:23 +10:00
firebie
7f6a862e50 Add tip coeff as setting parameter 2020-05-28 14:49:03 +03:00
Ben V. Brown
92ce6128ee Merge pull request #623 from Firebie/LoweringMinTemp
Lowering min temp to 10C
2020-05-28 21:26:20 +10:00
firebie
50dc8689cc Lowering min temp to 10C 2020-05-28 14:09:46 +03:00
Ben V. Brown
55cc5fb681 Merge pull request #633 from Zoli002/patch-1
Update translation_hu.json
2020-05-28 09:06:33 +10:00
Zoli002
ea8dac25f8 Update translation_hu.json
Hungarian translation
Power limit
Maximum power
Reverse temp key + -
Temperature change short press
Temperature change long press
Power pulse mode
2020-05-27 20:22:26 +02:00
Ben V. Brown
c5397b843f Merge pull request #632 from Ralim/feat/power-pulse-for-all
Enable Power Pulse for all models
2020-05-24 18:21:46 +10:00
Ben V. Brown
f90d33f350 Merge branch 'master' into feat/power-pulse-for-all 2020-05-23 14:02:37 +10:00
Ben V. Brown
ac7d72d255 Translation update 2020-05-23 13:59:58 +10:00
Ben V. Brown
f45fd087ab Pull default config out 2020-05-23 13:59:51 +10:00
Ben V. Brown
4814ae1393 Update main.cpp 2020-05-23 13:42:03 +10:00
Ben V. Brown
643120d9ca Merge pull request #629 from xobotyi/update_trans_ru
feat: improve Russian translation
2020-05-23 12:16:12 +10:00
Ben V. Brown
c723464987 Merge branch 'master' into update_trans_ru 2020-05-23 10:07:17 +10:00
xobotyi
a5cd898ee5 fix: bugfixes 2020-05-22 17:40:47 +03:00
xobotyi
376724636d fix: bugfixes 2020-05-22 17:30:56 +03:00
Ben V. Brown
1a671dfbdd Update gui.cpp 2020-05-22 23:56:43 +10:00
Ben V. Brown
65e804e54e Add field for power pulse 2020-05-22 23:56:40 +10:00
Ben V. Brown
76721d5f0d Roughing menu calls in 2020-05-22 23:44:22 +10:00
Ben V. Brown
3287ee9d78 Change to using setting to control power pulse 2020-05-22 23:30:20 +10:00
Ben V. Brown
4ec62f8c8f Create settings field for power pulse 2020-05-22 23:30:09 +10:00
Ben V. Brown
a2aa482bcc Merge pull request #621 from apo76/patch-1
Update translation_fr.json
2020-05-22 22:53:11 +10:00
Ben V. Brown
a82f0ef87e Merge branch 'master' into patch-1 2020-05-22 22:46:39 +10:00
xobotyi
5e02819b29 feat: improve Russian translation
Made int more accurate, fixed some translation mistakes.
2020-05-22 11:25:48 +03:00
Ben V. Brown
1adc136367 Merge pull request #624 from agatti/simplify_logo_check
Simplify logo presence check.
2020-05-11 08:00:12 +10:00
Alessandro Gatti
38dbb05bc4 Simplify logo presence check. 2020-05-10 22:41:17 +02:00
apo76
799bc3991b Update translation_fr.json
Translated some messages that were still displayed in English in the French HEX.
2020-05-02 03:14:53 +02:00
Ben V. Brown
16c5b097d3 Merge pull request #614 from PixelPirate/navigation-animations
Navigation animations
2020-04-25 21:26:04 +10:00
Patrick Horlebein
7eb50e6d8a Add documentation 2020-04-25 12:27:54 +02:00
Patrick Horlebein
dbba4f999a Use tabs instead of spaces 2020-04-25 11:46:34 +02:00
Patrick Horlebein
1c2b763d8b Merge branch 'navigation-animations' of github.com:PixelPirate/ts100 into navigation-animations 2020-04-25 11:43:36 +02:00
Patrick Horlebein
d69293342d Add secondary framebuffer, instead of allocating on stack 2020-04-25 11:43:14 +02:00
Patrick Horlebein
b8c822696b Merge branch 'master' of github.com:Ralim/ts100 into navigation-animations 2020-04-25 11:25:13 +02:00
Ben V. Brown
6c17b4ab79 Merge pull request #615 from discip/master
Update translation_en.json
2020-04-22 11:33:26 +10:00
discip
a78e1cd52a Merge branch 'master' into master 2020-04-21 18:26:25 +02:00
discip
2f8eeaa33a Update translation_en.json
unfortunately forgot something
2020-04-21 17:32:36 +02:00
Patrick Horlebein
4395a3402c Merge branch 'master' into navigation-animations 2020-04-21 10:04:09 +02:00
Ben V. Brown
c6f663282a Merge pull request #613 from discip/master
More consistent appearance of the English translation files thanks to @discip
2020-04-21 08:56:13 +10:00
discip
f3723a0326 hopefully consistent appearance (#1)
* Update translation_en.json

The meaning for the 'O parameter' in the scrolling description was missing.

* Update translation_en.json

Proposal for consistent appearance of text.
2020-04-20 23:49:14 +02:00
Patrick Horlebein
3d33a6ea57 Fix whitespaces 2020-04-17 09:46:01 +02:00
Patrick Horlebein
c851554d3e Merge master into navigation-animations 2020-04-17 09:38:16 +02:00
Ben V. Brown
7dbc01bb0d Merge pull request #608 from PixelPirate/scroll-indicator
Add a scrolling indicator thanks to @PixelPirate
2020-04-17 11:05:29 +10:00
Patrick Horlebein
c2ce1372fe Merge master into scroll-indicator 2020-04-16 13:02:59 +02:00
Patrick Horlebein
add8993da5 Use tabs instead of spaces. 2020-04-16 11:16:17 +02:00
Patrick Horlebein
330c4868c2 Fix navigation animation not playing sometimes. 2020-04-06 18:55:48 +02:00
Patrick Horlebein
f3d0bc3965 Simplified animation methods 2020-04-06 18:49:10 +02:00
Patrick Horlebein
172eea4909 Add ease in / out and cleanup animation methods 2020-04-06 17:40:01 +02:00
Patrick Horlebein
bbb724e8f0 Only play navigation animation when menus changed 2020-04-06 17:39:05 +02:00
Patrick Horlebein
ec6140317c Remove secondFrameBuffer and instead add set_framebuffer method 2020-04-06 17:38:24 +02:00
Ben V. Brown
2b4cf54a61 Merge pull request #601 from playday3008/patch-1
Update translation_uk.json
2020-04-06 19:51:23 +10:00
PlayDay
7f89b8a369 Update translation_ru.json 2020-04-06 11:26:31 +02:00
PlayDay
0b3816aee6 Update translation_uk.json 2020-04-06 11:20:12 +02:00
PlayDay
ffa4069b3c Merge branch 'master' into patch-1 2020-04-05 17:18:04 +02:00
Ben V. Brown
9932ce5732 Merge pull request #600 from federck/patch-21
Update translation_it
2020-04-05 10:58:59 +10:00
federck
278663bd0e Update translation_it
*Italian translation update 😀
2020-04-04 19:33:40 +03:00
PlayDay
0911e2943d Update translation_uk.json 2020-04-04 05:11:41 +02:00
Patrick Horlebein
81abd5eeac Add navigation animations 2020-04-03 22:40:03 +02:00
Patrick Horlebein
07d35cadd9 Draw scrolling indicator 2020-04-03 17:13:10 +02:00
Patrick Horlebein
153772cb68 Add a 2 pixel wide space in menus for scrolling indicator 2020-04-03 17:12:31 +02:00
Patrick Horlebein
74d144eef8 Add method to draw a scrolling indicator 2020-04-03 16:58:53 +02:00
206 changed files with 18158 additions and 7280 deletions

File diff suppressed because it is too large Load Diff

View File

@@ -1,4 +1,4 @@
FROM ubuntu:rolling
FROM ubuntu:20.04
LABEL maintainer="Ben V. Brown <ralim@ralimtek.com>"
WORKDIR /build
@@ -10,12 +10,13 @@ RUN apt-get update && \
apt-get install -y \
make \
bzip2 \
git \
python3 \
wget && \
apt-get clean && \
wget -qO- https://developer.arm.com/-/media/Files/downloads/gnu-rm/9-2019q4/RC2.1/gcc-arm-none-eabi-9-2019-q4-major-x86_64-linux.tar.bz2 | tar -xj
apt-get clean
RUN wget -qO- https://armkeil.blob.core.windows.net/developer/Files/downloads/gnu-rm/9-2020q2/gcc-arm-none-eabi-9-2020-q2-update-x86_64-linux.tar.bz2 | tar -xj
# Add compiler to the path
ENV PATH "/build/gcc-arm-none-eabi-9-2019-q4-major/bin:$PATH"
ENV PATH "/build/gcc-arm-none-eabi-9-2020-q2-update/bin:$PATH"
COPY . /build/source
COPY ./ci /build/ci

View File

@@ -1,72 +1,42 @@
[![Codeship Status for ts100](https://app.codeship.com/projects/c77dbfe0-0764-0138-9520-3eb35bdb2b2c/status?branch=master)](https://app.codeship.com/projects/379118)
![C/C++ CI](https://github.com/Ralim/ts100/workflows/C/C++%20CI/badge.svg)
# TS100 & TS80 Firmware
# Flexible Soldering iron control Firmware
*Please Note, this repo will likely be renaming soon to unire - See issue #639. Old links willcontinue to work, and should redirect. So dont panic :) This is just to better account for the newer soldeing irons being added.*
This firmware is a fresh start for these soldering irons. Designed from the ground up as fully featured control software that leaves nothing to be desired.
It originally started back at the end of 2016 and has since seen vast improvements, especially some very smart work by community members.
Originally concieved as an alternative firmware for the TS100, this firmware has evolved into a complex soldering iron control firmware.
The firmware supports everything you would expect in the soldering iron and has the same features as the stock firmware with some nice extras packed in.
There is a comprehensive menu system in the iron that allows for adjustment of all the settings on the unit, and support for various languages is added by the community.
The firmware implements all of the standard features of a "smart" soldering iron, with lots of little extras and tweaks.
I highly reccomend reading the installation guide fully when installing on your iron.
On the TS100 there are settings to allow you to specify a cutoff voltage for different lithium-ion battery packs to protect your power source.
For the TS80 these are removed and replaced with the selection of 18W or 24W depending on what your QC power bank can support.
Otherwise, both systems work very similar and should support all the features.
For soldering irons that are designed to be powered by "smart" power sources (QC and PD), the firmware supports settings around the negotiated power and voltage.
For soldering irons that are designed to be powered by batteries (TS100), settings for a cutoff voltage for battery protection are supported.
There are 25 languages currently supported as of present. When downloading the firmware for your soldering iron take node of the language code in the file name.
This project is considered feature complete for use as a soldering iron, *so please suggest any feature improvements you would like!*
*This firmware does **NOT** support the USB port while running for changing settings. This is done through the onscreen menu only. Logos are edited using the tool or python script and uploaded in DFU mode.*
## Core Features
## Key Features
* PID iron temperature control
* PID style iron temperature control
* Automatic sleep with selectable sensitivity
* Motion wake support
* Settings menu on the unit
* All settings exposed in intuitive menu
* (TS100) Set a voltage lower limit for Lithium batteries so you don't kill your battery pack
* (TS80 ) Set 18W or 24W settings for your power bank
* All settings saved to flash when you exit the menu
* (TS80) Set 18W or 24W settings for your power bank
* Improved readability Fonts
* Use hardware features to improve reliability
* Can disable movement detection if desired
* Full tip profile calibration
* Boost mode lets you temporarily change the temperature when soldering (ie raise the temperature for short periods of time)
* Boost mode lets you temporarily change the temperature when soldering (i.e. raise the temperature for short periods of time)
* (TS100) Battery charge level indicator if power source set to a lipo cell count
* (TS80) Power bank operating voltage is displayed
* Custom boot up logo support
* [Custom boot up logo support](upgrading.md)
* Automatic LCD rotation based on the orientation
* Supports both the version 1 and version 2 hardware (different accelerometers)
# Upgrading your iron
This is completely safe, but if it goes wrong just put the .hex file from the official website onto the unit and you're back to the old firmware. Downloads for the hex files to flash are available on the [releases page.](https://github.com/Ralim/ts100/releases) The file you want is called *(MODEL)_EN.hex* unless you want the translations, they are (MODEL)_*language short name*.hex. Where (MODEL) is either TS100 or TS80.
Officially the bootloader on the iron only works under Windows. However, users have reported that it does work under Mac, and can be made to work under Linux *sometimes*. Details over on the [wiki page](https://github.com/Ralim/ts100/wiki/Upgrading-Firmware).
```
1. Hold the button closest to the tip, and plug in the USB to the computer.
2. The unit will appear as a USB drive.
3. Drag the .hex file onto the USB drive.
4. The unit will disconnect and reconnect.
5. The filename will have changed to end in .RDY or .ERR
6. If it ends with .RDY you're done! Otherwise, something went wrong.
7. If it didn't work the first time, try copying the file again without disconnecting the iron, often it will work on the second shot.
8. Disconnect the USB and power up the iron. You're good to go.
```
For the more adventurous out there, you can also load this firmware onto the device using an SWD programmer.
On the bottom of the MCU riser PCB, there are 4 pads for programming.
There is a complete device flash backup included in this repository. (Note this includes the bootloader, so will need an SWD programmer to load onto the unit).
For the TS80 the SWD pins are used for the QC negotiation, so you can actually connect to the SWD power via the USB connector.
## Setting a custom bootup image
This firmware uses a different method of updating the bootup image.
This removes the need for emulating a USB drive on the iron just to allow for a bootup image to be setup.
There are further instructions on the [wiki](https://github.com/Ralim/ts100/wiki/Logo-Editor).
Instructions are kept on the wiki so that users can update the information if they find extra helpful information.
# Menu System
This new firmware uses a new menu system to allow access to the settings on the device.
@@ -77,32 +47,34 @@ When on the main screen, the unit shows prompts for the two most common operatio
* Holding the button near the tip will enter soldering temperature adjust mode (This is the same as the one in the soldering menu, just to let you edit before heating up)
* Holding the button near the USB end will show the firmware version details
More details are over in the [Menu information.](menu.md)
Detailed operation details are over in the [Menu information.](menu.md)
## Thanks
If you love this firmware and want to continue my caffeine addiction, you can do so here (or email me for other options) : https://paypal.me/RalimTek
If you love this firmware and want to continue my caffeine addiction, you can do so [here](https://paypal.me/RalimTek) (or email me for other options).
I also want to give a shout out to all of the [Fantastic Contributors](https://github.com/Ralim/ts100/graphs/contributors).
Especially to the following users, who have helped in various ways that are massively appreciated:
* [dhiltonp](https://github.com/dhiltonp)
* [Dhiltonp](https://github.com/dhiltonp)
* [Mrkvozrout](https://github.com/Mrkvozrout)
* [jonnieZG](https://github.com/jonnieZG)
* [federck](https://github.com/federck)
* [jvitkauskas](https://github.com/jvitkauskas)
* [doegox](https://github.com/doegox)
* [perillamint](https://github.com/perillamint)
* [JonnieZG](https://github.com/jonnieZG)
* [Federck](https://github.com/federck)
* [Jvitkauskas](https://github.com/jvitkauskas)
* [Doegox](https://github.com/doegox)
* [Perillamint](https://github.com/perillamint)
* [GeminiServer](https://github.com/GeminiServer)
* [PixelPirate](https://github.com/PixelPirate)
* [Firebie](https://github.com/Firebie)
* [Agatti](https://github.com/agatti)
* [Discip](https://github.com/discip)
## Licence
The code in this repository that is based on the STM tools is under a BSD-like licence.
The code created by the community is GNU GPLv3. Unless noted elsewhere.
The FreeRToS is under its own licence.
Other components such as FreeRTOS have their own licence.
## Commercial Use
This software is provided as-is, so I cannot provide any commercial support for the firmware. However, you are more than welcome to distribute links to the firmware, or provide irons with this software on them.
Please do not re-host the files, but rather link to this page, so that there are no old versions of the firmware scattered around. If this firmware does make you money, it would be nice to receive a donation, however, there is no enforcement.
Please do not re-host the files, but rather link to this page, so that there are no old versions of the firmware scattered around.

View File

@@ -3,10 +3,10 @@
"languageLocalName": "Български",
"cyrillicGlyphs": true,
"messages": {
"SettingsCalibrationDone": "Calibration done!",
"SettingsCalibrationWarning": "Уверете се, че човката на поялника е със стайна температура преди да продължите!",
"SettingsCalibrationDone": "Калибрацията завършена!",
"SettingsCalibrationWarning": "Уверете се, че върха на поялника е със стайна температура преди да продължите!",
"SettingsResetWarning": "Сигурни ли сте, че искате да върнете фабричните настройки?",
"UVLOWarningString": "Ниско V!",
"UVLOWarningString": "Ниско DC Напрежение",
"UndervoltageString": "Ниско Напрежение",
"InputVoltageString": "Входно V: ",
"WarningTipTempString": "Темп.: ",
@@ -17,11 +17,13 @@
"WarningAdvancedString": "ВНИМАНИЕ! ТОПЛО!",
"SleepingTipAdvancedString": "Връх:",
"IdleTipString": "Връх:",
"IdleSetString": " Set:",
"TipDisconnectedString": "ВРЪХ ЛОША ВРЪЗКА",
"IdleSetString": " Настройка:",
"TipDisconnectedString": "ПРЕКЪСНАТ ВРЪХ",
"SolderingAdvancedPowerPrompt": "Захранване: ",
"OffString": "Off",
"ResetOKMessage": "Reset OK"
"OffString": "Изкл.",
"ResetOKMessage": "Нулиране завършено",
"YourGainMessage": "Усилване:",
"SettingsResetMessage": "Настройките бяха\nнулирани!"
},
"characters": {
"SettingRightChar": "R",
@@ -184,7 +186,7 @@
"Калибриране",
"напрежение?"
],
"desc": "Калибриране на входното напрежение (VIN). Задръжте бутонa за изход"
"desc": "Калибриране на входното напрежение. Задръжте бутонa за изход"
},
"AdvancedSoldering": {
"text": "",
@@ -203,76 +205,92 @@
"desc": "Скорост на движение на този текст"
},
"TipModel": {
"text": "TIPMO",
"text": "",
"text2": [
"Tip",
"Model"
"Модел",
"на връх"
],
"desc": "Tip Model selection"
"desc": "Избор на модел на връх"
},
"SimpleCalibrationMode": {
"text": "SMPCAL",
"text": "",
"text2": [
"Simple",
"Calibration"
"Бърза",
"калибрация"
],
"desc": "Simple Calibration using Hot water"
"desc": "Бърза калибрация с използване на гореща вода"
},
"AdvancedCalibrationMode": {
"text": "ADVCAL",
"text": "",
"text2": [
"Advanced",
"Calibration"
"Прецизна",
"калибрация"
],
"desc": "Advanced calibration using thermocouple on the tip"
"desc": "Прецизна калибрация с използване на термо-двойка на върха на поялника"
},
"PowerInput": {
"text": "PWRW",
"text": "",
"text2": [
"Power",
"Wattage"
"Мощност на",
"захранване"
],
"desc": "Power Wattage of the power adapter used"
"desc": "Мощност на избраното захранване"
},
"PowerLimitEnable": {
"text": "PLIMEN",
"text": "",
"text2": [
"P Limit",
"Enable"
"Вкл. лимит",
"на мощност?"
],
"desc": "Enable power limit"
"desc": "Включване на лимит на мощност"
},
"PowerLimit": {
"text": "PLIM",
"text": "",
"text2": [
"Power",
"Limit"
"Лимит на",
"мощност"
],
"desc": "Maximum power the iron can use <Watts>"
"desc": "Максимална мощност на поялника <W>"
},
"ReverseButtonTempChange": {
"text": "RVTCHG",
"text": "",
"text2": [
"Key +-",
"reverse?"
"Размяна",
"бутони +-?"
],
"desc": "Reverse the tip temperature change buttons plus minus assignment."
"desc": "Обръщане на бутоните \"+\" и \"-\" за промяна на температурата на върха на поялника"
},
"TempChangeShortStep": {
"text": "TCHGST",
"text": "",
"text2": [
"Temp change",
"short?"
"Промяна T",
"бързо?"
],
"desc": "Temperature change steps on short button press!"
"desc": "Промяна на температура при бързо натискане на бутон!"
},
"TempChangeLongStep": {
"text": "TCHGLT",
"text": "",
"text2": [
"Temp change",
"long?"
"Промяна Т",
"задържане?"
],
"desc": "Temperature change steps on long button press!"
"desc": "Промяна на температура при задържане на бутон!"
},
"PowerPulsePower":{
"text": "",
"text2": [
"Захранващ",
"импулс"
],
"desc": "Поддържане на интензивност на захранващия импулс"
},
"TipGain": {
"text": "",
"text2": [
"Промяна",
"сила връх"
],
"desc": "Усилване на върха на поялника"
}
}
}
}

49
Translation Editor/translation_cs.json Normal file → Executable file
View File

@@ -22,7 +22,8 @@
"SolderingAdvancedPowerPrompt": "Ohřev: ",
"OffString": "Vyp",
"ResetOKMessage": "Reset OK",
"YourGainMessage": "Zisk:"
"YourGainMessage": "Zisk:",
"SettingsResetMessage": "Tov. nas. obnov."
},
"characters": {
"SettingRightChar": "P",
@@ -238,42 +239,58 @@
"PowerLimitEnable": {
"text": "PLIMEN",
"text2": [
"P Limit",
"Enable"
"Omez. výk.",
"Aktivovat"
],
"desc": "Enable power limit"
"desc": "Aktivovat omezení výkonu"
},
"PowerLimit": {
"text": "PLIM",
"text2": [
"Power",
"Limit"
"Omezení",
"Výkonu"
],
"desc": "Maximum power the iron can use <Watts>"
"desc": "Maximální příkon <Watty>"
},
"ReverseButtonTempChange": {
"text": "RVTCHG",
"text2": [
"Key +-",
"reverse?"
"Prohodit",
"tl. +-?"
],
"desc": "Reverse the tip temperature change buttons plus minus assignment."
"desc": "Prohodí tlačítka plus a minus pro změnu teploty hrotu."
},
"TempChangeShortStep": {
"text": "TCHGST",
"text2": [
"Temp change",
"short?"
"Krok teploty",
"krátký?"
],
"desc": "Temperature change steps on short button press!"
"desc": "Velikost skoku při změně teploty krátkým stiskem tlačítka!"
},
"TempChangeLongStep": {
"text": "TCHGLT",
"text2": [
"Temp change",
"long?"
"Krok teploty",
"dlouhý?"
],
"desc": "Temperature change steps on long button press!"
"desc": "Velikost skoku při změně teploty dlouhým stiskem tlačítka!"
},
"PowerPulsePower": {
"text": "POWPLS",
"text2": [
"Intenzita",
"Výkon. pulsu"
],
"desc": "Puls pro udržení zařízení v chodu (kvůli power bankám)."
},
"TipGain": {
"text": "TG",
"text2": [
"Změnit",
"zisk hr."
],
"desc": "Zisk hrotu (měření)"
}
}
}

View File

@@ -273,6 +273,22 @@
"long?"
],
"desc": "Temperature change steps on long button press!"
},
"PowerPulsePower":{
"text": "POWPLS",
"text2": [
"Power",
"Pulse W"
],
"desc": "Keep awake pulse power intensity"
},
"TipGain": {
"text": "TG",
"text2": [
"Modify",
"tip gain"
],
"desc": "Tip gain"
}
}
}
}

View File

@@ -277,6 +277,22 @@
"Taste Lang?"
],
"desc": "Temperaturwechselschritte bei langem Tastendruck!"
},
"PowerPulsePower":{
"text": "POWPLS",
"text2": [
"Power",
"Pulse W"
],
"desc": "Keep awake pulse power intensity"
},
"TipGain": {
"text": "TG",
"text2": [
"Modify",
"tip gain"
],
"desc": "Tip gain"
}
}
}
}

View File

@@ -5,12 +5,12 @@
"tempUnitFahrenheit": true,
"messages": {
"SettingsCalibrationDone": "Calibration done!",
"SettingsCalibrationWarning": "Please ensure the tip is at room temperature before continuing!",
"SettingsCalibrationWarning": "Please ensure the tip is at room temperature, before continuing!",
"SettingsResetWarning": "Are you sure you want to reset settings to default values?",
"UVLOWarningString": "DC LOW",
"UndervoltageString": "Undervoltage",
"InputVoltageString": "Input V: ",
"WarningTipTempString": "Tip Temp: ",
"WarningTipTempString": "Tip temp: ",
"BadTipString": "BAD TIP",
"SleepingSimpleString": "Zzzz",
"SleepingAdvancedString": "Sleeping...",
@@ -23,7 +23,7 @@
"SolderingAdvancedPowerPrompt": "Power: ",
"OffString": "Off",
"ResetOKMessage": "Reset OK",
"YourGainMessage": "Your Gain:",
"YourGainMessage": "Your gain:",
"SettingsResetMessage": "Settings were\nreset!"
},
"characters": {
@@ -42,28 +42,28 @@
"SolderingMenu": {
"text2": [
"Soldering",
"Settings"
"settings"
],
"desc": "Soldering settings"
},
"PowerSavingMenu": {
"text2": [
"Sleep",
"Modes"
"modes"
],
"desc": "Power saving settings"
},
"UIMenu": {
"text2": [
"User",
"Interface"
"interface"
],
"desc": "User interface settings"
},
"AdvancedMenu": {
"text2": [
"Advanced",
"Options"
"options"
],
"desc": "Advanced options"
}
@@ -83,7 +83,7 @@
"Sleep",
"temp"
],
"desc": "Sleep Temperature"
"desc": "Sleep temperature"
},
"SleepTimeout": {
"text": "STME",
@@ -91,7 +91,7 @@
"Sleep",
"timeout"
],
"desc": "Sleep Timeout <Minutes/Seconds>"
"desc": "Sleep timeout <Minutes/Seconds>"
},
"ShutdownTimeout": {
"text": "SHTME",
@@ -99,7 +99,7 @@
"Shutdown",
"timeout"
],
"desc": "Shutdown Timeout <Minutes>"
"desc": "Shutdown timeout <Minutes>"
},
"MotionSensitivity": {
"text": "MSENSE",
@@ -107,15 +107,15 @@
"Motion",
"sensitivity"
],
"desc": "Motion Sensitivity <0=Off 1=Least Sensitive 9=Most Sensitive>"
"desc": "Motion sensitivity <0=Off 1=Least sensitive 9=Most sensitive>"
},
"TemperatureUnit": {
"text": "TMPUNT",
"text2": [
"Temperature",
"units"
"unit"
],
"desc": "Temperature Unit <C=Celsius F=Fahrenheit>"
"desc": "Temperature unit <C=Celsius F=Fahrenheit>"
},
"AdvancedIdle": {
"text": "ADVIDL",
@@ -123,7 +123,7 @@
"Detailed",
"idle screen"
],
"desc": "Display detailed information in a smaller font on the idle screen."
"desc": "Display detailed information in a smaller font on the idle screen"
},
"DisplayRotation": {
"text": "DSPROT",
@@ -131,15 +131,15 @@
"Display",
"orientation"
],
"desc": "Display Orientation <A=Automatic L=Left Handed R=Right Handed>"
"desc": "Display orientation <A=Automatic L=Left-handed R=Right-handed>"
},
"BoostEnabled": {
"text": "BOOST",
"text2": [
"Boost mode",
"enabled"
"Boost",
"mode"
],
"desc": "Enable front key long press \"Boost\" mode when soldering"
"desc": "Enable front key long press \"boost mode\" when soldering"
},
"BoostTemperature": {
"text": "BTMP",
@@ -147,7 +147,7 @@
"Boost",
"temp"
],
"desc": "Temperature when in \"Boost\" mode"
"desc": "Temperature when in \"boost mode\""
},
"AutoStart": {
"text": "ASTART",
@@ -155,7 +155,7 @@
"Auto",
"start"
],
"desc": "Automatically starts the iron into soldering on power up <T=Soldering S=Sleep F=Off>"
"desc": "Automatically starts the iron into soldering on power up <F=Off T=Soldering S=Sleep O=Sleep at room temperature>"
},
"CooldownBlink": {
"text": "CLBLNK",
@@ -163,7 +163,7 @@
"Cooldown",
"blink"
],
"desc": "Blink the temperature on the cooling screen while the tip is still hot."
"desc": "Blink the temperature on the cooling screen while the tip is still hot"
},
"TemperatureCalibration": {
"text": "TMP CAL?",
@@ -171,7 +171,7 @@
"Calibrate",
"temperature?"
],
"desc": "Calibrate tip offset."
"desc": "Calibrate tip offset?"
},
"SettingsReset": {
"text": "RESET?",
@@ -179,7 +179,7 @@
"Factory",
"Reset?"
],
"desc": "Reset all settings"
"desc": "Reset all settings!"
},
"VoltageCalibration": {
"text": "CAL VIN?",
@@ -187,7 +187,7 @@
"Calibrate",
"input voltage?"
],
"desc": "VIN Calibration. Buttons adjust, long press to exit"
"desc": "VIN Calibration <long press to exit>"
},
"AdvancedSoldering": {
"text": "ADVSLD",
@@ -201,7 +201,7 @@
"text": "DESCSP",
"text2": [
"Scrolling",
"Speed"
"speed"
],
"desc": "Speed this text scrolls past at <S=Slow F=Fast>"
},
@@ -209,23 +209,23 @@
"text": "TIPMO",
"text2": [
"Tip",
"Model"
"model"
],
"desc": "Tip Model selection"
"desc": "Tip model selection"
},
"SimpleCalibrationMode": {
"text": "SMPCAL",
"text2": [
"Simple",
"Calibration"
"calibration"
],
"desc": "Simple Calibration using Hot water"
"desc": "Simple calibration using hot water"
},
"AdvancedCalibrationMode": {
"text": "ADVCAL",
"text2": [
"Advanced",
"Calibration"
"calibration"
],
"desc": "Advanced calibration using thermocouple on the tip"
},
@@ -233,15 +233,15 @@
"text": "PWRW",
"text2": [
"Power",
"Wattage"
"wattage"
],
"desc": "Power Wattage of the power adapter used"
"desc": "Power wattage of the power adapter used"
},
"PowerLimitEnable": {
"text": "PLIMEN",
"text2": [
"P Limit",
"Enable"
"Enable power",
"limit"
],
"desc": "Enable power limit"
},
@@ -249,33 +249,49 @@
"text": "PLIM",
"text2": [
"Power",
"Limit"
"limit"
],
"desc": "Maximum power the iron can use <Watts>"
},
"ReverseButtonTempChange": {
"text": "RVTCHG",
"text2": [
"Key +-",
"reverse?"
"Reverse",
"+ - keys"
],
"desc": "Reverse the tip temperature change buttons plus minus assignment."
"desc": "Reverse assignment of temperature adjustment buttons"
},
"TempChangeShortStep": {
"text": "TCHGST",
"text2": [
"Temp change",
"short?"
"short"
],
"desc": "Temperature change steps on short button press!"
"desc": "Temperature change steps on short button press"
},
"TempChangeLongStep": {
"text": "TCHGLT",
"text2": [
"Temp change",
"long?"
"long"
],
"desc": "Temperature change steps on long button press!"
"desc": "Temperature change steps on long button press"
},
"PowerPulsePower":{
"text": "POWPLS",
"text2": [
"Power",
"Pulse W"
],
"desc": "Keep awake pulse power intensity"
},
"TipGain": {
"text": "TG",
"text2": [
"Modify",
"tip gain"
],
"desc": "Tip gain"
}
}
}

View File

@@ -23,7 +23,7 @@
"OffString": " No",
"ResetOKMessage": "Hecho. ",
"YourGainMessage": "Gananc.:",
"SettingsResetMessage": "Restablecidos."
"SettingsResetMessage": "Ajustes borrados"
},
"characters": {
"SettingRightChar": "D",
@@ -255,26 +255,42 @@
"ReverseButtonTempChange": {
"text": "RVTCHG",
"text2": [
"Key +-",
"reverse?"
"Invertir",
"botones +/-"
],
"desc": "Reverse the tip temperature change buttons plus minus assignment."
"desc": "Intercambia las funciones de subir y bajar la temperatura de los botones +/- para que funcionen al revés."
},
"TempChangeShortStep": {
"text": "TCHGST",
"text2": [
"Temp change",
"short?"
"Cambio temp.",
"puls. cortas"
],
"desc": "Temperature change steps on short button press!"
"desc": "Subir y bajar X grados de temperatura con cada pulsación corta de los botones +/-."
},
"TempChangeLongStep": {
"text": "TCHGLT",
"text2": [
"Temp change",
"long?"
"Cambio temp.",
"puls. largas"
],
"desc": "Temperature change steps on long button press!"
"desc": "Subir y bajar X grados de temperatura con cada pulsación larga de los botones +/-."
},
"PowerPulsePower": {
"text": "POWPLS",
"text2": [
"Pulsos bat.",
"constantes"
],
"desc": "Aplica unos pulsos necesarios para mantener encendidas ciertas baterías portátiles. En vatios."
},
"TipGain": {
"text": "TG",
"text2": [
"Ajustar ganancia",
"de punta"
],
"desc": "Modificar el valor de ganancia de la punta."
}
}
}

View File

@@ -273,6 +273,22 @@
"long?"
],
"desc": "Temperature change steps on long button press!"
},
"PowerPulsePower":{
"text": "POWPLS",
"text2": [
"Power",
"Pulse W"
],
"desc": "Keep awake pulse power intensity"
},
"TipGain": {
"text": "TG",
"text2": [
"Modify",
"tip gain"
],
"desc": "Tip gain"
}
}
}
}

View File

@@ -13,8 +13,8 @@
"BadTipString": "PANNE HS",
"SleepingSimpleString": "Zzzz",
"SleepingAdvancedString": "En veille...",
"WarningSimpleString": "HOT!",
"WarningAdvancedString": "ATTENTION! CHAUD",
"WarningSimpleString": "CHAUD!",
"WarningAdvancedString": "ATTENTION! CHAUD!",
"SleepingTipAdvancedString": "Panne:",
"IdleTipString": "Tip:",
"IdleSetString": " Set:",
@@ -238,41 +238,57 @@
"text": "PLIMEN",
"text2": [
"P Limit",
"Enable"
"Activer?"
],
"desc": "Enable power limit"
"desc": "Activer la limite de puissance"
},
"PowerLimit": {
"text": "PLIM",
"text2": [
"Power",
"Limit"
"Puissance",
"Limite"
],
"desc": "Maximum power the iron can use <Watts>"
"desc": "Puissance maximale utilisable <Watts>"
},
"ReverseButtonTempChange": {
"text": "RVTCHG",
"text2": [
"Key +-",
"reverse?"
"Inverser?"
],
"desc": "Reverse the tip temperature change buttons plus minus assignment."
"desc": "Inversez l'assignation +/- du bouton de changement de température de la pointe."
},
"TempChangeShortStep": {
"text": "TCHGST",
"text2": [
"Temp change",
"short?"
"Court?"
],
"desc": "Temperature change steps on short button press!"
"desc": "Incrément de changement de température sur appui court."
},
"TempChangeLongStep": {
"text": "TCHGLT",
"text2": [
"Temp change",
"long?"
"Long?"
],
"desc": "Temperature change steps on long button press!"
"desc": "Incrément de changement de température sur appui long."
},
"PowerPulsePower":{
"text": "POWPLS",
"text2": [
"Power",
"Pulse W"
],
"desc": "Keep awake pulse power intensity"
},
"TipGain": {
"text": "TG",
"text2": [
"Modify",
"tip gain"
],
"desc": "Tip gain"
}
}
}
}

View File

@@ -273,6 +273,22 @@
"long?"
],
"desc": "Temperature change steps on long button press!"
},
"PowerPulsePower":{
"text": "POWPLS",
"text2": [
"Power",
"Pulse W"
],
"desc": "Keep awake pulse power intensity"
},
"TipGain": {
"text": "TG",
"text2": [
"Modify",
"tip gain"
],
"desc": "Tip gain"
}
}
}
}

View File

@@ -235,44 +235,60 @@
"desc": "A tápegység által leadott teljesítmény"
},
"PowerLimitEnable": {
"text": "PLIMEN",
"text": "TELJH",
"text2": [
"P Limit",
"Enable"
"Telj H",
"Bekapcsolva"
],
"desc": "Enable power limit"
"desc": "Bemeneti teljesitmény korlátozása"
},
"PowerLimit": {
"text": "PLIM",
"text": "TELJM",
"text2": [
"Power",
"Limit"
"Telj",
"maximum"
],
"desc": "Maximum power the iron can use <Watts>"
"desc": "Maximális teljesitmény beállitása <Watts>"
},
"ReverseButtonTempChange": {
"text": "RVTCHG",
"text": "HÖVÁLT",
"text2": [
"Key +-",
"reverse?"
"GOMB +-",
"Felcseréled?"
],
"desc": "Reverse the tip temperature change buttons plus minus assignment."
"desc": "A páka hömérséklet növelés csökkentési gombok felcserélése."
},
"TempChangeShortStep": {
"text": "TCHGST",
"text": "HÖRÖV",
"text2": [
"Temp change",
"short?"
"Hömérséklet",
"váltás rövid?"
],
"desc": "Temperature change steps on short button press!"
"desc": "Hömérséklet váltás rövid gombnyomásrs bekapcsolva!"
},
"TempChangeLongStep": {
"text": "TCHGLT",
"text": "HÖHOS",
"text2": [
"Temp change",
"long?"
"Hömérséklet",
"váltás hosszú?"
],
"desc": "Temperature change steps on long button press!"
"desc": "Hömérséklet váltás hosszú gombnyomásrs bekapcsolva!"
},
"PowerPulsePower":{
"text": "TELJP",
"text2": [
"Telj power",
"bank üzem W"
],
"desc": "Powerbank üzemnél nem engedi a powerbankot kikapcsolni idönkénti áram felvételt generál. "
},
"TipGain": {
"text": "TG",
"text2": [
"Modify",
"tip gain"
],
"desc": "Tip gain"
}
}
}
}

View File

@@ -21,7 +21,9 @@
"TipDisconnectedString": "PUNTA ASSENTE",
"SolderingAdvancedPowerPrompt": "Potenz:",
"OffString": "OFF",
"ResetOKMessage": "Reset OK"
"ResetOKMessage": "Reset OK",
"YourGainMessage": "Guad.: ",
"SettingsResetMessage": "Reset effettuato"
},
"characters": {
"SettingRightChar": "D",
@@ -160,7 +162,7 @@
"Avviso",
"punta calda"
],
"desc": "Mostra, lampeggiante, la temperatura durante il raffreddamento se la punta è ancora calda"
"desc": "Evidenzia il valore di temperatura durante il raffreddamento se la punta è ancora calda"
},
"TemperatureCalibration": {
"text": "",
@@ -237,42 +239,58 @@
"PowerLimitEnable": {
"text": "PLIMEN",
"text2": [
"P Limit",
"Enable"
"Limitatore",
"di potenza"
],
"desc": "Enable power limit"
"desc": "Abilita un limitatore per la potenza massima erogabile al saldatore"
},
"PowerLimit": {
"text": "PLIM",
"text2": [
"Power",
"Limit"
"Limite",
"di potenza"
],
"desc": "Maximum power the iron can use <Watts>"
"desc": "Imposta il valore di potenza massima erogabile al saldatore <watt>"
},
"ReverseButtonTempChange": {
"text": "RVTCHG",
"text2": [
"Key +-",
"reverse?"
"Inversione",
"tasti"
],
"desc": "Reverse the tip temperature change buttons plus minus assignment."
"desc": "Inverti i tasti per impostare la temperatura della punta "
},
"TempChangeShortStep": {
"text": "TCHGST",
"text2": [
"Temp change",
"short?"
"Cambio temp",
"pressione breve"
],
"desc": "Temperature change steps on short button press!"
"desc": "Varia la temperatura della punta attraverso una breve pressione dei tasti"
},
"TempChangeLongStep": {
"text": "TCHGLT",
"text2": [
"Temp change",
"long?"
"Cambio temp",
"pressione lunga"
],
"desc": "Temperature change steps on long button press!"
"desc": "Varia la temperatura della punta attraverso una lunga pressione dei tasti"
},
"PowerPulsePower": {
"text": "POWPLS",
"text2": [
"Potenza impulso",
"«Keep-Alive»"
],
"desc": "Regola la potenza d'impulso in ingresso al saldatore per prevenire lo standby eventuale dell'alimentatore <watt>"
},
"TipGain": {
"text": "TG",
"text2": [
"Guadagno",
"punta"
],
"desc": "Varia il guadagno della punta"
}
}
}
}

View File

@@ -273,6 +273,22 @@
"long?"
],
"desc": "Temperature change steps on long button press!"
},
"PowerPulsePower":{
"text": "POWPLS",
"text2": [
"Power",
"Pulse W"
],
"desc": "Keep awake pulse power intensity"
},
"TipGain": {
"text": "TG",
"text2": [
"Modify",
"tip gain"
],
"desc": "Tip gain"
}
}
}
}

View File

@@ -273,6 +273,22 @@
"long?"
],
"desc": "Temperature change steps on long button press!"
},
"PowerPulsePower":{
"text": "POWPLS",
"text2": [
"Power",
"Pulse W"
],
"desc": "Keep awake pulse power intensity"
},
"TipGain": {
"text": "TG",
"text2": [
"Modify",
"tip gain"
],
"desc": "Tip gain"
}
}
}
}

View File

@@ -273,6 +273,22 @@
"long?"
],
"desc": "Temperature change steps on long button press!"
},
"PowerPulsePower":{
"text": "POWPLS",
"text2": [
"Power",
"Pulse W"
],
"desc": "Keep awake pulse power intensity"
},
"TipGain": {
"text": "TG",
"text2": [
"Modify",
"tip gain"
],
"desc": "Tip gain"
}
}
}
}

View File

@@ -273,6 +273,22 @@
"long?"
],
"desc": "Temperature change steps on long button press!"
},
"PowerPulsePower":{
"text": "POWPLS",
"text2": [
"Power",
"Pulse W"
],
"desc": "Keep awake pulse power intensity"
},
"TipGain": {
"text": "TG",
"text2": [
"Modify",
"tip gain"
],
"desc": "Tip gain"
}
}
}
}

View File

@@ -2,9 +2,10 @@
"languageCode": "PL",
"languageLocalName": "Polski",
"cyrillicGlyphs": false,
"tempUnitFahrenheit": false,
"messages": {
"SettingsCalibrationDone": "Kalibracja udana!",
"SettingsCalibrationWarning": "Przed kontynuowaniem upewnij się, że końcówka osiągnela temperature pokojowa!",
"SettingsCalibrationWarning": "Przed kontynuowaniem upewnij się, że końcówka osiągnęła temperaturę pokojową!",
"SettingsResetWarning": "Czy na pewno chcesz przywrócić ustawienia fabryczne?",
"UVLOWarningString": "NISKIE DC",
"UndervoltageString": "Pod napięciem",
@@ -12,7 +13,7 @@
"WarningTipTempString": "Temperatura grota: ",
"BadTipString": "ZŁY GROT",
"SleepingSimpleString": "Zzz!",
"SleepingAdvancedString": "Uspienie...",
"SleepingAdvancedString": "Uśpienie...",
"WarningSimpleString": "HOT!",
"WarningAdvancedString": "GORĄCA KOŃCÓWKA!",
"SleepingTipAdvancedString": "Grot:",
@@ -21,20 +22,22 @@
"TipDisconnectedString": "GROT ODŁĄCZONY",
"SolderingAdvancedPowerPrompt": "Power: ",
"OffString": "Wyłącz",
"ResetOKMessage": "Reset OK"
"ResetOKMessage": "Reset OK",
"YourGainMessage": "Twój zysk:",
"SettingsResetMessage": "Ustawienia zostały\nzresetowane!"
},
"characters": {
"SettingRightChar": "P",
"SettingLeftChar": "L",
"SettingAutoChar": "A",
"SettingFastChar": "F",
"SettingSlowChar": "S",
"SettingFastChar": "S",
"SettingSlowChar": "W",
"SettingStartSolderingChar": "T",
"SettingStartSleepChar": "S",
"SettingStartSleepChar": "Z",
"SettingStartSleepOffChar": "O",
"SettingStartNoneChar": "N"
"SettingStartNoneChar": "B"
},
"menuDouble": false,
"menuDouble": true,
"menuGroups": {
"SolderingMenu": {
"text2": [
@@ -88,7 +91,7 @@
"Czas",
"uśpienia"
],
"desc": "Czas uśpienia <Minuty/Sekundy>"
"desc": "Czas uśpienia <minuty/sekundy>"
},
"ShutdownTimeout": {
"text": "SHTME",
@@ -96,7 +99,7 @@
"Czas",
"wyłączenia"
],
"desc": "Czas wyłączenia <Minuty>"
"desc": "Czas wyłączenia <minuty>"
},
"MotionSensitivity": {
"text": "MSENSE",
@@ -104,7 +107,7 @@
"Czułość",
"ruchu"
],
"desc": "Czułość ruchu <0.Wyłączona 1.minimalna 9.maksymalna>"
"desc": "Czułość ruchu <0.Wyłączona 1.Minimalna 9.Maksymalna>"
},
"TemperatureUnit": {
"text": "TMPUNT",
@@ -120,7 +123,7 @@
"Mniejsza",
"czcionka"
],
"desc": "Wyświetla szczegółowe informacje za pomocą mniejszej czcionki na ekranie bezczynnośći <T = wł., N = wył.>"
"desc": "Wyświetla szczegółowe informacje za pomocą mniejszej czcionki na ekranie bezczynności"
},
"DisplayRotation": {
"text": "DSPROT",
@@ -128,15 +131,15 @@
"Orientacja",
"wyświetlacza"
],
"desc": "Orientacja wyświetlacza <A. Automatyczna L. Leworęczna P. Praworęczna>"
"desc": "Orientacja wyświetlacza <A - automatyczna, L - leworęczna, P - praworęczna>"
},
"BoostEnabled": {
"text": "BOOST",
"text2": [
"",
""
"Tryb",
"boost"
],
"desc": "Użyj przycisku przedniego w celu zwiększenia temperatury <T = wł., N = wył.>"
"desc": "Przytrzymaj przedni przycisk podczas lutowania w celu zwiększenia temperatury"
},
"BoostTemperature": {
"text": "BTMP",
@@ -152,7 +155,7 @@
"Automatyczne",
"uruchamianie"
],
"desc": "Automatyczne uruchamianie trybu lutowania po włączeniu zasilania. T=Lutowanie, S= Tryb Uspienia ,N=Wyłącz"
"desc": "Automatyczne uruchamianie trybu lutowania po włączeniu zasilania.<B - wyłączone, T - lutowanie, Z - uśpienie, O - uśpienie w temp. pokojowej"
},
"CooldownBlink": {
"text": "CLBLNK",
@@ -160,7 +163,7 @@
"Migająca",
"temperatura"
],
"desc": "Temperatura na ekranie miga, gdy grot jest jeszcze gorący. <T = wł., N = wył.>"
"desc": "Temperatura na ekranie miga, gdy grot jest jeszcze gorący."
},
"TemperatureCalibration": {
"text": "TMP CAL?",
@@ -173,10 +176,10 @@
"SettingsReset": {
"text": "RESET?",
"text2": [
"",
""
"Ustawienia",
"fabryczne"
],
"desc": "Zresetuj wszystkie ustawienia"
"desc": "Zresetuje wszystkie ustawienia!"
},
"VoltageCalibration": {
"text": "CAL VIN?",
@@ -192,7 +195,7 @@
"Szczegółowe",
"informacje"
],
"desc": "Wyświetl szczegółowe informacje podczas lutowania <T = wł., N = wył.>"
"desc": "Wyświetl szczegółowe informacje podczas lutowania"
},
"ScrollingSpeed": {
"text": "DESCSP",
@@ -214,65 +217,81 @@
"text": "SMPCAL",
"text2": [
"Prosta",
"Kalibracja"
"kalibracja"
],
"desc": "Prosta kalibracja używając gorącej wody"
"desc": "Prosta kalibracja, używając gorącej wody"
},
"AdvancedCalibrationMode": {
"text": "ADVCAL",
"text2": [
"Zaawansowana",
"Kalibracja"
"kalibracja"
],
"desc": "Zaawansowana kalibracja za pomocy termopoary na grocie"
"desc": "Zaawansowana kalibracja za pomocą termoelementu na grocie"
},
"PowerInput": {
"text": "PWRW",
"text2": [
"Moc",
"Wattach"
"w W"
],
"desc": "Moc używanego zasilacza w Watach"
"desc": "Moc używanego zasilacza w Wattach"
},
"PowerLimitEnable": {
"text": "PLIMEN",
"text2": [
"P Limit",
"Enable"
"Włącz limit",
"mocy"
],
"desc": "Enable power limit"
"desc": "Włącza limit mocy"
},
"PowerLimit": {
"text": "PLIM",
"text2": [
"Power",
"Limit"
"Limit",
"mocy"
],
"desc": "Maximum power the iron can use <Watts>"
"desc": "Maksymalna moc w W, jakiej może użyć lutownica"
},
"ReverseButtonTempChange": {
"text": "RVTCHG",
"text2": [
"Key +-",
"reverse?"
"Zamień przyciski",
"+ -"
],
"desc": "Reverse the tip temperature change buttons plus minus assignment."
"desc": "Zamienia działanie przycisków zmiany temperatury grotu"
},
"TempChangeShortStep": {
"text": "TCHGST",
"text2": [
"Temp change",
"short?"
"Szybka zmiana",
"temperatury"
],
"desc": "Temperature change steps on short button press!"
"desc": "Zmiany temperatury krok po korku, po krótkim naciśnięciu przycisku"
},
"TempChangeLongStep": {
"text": "TCHGLT",
"text2": [
"Temp change",
"long?"
"Wolna zmiana",
"temperatury"
],
"desc": "Temperature change steps on long button press!"
"desc": "Zmiany temperatury krok po korku, po długim naciśnięciu przycisku"
},
"PowerPulsePower":{
"text": "POWPLS",
"text2": [
"Moc pulsu",
"w W"
],
"desc": "Utrzymuj intensywność mocy pulsu"
},
"TipGain": {
"text": "TG",
"text2": [
"Zmodyfikowany",
"zysk grotu"
],
"desc": "Zysk grotu"
}
}
}
}

View File

@@ -273,6 +273,22 @@
"long?"
],
"desc": "Temperature change steps on long button press!"
},
"PowerPulsePower":{
"text": "POWPLS",
"text2": [
"Power",
"Pulse W"
],
"desc": "Keep awake pulse power intensity"
},
"TipGain": {
"text": "TG",
"text2": [
"Modify",
"tip gain"
],
"desc": "Tip gain"
}
}
}
}

View File

@@ -3,17 +3,17 @@
"languageLocalName": "Русский",
"cyrillicGlyphs": true,
"messages": {
"SettingsCalibrationDone": "Калибровка выполнена!",
"SettingsCalibrationWarning": "Убедитесь, что жало остыло до комнатной температуры, прежде чем продолжать!",
"SettingsResetWarning": "Вы действительно хотите сбросить настройки до значений по умолчанию?",
"SettingsCalibrationDone": "Калибровка завершена!",
"SettingsCalibrationWarning": "Прежде чем продолжить, пожалуйста, убедитесь, что жало имеет комнатную температуру!",
"SettingsResetWarning": "Вы уверены, что хотите сбросить настройки к значениям по умолчанию?",
"UVLOWarningString": "НАПРЯЖ--",
"UndervoltageString": "Под питанием",
"InputVoltageString": "Питание B: ",
"WarningTipTempString": "Жало t°: ",
"BadTipString": ало--",
"SleepingSimpleString": "Сон ",
"UndervoltageString": "Низк. напряжение",
"InputVoltageString": "Питание В: ",
"WarningTipTempString": "Темп. жала: ",
"BadTipString": АЛО--",
"SleepingSimpleString": "Zzzz",
"SleepingAdvancedString": "Ожидание...",
"WarningSimpleString": " ГОРЯЧО!",
"WarningSimpleString": "ГОРЯЧО!",
"WarningAdvancedString": "!!! ГОРЯЧЕЕ ЖАЛО !!!",
"SleepingTipAdvancedString": "Жало:",
"IdleTipString": "Жало:",
@@ -23,18 +23,18 @@
"OffString": "Выкл.",
"ResetOKMessage": "Сброс OK",
"YourGainMessage": "Прирост:",
"SettingsResetMessage": "Настройки \nсброшены!"
"SettingsResetMessage": "Настройки сброшены!"
},
"characters": {
"SettingRightChar": "П",
"SettingLeftChar": "Л",
"SettingAutoChar": "A",
"SettingFastChar": "+",
"SettingSlowChar": "-",
"SettingStartSolderingChar": "T",
"SettingStartSleepChar": "S",
"SettingStartSleepOffChar": "O",
"SettingStartNoneChar": "F"
"SettingAutoChar": "А",
"SettingFastChar": "Б",
"SettingSlowChar": "М",
"SettingStartSolderingChar": "П",
"SettingStartSleepChar": "О",
"SettingStartSleepOffChar": "К",
"SettingStartNoneChar": "В"
},
"menuDouble": true,
"menuGroups": {
@@ -47,234 +47,250 @@
},
"PowerSavingMenu": {
"text2": [
"Режим",
"Режимы",
"сна"
],
"desc": "Параметры экономии энергии"
"desc": "Настройки режима ожидания"
},
"UIMenu": {
"text2": [
ользовател",
"интерфейс"
араметры",
"интерфейса"
],
"desc": "Параметры пользовательского интерфейса"
"desc": "Настройки пользовательского интерфейса"
},
"AdvancedMenu": {
"text2": [
"Дополнител.",
"параметры"
"настройки"
],
"desc": "Дополнительные параметры"
"desc": "Дополнительные настройки"
}
},
"menuOptions": {
"PowerSource": {
"text": "ИстП",
"text": "ИстчнПит",
"text2": [
"Источник",
"питания"
],
"desc": "Источник питания. Установка напряжения отключения. <DC = 10 В, S = 3.3 В на батарею, ограничение мощности выкл.>"
"desc": "Источник питания. Устанавливает напряжение отсечки. <DC 10В> <S 3.3В на ячейку, без лимита мощности>"
},
"SleepTemperature": {
"text": "Тожд",
"text": "ТмпОжд",
"text2": [
"Темпер.",
"сна"
"Темп.",
"ожидания"
],
"desc": "Температура режима ожидания <С>"
"desc": "Температура режима ожидания"
},
"SleepTimeout": {
"text": "Вожд",
"text": "ВрмОжид",
"text2": [
"Таймаут",
"сна"
"ожидания"
],
"desc": "Время до перехода в режим ожидания <Минуты/Секунды>"
},
"ShutdownTimeout": {
"text": "Тоткл",
"text": "ВрмОткл",
"text2": [
"Время до",
"отключения"
"Таймаут",
"выключения"
],
"desc": "Время до отключения <Минуты>"
"desc": "Время до отключения паяльника <Минуты>"
},
"MotionSensitivity": {
"text": "ЧувсДв",
"text": "ЧувсАксл",
"text2": [
"Чувст. сенсо-",
"ра движения"
"Чувствительн.",
"акселерометра"
],
"desc": "Акселерометр <0 = Выкл, 1 = Мин. чувствительный, 9 = Макс. чувствительный>"
"desc": "Чувствительность акселерометра <0=Выкл., 1=Мин., 9=Макс.>"
},
"TemperatureUnit": {
"text": "ЕдТемп",
"text2": [
"Формат темпе-",
"ратуры(C°/F°)"
"Единицы",
"температуры"
],
"desc": "Единица измерения температуры <C = Цельсия, F = Фаренгейт>"
"desc": "Единицы измерения температуры <C=Цельcия, F=Фаренгейта>"
},
"AdvancedIdle": {
"text": "ИнфОжд",
"text2": [
"Подробный ре-",
"жим ожидания"
"Подробный",
"реж. ожидания"
],
"desc": "Показывать детальную информацию маленьким шрифтом на домашнем экране"
"desc": "Отображать детальную информацию уменьшенным шрифтом на экране ожидания"
},
"DisplayRotation": {
"text": "ПовЭкр",
"text2": [
"Автоповорот",
"Ориентация",
"экрана"
],
"desc": "Ориентация дисплея <A = Авто, Л = Левая рука, П = Правая рука>"
"desc": "Ориентация экрана <А=Авто, Л=Левая рука, П=Правая рука>"
},
"BoostEnabled": {
"text": "Турбо",
"text": "Турб",
"text2": [
"Режим",
"Турбо"
"Турбо",
"режим"
],
"desc": "Активирует \"Турбо-режим\" при удержании кнопки А во время пайки"
"desc": "Включить активацию турбо-режима удержанием ближней к жалу кнопки во время пайки"
},
"BoostTemperature": {
"text": "Ттур",
"text": "ТемпТурб",
"text2": [
"Темпер.",
"Турбо"
"t° турбо",
"режима"
],
"desc": "Температура в \"Турбо-режиме\""
"desc": "Температура жала в турбо-режиме"
},
"AutoStart": {
"text": "Астарт",
"text": "АвтоРеж",
"text2": [
"Горячий",
"Авто",
"старт"
],
"desc": "Автоматический запуск паяльника при включении питания <T = Нагрев, S = Режим ожидания, F = Выкл.>"
"desc": "Режим, в котором запускается паяльник при подаче питания <П=Пайка, О=Ожидание, К=Ожидание при комн. темп., В=Выкл.>"
},
"CooldownBlink": {
"text": "Охлажд",
"text": "МигТемп",
"text2": [
"Показ t° при",
"остывании"
"Мигание t°",
"при остывании"
],
"desc": "Показывать температуру на экране охлаждения, пока жало остается горячим"
"desc": "Мигать температурой на экране охлаждения, пока жало еще горячее"
},
"TemperatureCalibration": {
"text": "КалибрТ",
"text": "КалТемп?",
"text2": [
"Калибровка",
"температуры"
],
"desc": "Калибровка термодатчика"
"desc": "Калибровка термодатчика жала"
},
"SettingsReset": {
"text": "СБРОС?",
"text": "Сброс?",
"text2": [
"Сбросить все",
"настройки?"
"Сброс",
"Настроек"
],
"desc": "Сброс всех настроек"
"desc": "Сброс настроек к значеням по умолчанию"
},
"VoltageCalibration": {
"text": "КалибрU?",
"text": "КалНапр",
"text2": [
"Калибровка",
"напряжения"
],
"desc": "Калибровка входного напряжения. Настройка кнопками, нажать и удержать чтобы завершить"
"desc": "Калибровка входного напряжения <длинное нажатие для выхода>"
},
"AdvancedSoldering": {
"text": "ИнфПай",
"text": "ИнфПайк",
"text2": [
"Подробный ре-",
"жим пайки"
"Подробный",
"экран пайки"
],
"desc": "Показывать детальную информацию при пайке"
"desc": "Показывать детальную информацию на экране пайки"
},
"ScrollingSpeed": {
"text": "DESCSP",
"text": "СкорТекс",
"text2": [
"Скорость",
"текста"
],
"desc": "Скорость прокрутки текста"
"desc": "Скорость прокрутки текста <М=медленно, Б=быстро>"
},
"TipModel": {
"text": "TIPMO",
"text": "МодЖала",
"text2": [
"Модель",
"жало"
"жала"
],
"desc": "Выбор модели жало"
"desc": "Выбор модели жала"
},
"SimpleCalibrationMode": {
"text": "SMPCAL",
"text": "УпрКал",
"text2": [
"Простая",
"Упрощенная",
"калибровка"
],
"desc": "Простая калибровка с использованием горячей воды"
"desc": "Упрощенная калибровка с использованием горячей воды"
},
"AdvancedCalibrationMode": {
"text": "ADVCAL",
"text": "УлучшКал",
"text2": [
"Подробная",
"Улучшенная",
"калибровка"
],
"desc": "Калибровка с помощью термопары"
"desc": "Улучшенная калибровка с импользованием термопары жала"
},
"PowerInput": {
"text": "PWRW",
"text": "МощнИст",
"text2": [
"Мощность",
"адаптера"
"питания"
],
"desc": "Мощность используемого адаптера питания"
"desc": "Мощность используемого источника питания"
},
"PowerLimitEnable": {
"text": "PLIMEN",
"text": "ВклЛимW",
"text2": [
"Ограничение",
"мощности"
],
"desc": "Включает ограничение мощности потребления"
"desc": "Включить лимит потребляемой мощности"
},
"PowerLimit": {
"text": "PLIM",
"text": "ЗначЛимW",
"text2": [
"Максимальная",
"мощность"
],
"desc": "Макс. мощность, которую может использовать паяльник <Ватт>"
"desc": "Максимальная мощность, которую может использовать паяльник <Ватт>"
},
"ReverseButtonTempChange": {
"text": "RVTCHG",
"text": "ИнвКноп",
"text2": [
"Key +-",
"reverse?"
"Инвертировать",
"кнопки"
],
"desc": "Reverse the tip temperature change buttons plus minus assignment."
"desc": "Инвертировать кнопки изменения температуры"
},
"TempChangeShortStep": {
"text": "TCHGST",
"text": "ШагКорт",
"text2": [
"Temp change",
"short?"
"Шаг темп.",
"кор. наж."
],
"desc": "Temperature change steps on short button press!"
"desc": "Шаг изменения температуры при коротком нажатии кнопок"
},
"TempChangeLongStep": {
"text": "TCHGLT",
"text": "ШагДлин",
"text2": [
"Temp change",
"long?"
"Шаг темп.",
"длин. наж."
],
"desc": "Temperature change steps on long button press!"
"desc": "Шаг изменения температуры при длинном нажатии кнопок"
},
"PowerPulsePower":{
"text": "POWPLS",
"text2": [
"Power",
"Pulse W"
],
"desc": "Keep awake pulse power intensity"
},
"TipGain": {
"text": "TG",
"text2": [
"Modify",
"tip gain"
],
"desc": "Tip gain"
}
}
}
}

View File

@@ -273,6 +273,22 @@
"long?"
],
"desc": "Temperature change steps on long button press!"
},
"PowerPulsePower":{
"text": "POWPLS",
"text2": [
"Power",
"Pulse W"
],
"desc": "Keep awake pulse power intensity"
},
"TipGain": {
"text": "TG",
"text2": [
"Modify",
"tip gain"
],
"desc": "Tip gain"
}
}
}
}

View File

@@ -274,6 +274,22 @@
"long?"
],
"desc": "Temperature change steps on long button press!"
},
"PowerPulsePower":{
"text": "POWPLS",
"text2": [
"Power",
"Pulse W"
],
"desc": "Keep awake pulse power intensity"
},
"TipGain": {
"text": "TG",
"text2": [
"Modify",
"tip gain"
],
"desc": "Tip gain"
}
}
}
}

View File

@@ -273,6 +273,22 @@
"long?"
],
"desc": "Temperature change steps on long button press!"
},
"PowerPulsePower":{
"text": "POWPLS",
"text2": [
"Power",
"Pulse W"
],
"desc": "Keep awake pulse power intensity"
},
"TipGain": {
"text": "TG",
"text2": [
"Modify",
"tip gain"
],
"desc": "Tip gain"
}
}
}
}

View File

@@ -273,6 +273,22 @@
"long?"
],
"desc": "Temperature change steps on long button press!"
},
"PowerPulsePower":{
"text": "POWPLS",
"text2": [
"Power",
"Pulse W"
],
"desc": "Keep awake pulse power intensity"
},
"TipGain": {
"text": "TG",
"text2": [
"Modify",
"tip gain"
],
"desc": "Tip gain"
}
}
}
}

View File

@@ -273,6 +273,22 @@
"long?"
],
"desc": "Temperature change steps on long button press!"
},
"PowerPulsePower":{
"text": "POWPLS",
"text2": [
"Power",
"Pulse W"
],
"desc": "Keep awake pulse power intensity"
},
"TipGain": {
"text": "TG",
"text2": [
"Modify",
"tip gain"
],
"desc": "Tip gain"
}
}
}
}

View File

@@ -273,6 +273,22 @@
"long?"
],
"desc": "Temperature change steps on long button press!"
},
"PowerPulsePower":{
"text": "POWPLS",
"text2": [
"Power",
"Pulse W"
],
"desc": "Keep awake pulse power intensity"
},
"TipGain": {
"text": "TG",
"text2": [
"Modify",
"tip gain"
],
"desc": "Tip gain"
}
}
}
}

View File

@@ -5,34 +5,36 @@
"messages": {
"SettingsCalibrationDone": "Калібрування виконане!",
"SettingsCalibrationWarning": "Переконайтеся, що жало охололо до кімнатної температури, перш ніж продовжувати!",
"SettingsResetWarning": "Ви дійсно хочете скинути налаштування до значень за замовчуванням?",
"SettingsResetWarning": "Ви дійсно хочете скинути налаштування до значень за замовчуванням? <A - Так, В - Ні>",
"UVLOWarningString": "АККУМ--",
"UndervoltageString": "Під живленням",
"UndervoltageString": "Низ. напруга",
"InputVoltageString": "Жив.(B): ",
"WarningTipTempString": "Жало t°: ",
"BadTipString": ало--",
"SleepingSimpleString": "Сон ",
"BadTipString": АЛО--",
"SleepingSimpleString": "ZzZzz",
"SleepingAdvancedString": "Очікування...",
"WarningSimpleString": "АЙ!",
"WarningAdvancedString": "УВАГА ГАРЯЧЕ!",
"WarningSimpleString": "ГАРЯЧЕ!",
"WarningAdvancedString": "!!! ГАРЯЧЕ ЖАЛО !!!",
"SleepingTipAdvancedString": "Жало:",
"IdleTipString": "Жало:",
"IdleSetString": " ->",
"TipDisconnectedString": "Жало вимкнено!",
"SolderingAdvancedPowerPrompt": "Живлення: ",
"OffString": "Вимк",
"ResetOKMessage": "Reset OK"
"ResetOKMessage": "Скидання OK",
"YourGainMessage": "Приріст:",
"SettingsResetMessage": "Налаштування скинуті!"
},
"characters": {
"SettingRightChar": "П",
"SettingLeftChar": "Л",
"SettingAutoChar": "A",
"SettingFastChar": "+",
"SettingSlowChar": "-",
"SettingStartSolderingChar": "T",
"SettingStartSleepChar": "S",
"SettingStartSleepOffChar": "O",
"SettingStartNoneChar": "F"
"SettingFastChar": "Ш",
"SettingSlowChar": "П",
"SettingStartSolderingChar": "П",
"SettingStartSleepChar": "О",
"SettingStartSleepOffChar": "К",
"SettingStartNoneChar": "В"
},
"menuDouble": true,
"menuGroups": {
@@ -88,7 +90,7 @@
"Тайм-аут",
"сну"
],
"desc": "Час до переходу в режим очікування <Хвилини>"
"desc": "Час до переходу в режим очікування <Хвилини/Секунди>"
},
"ShutdownTimeout": {
"text": "",
@@ -104,7 +106,7 @@
"Чутл. сенсо-",
"ру руху"
],
"desc": "Акселерометр <0 - Вимк. 1 хв. чутливості 9 - макс. чутливості>"
"desc": "Акселерометр <0 - Вимк. 1 - мін. чутливості 9 - макс. чутливості>"
},
"TemperatureUnit": {
"text": "",
@@ -152,7 +154,7 @@
"Гарячий",
"старт"
],
"desc": "Автоматичний перехід в режим пайки при ввімкнені живлення."
"desc": "Режим з яким запускається паяльник при подачі живлення <П=Пайка, О=Очікування, К=Очікування при кімн. темп., В=Вимк.>"
},
"CooldownBlink": {
"text": "",
@@ -200,7 +202,7 @@
"Швидкість",
"тексту"
],
"desc": "Швидкість прокрутки тексту"
"desc": "Швидкість прокрутки тексту <П=повільно, Ш=швидко>"
},
"TipModel": {
"text": "TIPMO",
@@ -245,34 +247,50 @@
"PowerLimit": {
"text": "PLIM",
"text2": [
"Максимальна",
"потужність"
"Макс.",
"потуж."
],
"desc": "Макс. потужність, яку може використовувати паяльник <Ват>"
},
"ReverseButtonTempChange": {
"text": "RVTCHG",
"text2": [
"Key +-",
"reverse?"
"Інвертувати",
"кнопки +-?"
],
"desc": "Reverse the tip temperature change buttons plus minus assignment."
"desc": "Інвертувати кнопки зміни температури."
},
"TempChangeShortStep": {
"text": "TCHGST",
"text2": [
"Temp change",
"short?"
"Зм. темп.",
"коротко?"
],
"desc": "Temperature change steps on short button press!"
"desc": "Змінювати температуру при короткому натисканні!"
},
"TempChangeLongStep": {
"text": "TCHGLT",
"text2": [
"Temp change",
"long?"
"Зм. темп.",
"довго?"
],
"desc": "Temperature change steps on long button press!"
"desc": "Змінювати температуру при довгому натисканні!"
},
"PowerPulsePower":{
"text": "POWPLS",
"text2": [
"Пульс.",
"Навантаж."
],
"desc": "Деякі PowerBank-и з часом вимк. живлення, якщо пристрій споживає дуже мало енергії (це потрібно щоб паяльник не вимкнувся з часом)"
},
"TipGain": {
"text": "TG",
"text2": [
"Modify",
"tip gain"
],
"desc": "Tip gain"
}
}
}

View File

@@ -282,6 +282,16 @@ var def =
"id": "TempChangeLongStep",
"maxLen": 6,
"maxLen2": 16
},
{
"id": "PowerPulsePower",
"maxLen": 6,
"maxLen2": 16
},
{
"id": "TipGain",
"maxLen": 6,
"maxLen2": 8
}
]
}

View File

@@ -1,4 +1,4 @@
version: '3'
version: "3"
services:
builder:
stdin_open: true

View File

@@ -1,5 +1,6 @@
# Menu System
In this firmware for these soldering irons, all settings are adjustable on the device itself. This means you do **not** require a computer to change any settings.
## Soldering mode
@@ -24,7 +25,6 @@ Scrolling through the submenu will return you back to its entry location after y
Due to the tolerance on the resistors used for the input voltage divider, some irons can be up to 0.6V out on the voltage measurement.
Please calibrate your iron if you have any issues with the cutoff voltage.
Note that cutoff messages can also be triggered by using a power supply that is too weak and fails under the load of the iron.
This is more critical than before with the new cell count based cutout voltage.
To calibrate your iron:

72
upgrading.md Normal file
View File

@@ -0,0 +1,72 @@
# Upgrading your iron
## Miniware irons (TS100, TS80, TS80P)
This is completely safe, but if it goes wrong just put the .hex file from the official website onto the unit and you're back to the old firmware. Downloads for the hex files to flash are available on the [releases page.](https://github.com/Ralim/ts100/releases) The file you want is called *(MODEL)_EN.hex* unless you want the translations, they are (MODEL)_*language short name*.hex. Where (MODEL) is either TS100 or TS80.
Officially the bootloader on the iron only works under Windows (use the built-in File Explorer, as alternative file managers or copy handlers like Teracopy will fail). However, users have reported that it does work under Mac, and can be made to work under Linux *sometimes*. Details over on the [wiki page](https://github.com/Ralim/ts100/wiki/Upgrading-Firmware).
1. Hold the button closest to the tip, and plug in the USB to the computer.
2. The unit will appear as a USB drive.
3. Drag the .hex file onto the USB drive.
4. The unit will disconnect and reconnect.
5. The filename will have changed to end in .RDY or .ERR
6. If it ends with .RDY you're done! Otherwise, something went wrong.
7. If it didn't work the first time, try copying the file again without disconnecting the iron, often it will work on the second shot.
8. Disconnect the USB and power up the iron. You're good to go.
For the more adventurous out there, you can also load this firmware onto the device using an SWD programmer.
On the bottom of the MCU riser PCB, there are 4 pads for programming. On v2.51A PCB revision `USB_D+` is shorted to `SWDIO` and `USB_D-` is shorted to `SWCLK` so debugging works without disassembly (attach while staying in the bootloader). Installing [dapboot from eDesignOSS](https://github.com/eDesignOSS/dapboot) (`make TARGET=TS100 -C src`) is recommended as it allows reliable flashing of binary files with [dfu-util](http://dfu-util.sourceforge.net/).
There is a complete device flash backup included in this repository. (Note this includes the bootloader, so will need an SWD programmer to load onto the unit).
For the TS80 the SWD pins are used for the QC negotiation, so you can actually connect to the SWD power via the USB connector.
### FAQ
#### The file is showing up with the extension `.ERR`
This can occur duing the programming process if any of the checks in the bootloader fail. This is often triggered by anti-virus software or using a non-windows host OS.
First, try just copying the file a second time.
1. Attach the iron in DFU mode
2. Copy the hex file to the device
3. The device disconnects and connects with the `.ERR` file
4. Copy the same hex file again **DO NOT TRY AND DELETE THE OLD ONE**
5. The device will disconnect and reconnect again
6. The device _should_ now have the `.RDY` file
7. Your done.
If this fails, if you are on Mac or Linux reading the wiki page about programming can help. There is also a very long issue thread going through all of the different attempts around this too.
If you are on windows, its often to try another computer (friends, work, partners etc).
#### Device randomly disconnects or does not show up in DFU mode
First, check the USB cable your using has the data pins; test it on another device. There are a surprisingly large number of usb-micro cables that are power _only_.
Secondly, try other USB ports. Often different USB controllers will interact with the units differently due to design quirks in the miniware design.
## Setting a custom bootup image
This firmware uses a different method of updating the bootup image.
This removes the need for emulating a USB drive on the iron just to allow for a bootup image to be setup.
There are further instructions on the [wiki](https://github.com/Ralim/ts100/wiki/Logo-Editor).
Instructions are kept on the wiki so that users can update the information if they find extra helpful information.
## Alternative bootloader
If you are an advanced user, and you have used `usb-dfu` tools before, or you would like to learn; there is an alternative bootloader for these irons.
This will **NOT** show up as a USB storage drive, but instead show up using a standard DFU protocol device. You can then use dfu tools or GUI's to upgrade the iron using the `.bin` files that are posted to the releases page.
To change to dapboot based alternative bootloader, you need to flash the hex file from [here](https://github.com/eDesignOSS/ts100-bl-flasher/releases).
`ts100-stockbl.hex` will reflash the stock bootloader, `ts100-dapboot.hex` will flash the new dapboot based usb bootloader.
Note that this is only reccomended for users who know what they doing. If you dont not understand how this works; please dont flash this.

View File

@@ -0,0 +1,58 @@
#include "BSP_Flash.h"
#include "BSP_Power.h"
#include "BSP_QC.h"
#include "Defines.h"
#include "Model_Config.h"
#include "stdint.h"
/*
* BSP.h -- Board Support
*
* This exposes functions that are expected to be implemented to add support for different hardware
*/
#ifndef BSP_BSP_H_
#define BSP_BSP_H_
#ifdef __cplusplus
extern "C" {
#endif
// Called first thing in main() to init the hardware
void preRToSInit();
// Called once the RToS has started for any extra work
void postRToSInit();
// Called to reset the hardware watchdog unit
void resetWatchdog();
// Accepts a output level of 0.. to use to control the tip output PWM
void setTipPWM(uint8_t pulse);
// Returns the Handle temp in C, X10
uint16_t getHandleTemperature();
// Returns the Tip temperature ADC reading in raw units
uint16_t getTipRawTemp(uint8_t refresh);
// Returns the main DC input voltage, using the adjustable divisor + sample flag
uint16_t getInputVoltageX10(uint16_t divisor, uint8_t sample);
// Readers for the two buttons
// !! Returns 1 if held down, 0 if released
uint8_t getButtonA();
uint8_t getButtonB();
// This is a work around that will be called if I2C starts to bug out
// This should toggle the SCL line until SDA goes high to end the current transaction
void unstick_I2C();
// Reboot the IC when things go seriously wrong
void reboot();
// If the user has programmed in a bootup logo, draw it to the screen from flash
// Returns 1 if the logo was printed so that the unit waits for the timeout or button
uint8_t showBootLogoIfavailable();
//delay wrapper for delay using the hardware timer (used before RTOS)
void delay_ms(uint16_t count) ;
//Used to allow knowledge of if usb_pd is being used
uint8_t usb_pd_detect();
#ifdef __cplusplus
}
#endif
#endif /* BSP_BSP_H_ */

View File

@@ -0,0 +1,26 @@
/*
* BSP_Flash.h
*
* Created on: 29 May 2020
* Author: Ralim
*/
#include "stdint.h"
#ifndef BSP_BSP_FLASH_H_
#define BSP_BSP_FLASH_H_
#ifdef __cplusplus
extern "C" {
#endif
/*
* Wrappers to allow read/writing to a sector of flash that we use to store all of the user settings
*
* Should allow reading and writing to the flash
*/
//Erase the flash, then save the buffer. Returns 1 if worked
uint8_t flash_save_buffer(const uint8_t *buffer, const uint16_t length);
void flash_read_buffer(uint8_t *buffer, const uint16_t length);
#ifdef __cplusplus
}
#endif
#endif /* BSP_BSP_FLASH_H_ */

View File

@@ -0,0 +1,16 @@
/*
* BSP_PD.h
*
* Created on: 21 Jul 2020
* Author: Ralim
*/
#ifndef USER_BSP_PD_H_
#define USER_BSP_PD_H_
#include "BSP.h"
/*
* An array of all of the desired voltages & minimum currents in preferred order
*/
extern const uint16_t USB_PD_Desired_Levels[];
extern const uint8_t USB_PD_Desired_Levels_Len;
#endif /* USER_BSP_PD_H_ */

View File

@@ -0,0 +1,24 @@
#include "stdint.h"
/*
* BSP_Power.h -- Board Support for Power control
*
* These functions are hooks used to allow for power control
*
*/
#ifndef BSP_POWER_H_
#define BSP_POWER_H_
#ifdef __cplusplus
extern "C" {
#endif
// Called periodically in the movement handling thread
// Can be used to check any details for the power system
void power_check();
#ifdef __cplusplus
}
#endif
#endif

View File

@@ -0,0 +1,42 @@
/*
* BSP_QC.h
*
* Created on: 29 May 2020
* Author: Ralim
*/
#ifndef BSP_BSP_QC_H_
#define BSP_BSP_QC_H_
#include "stdint.h"
#ifdef __cplusplus
extern "C" {
#endif
// Init GPIO for QC neg
void QC_Init_GPIO();
// Set the DP pin to 0.6V
void QC_DPlusZero_Six();
// Set the DM pin to 0.6V
void QC_DNegZero_Six();
// Set the DP pin to 3.3V
void QC_DPlusThree_Three();
// Set the DM pin to 3.3V
void QC_DNegThree_Three();
// Turn on weak pulldown on the DM pin
// This is used as a helper for some power banks
void QC_DM_PullDown();
// Turn off the pulldown
void QC_DM_No_PullDown();
// Turn on output drivers that were initally disabled to prevent spike through QC disable mode
void QC_Post_Probe_En();
// Check if DM was pulled down
// 1=Pulled down, 0 == pulled high
uint8_t QC_DM_PulledDown();
// Re-sync if required
void QC_resync();
#ifdef __cplusplus
}
#endif
#endif /* BSP_BSP_QC_H_ */

View File

@@ -0,0 +1,19 @@
/*
* Defines.h
*
* Created on: 29 May 2020
* Author: Ralim
*/
#ifndef BSP_DEFINES_H_
#define BSP_DEFINES_H_
enum Orientation {
ORIENTATION_LEFT_HAND = 0, ORIENTATION_RIGHT_HAND = 1, ORIENTATION_FLAT = 3
};
//It is assumed that all hardware implements an 8Hz update period at this time
#define PID_TIM_HZ (8)
#endif /* BSP_DEFINES_H_ */

View File

@@ -0,0 +1,309 @@
//BSP mapping functions
#include <IRQ.h>
#include "BSP.h"
#include "Setup.h"
#include "history.hpp"
#include "Pins.h"
#include "main.hpp"
#include "history.hpp"
#include "Model_Config.h"
#include "I2C_Wrapper.hpp"
volatile uint16_t PWMSafetyTimer = 0;
volatile uint8_t pendingPWM = 0;
//2 second filter (ADC is PID_TIM_HZ Hz)
history<uint16_t, PID_TIM_HZ> rawTempFilter = { { 0 }, 0, 0 };
void resetWatchdog() {
HAL_IWDG_Refresh(&hiwdg);
}
#ifdef TEMP_NTC
//Lookup table for the NTC
//Stored as ADCReading,Temp in degC
static const uint16_t NTCHandleLookup[] = {
//ADC Reading , Temp in C
29189, 0, //
29014, 1, //
28832, 2, //
28644, 3, //
28450, 4, //
28249, 5, //
28042, 6, //
27828, 7, //
27607, 8, //
27380, 9, //
27146, 10, //
26906, 11, //
26660, 12, //
26407, 13, //
26147, 14, //
25882, 15, //
25610, 16, //
25332, 17, //
25049, 18, //
24759, 19, //
24465, 20, //
24164, 21, //
23859, 22, //
23549, 23, //
23234, 24, //
22915, 25, //
22591, 26, //
22264, 27, //
21933, 28, //
21599, 29, //
// 21261, 30, //
// 20921, 31, //
// 20579, 32, //
// 20234, 33, //
// 19888, 34, //
// 19541, 35, //
// 19192, 36, //
// 18843, 37, //
// 18493, 38, //
// 18143, 39, //
// 17793, 40, //
// 17444, 41, //
// 17096, 42, //
// 16750, 43, //
// 16404, 44, //
// 16061, 45, //
// 15719, 46, //
// 15380, 47, //
// 15044, 48, //
// 14710, 49, //
// 14380, 50, //
// 14053, 51, //
// 13729, 52, //
// 13410, 53, //
// 13094, 54, //
// 12782, 55, //
// 12475, 56, //
// 12172, 57, //
// 11874, 58, //
// 11580, 59, //
// 11292, 60, //
};
#endif
uint16_t getHandleTemperature() {
#ifdef TEMP_NTC
//TS80P uses 100k NTC resistors instead
//NTCG104EF104FT1X from TDK
//For now not doing interpolation
int32_t result = getADC(0);
for (uint32_t i = 0; i < (sizeof(NTCHandleLookup) / (2 * sizeof(uint16_t)));
i++) {
if (result > NTCHandleLookup[(i * 2) + 0]) {
return NTCHandleLookup[(i * 2) + 1] * 10;
}
}
return 0;
#endif
#ifdef TEMP_TMP36
// We return the current handle temperature in X10 C
// TMP36 in handle, 0.5V offset and then 10mV per deg C (0.75V @ 25C for
// example) STM32 = 4096 count @ 3.3V input -> But We oversample by 32/(2^2) =
// 8 times oversampling Therefore 32768 is the 3.3V input, so 0.1007080078125
// mV per count So we need to subtract an offset of 0.5V to center on 0C
// (4964.8 counts)
//
int32_t result = getADC(0);
result -= 4965; // remove 0.5V offset
// 10mV per C
// 99.29 counts per Deg C above 0C
result *= 100;
result /= 993;
return result;
#endif
}
uint16_t getTipInstantTemperature() {
uint16_t sum = 0; // 12 bit readings * 8 -> 15 bits
uint16_t readings[8];
//Looking to reject the highest outlier readings.
//As on some hardware these samples can run into the op-amp recovery time
//Once this time is up the signal stabilises quickly, so no need to reject minimums
readings[0] = hadc1.Instance->JDR1;
readings[1] = hadc1.Instance->JDR2;
readings[2] = hadc1.Instance->JDR3;
readings[3] = hadc1.Instance->JDR4;
readings[4] = hadc2.Instance->JDR1;
readings[5] = hadc2.Instance->JDR2;
readings[6] = hadc2.Instance->JDR3;
readings[7] = hadc2.Instance->JDR4;
for (int i = 0; i < 8; i++) {
sum += readings[i];
}
return sum; // 8x over sample
}
uint16_t getTipRawTemp(uint8_t refresh) {
if (refresh) {
uint16_t lastSample = getTipInstantTemperature();
rawTempFilter.update(lastSample);
return lastSample;
} else {
return rawTempFilter.average();
}
}
uint16_t getInputVoltageX10(uint16_t divisor, uint8_t sample) {
// ADC maximum is 32767 == 3.3V at input == 28.05V at VIN
// Therefore we can divide down from there
// Multiplying ADC max by 4 for additional calibration options,
// ideal term is 467
#ifdef MODEL_TS100
#define BATTFILTERDEPTH 32
#else
#define BATTFILTERDEPTH 8
#endif
static uint8_t preFillneeded = 10;
static uint32_t samples[BATTFILTERDEPTH];
static uint8_t index = 0;
if (preFillneeded) {
for (uint8_t i = 0; i < BATTFILTERDEPTH; i++)
samples[i] = getADC(1);
preFillneeded--;
}
if (sample) {
samples[index] = getADC(1);
index = (index + 1) % BATTFILTERDEPTH;
}
uint32_t sum = 0;
for (uint8_t i = 0; i < BATTFILTERDEPTH; i++)
sum += samples[i];
sum /= BATTFILTERDEPTH;
if (divisor == 0) {
divisor = 1;
}
return sum * 4 / divisor;
}
void setTipPWM(uint8_t pulse) {
PWMSafetyTimer = 10; // This is decremented in the handler for PWM so that the tip pwm is
// disabled if the PID task is not scheduled often enough.
pendingPWM = pulse;
}
// These are called by the HAL after the corresponding events from the system
// timers.
void HAL_TIM_PeriodElapsedCallback(TIM_HandleTypeDef *htim) {
// Period has elapsed
if (htim->Instance == TIM2) {
// we want to turn on the output again
PWMSafetyTimer--;
// We decrement this safety value so that lockups in the
// scheduler will not cause the PWM to become locked in an
// active driving state.
// While we could assume this could never happen, its a small price for
// increased safety
htim2.Instance->CCR4 = pendingPWM;
if (htim2.Instance->CCR4 && PWMSafetyTimer) {
HAL_TIM_PWM_Start(&htim3, TIM_CHANNEL_1);
} else {
HAL_TIM_PWM_Stop(&htim3, TIM_CHANNEL_1);
}
} else if (htim->Instance == TIM1) {
// STM uses this for internal functions as a counter for timeouts
HAL_IncTick();
}
}
void HAL_TIM_PWM_PulseFinishedCallback(TIM_HandleTypeDef *htim) {
// This was a when the PWM for the output has timed out
if (htim->Channel == HAL_TIM_ACTIVE_CHANNEL_4) {
HAL_TIM_PWM_Stop(&htim3, TIM_CHANNEL_1);
}
}
void unstick_I2C() {
GPIO_InitTypeDef GPIO_InitStruct;
int timeout = 100;
int timeout_cnt = 0;
// 1. Clear PE bit.
hi2c1.Instance->CR1 &= ~(0x0001);
/**I2C1 GPIO Configuration
PB6 ------> I2C1_SCL
PB7 ------> I2C1_SDA
*/
// 2. Configure the SCL and SDA I/Os as General Purpose Output Open-Drain, High level (Write 1 to GPIOx_ODR).
GPIO_InitStruct.Mode = GPIO_MODE_OUTPUT_OD;
GPIO_InitStruct.Pull = GPIO_PULLUP;
GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_LOW;
GPIO_InitStruct.Pin = SCL_Pin;
HAL_GPIO_Init(SCL_GPIO_Port, &GPIO_InitStruct);
HAL_GPIO_WritePin(SCL_GPIO_Port, SCL_Pin, GPIO_PIN_SET);
GPIO_InitStruct.Pin = SDA_Pin;
HAL_GPIO_Init(SDA_GPIO_Port, &GPIO_InitStruct);
HAL_GPIO_WritePin(SDA_GPIO_Port, SDA_Pin, GPIO_PIN_SET);
while (GPIO_PIN_SET != HAL_GPIO_ReadPin(SDA_GPIO_Port, SDA_Pin)) {
//Move clock to release I2C
HAL_GPIO_WritePin(SCL_GPIO_Port, SCL_Pin, GPIO_PIN_RESET);
asm("nop");
asm("nop");
asm("nop");
asm("nop");
HAL_GPIO_WritePin(SCL_GPIO_Port, SCL_Pin, GPIO_PIN_SET);
timeout_cnt++;
if (timeout_cnt > timeout)
return;
}
// 12. Configure the SCL and SDA I/Os as Alternate function Open-Drain.
GPIO_InitStruct.Mode = GPIO_MODE_AF_OD;
GPIO_InitStruct.Pull = GPIO_PULLUP;
GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_LOW;
GPIO_InitStruct.Pin = SCL_Pin;
HAL_GPIO_Init(SCL_GPIO_Port, &GPIO_InitStruct);
GPIO_InitStruct.Pin = SDA_Pin;
HAL_GPIO_Init(SDA_GPIO_Port, &GPIO_InitStruct);
HAL_GPIO_WritePin(SCL_GPIO_Port, SCL_Pin, GPIO_PIN_SET);
HAL_GPIO_WritePin(SDA_GPIO_Port, SDA_Pin, GPIO_PIN_SET);
// 13. Set SWRST bit in I2Cx_CR1 register.
hi2c1.Instance->CR1 |= 0x8000;
asm("nop");
// 14. Clear SWRST bit in I2Cx_CR1 register.
hi2c1.Instance->CR1 &= ~0x8000;
asm("nop");
// 15. Enable the I2C peripheral by setting the PE bit in I2Cx_CR1 register
hi2c1.Instance->CR1 |= 0x0001;
// Call initialization function.
HAL_I2C_Init(&hi2c1);
}
uint8_t getButtonA() {
return HAL_GPIO_ReadPin(KEY_A_GPIO_Port, KEY_A_Pin) == GPIO_PIN_RESET ?
1 : 0;
}
uint8_t getButtonB() {
return HAL_GPIO_ReadPin(KEY_B_GPIO_Port, KEY_B_Pin) == GPIO_PIN_RESET ?
1 : 0;
}
void reboot() {
NVIC_SystemReset();
}
void delay_ms(uint16_t count) {
HAL_Delay(count);
}

View File

@@ -0,0 +1,22 @@
/*
* BSP_PD.c
*
* Created on: 21 Jul 2020
* Author: Ralim
*/
#include "BSP_PD.h"
#include "Model_Config.h"
#ifdef POW_PD
/*
* An array of all of the desired voltages & minimum currents in preferred order
*/
const uint16_t USB_PD_Desired_Levels[] = {
//mV desired input, mA minimum required current
12000, 2400, //12V @ 2.4A
9000, 2000, //9V @ 2A
5000, 100, //5V @ whatever
};
const uint8_t USB_PD_Desired_Levels_Len = 3;
#endif

View File

@@ -0,0 +1,133 @@
/*
* FRToSI2C.cpp
*
* Created on: 14Apr.,2018
* Author: Ralim
*/
#include <I2C_Wrapper.hpp>
#include "BSP.h"
#include "Setup.h"
#define I2CUSESDMA
SemaphoreHandle_t FRToSI2C::I2CSemaphore;
StaticSemaphore_t FRToSI2C::xSemaphoreBuffer;
void FRToSI2C::CpltCallback() {
hi2c1.State = HAL_I2C_STATE_READY; // Force state reset (even if tx error)
if (I2CSemaphore) {
xSemaphoreGiveFromISR(I2CSemaphore, NULL);
}
}
bool FRToSI2C::Mem_Read(uint16_t DevAddress, uint16_t MemAddress,
uint8_t *pData, uint16_t Size) {
if (I2CSemaphore == NULL) {
// no RToS, run blocking code
HAL_I2C_Mem_Read(&hi2c1, DevAddress, MemAddress, I2C_MEMADD_SIZE_8BIT,
pData, Size, 5000);
return true;
} else {
// RToS is active, run threading
// Get the mutex so we can use the I2C port
// Wait up to 1 second for the mutex
if (xSemaphoreTake(I2CSemaphore, (TickType_t)500) == pdTRUE) {
#ifdef I2CUSESDMA
if (HAL_I2C_Mem_Read(&hi2c1, DevAddress, MemAddress,
I2C_MEMADD_SIZE_8BIT, pData, Size, 500) != HAL_OK) {
I2C_Unstick();
xSemaphoreGive(I2CSemaphore);
return false;
} else {
xSemaphoreGive(I2CSemaphore);
return true;
}
#else
if (HAL_I2C_Mem_Read(&hi2c1, DevAddress, MemAddress, I2C_MEMADD_SIZE_8BIT, pData, Size,
5000)==HAL_OK){
xSemaphoreGive(I2CSemaphore);
return true;
}
xSemaphoreGive(I2CSemaphore);
return false;
#endif
} else {
return false;
}
}
}
void FRToSI2C::I2C_RegisterWrite(uint8_t address, uint8_t reg, uint8_t data) {
Mem_Write(address, reg, &data, 1);
}
uint8_t FRToSI2C::I2C_RegisterRead(uint8_t add, uint8_t reg) {
uint8_t tx_data[1];
Mem_Read(add, reg, tx_data, 1);
return tx_data[0];
}
void FRToSI2C::Mem_Write(uint16_t DevAddress, uint16_t MemAddress,
uint8_t *pData, uint16_t Size) {
if (I2CSemaphore == NULL) {
// no RToS, run blocking code
HAL_I2C_Mem_Write(&hi2c1, DevAddress, MemAddress, I2C_MEMADD_SIZE_8BIT,
pData, Size, 5000);
} else {
// RToS is active, run threading
// Get the mutex so we can use the I2C port
// Wait up to 1 second for the mutex
if (xSemaphoreTake(I2CSemaphore, (TickType_t)500) == pdTRUE) {
if (HAL_I2C_Mem_Write(&hi2c1, DevAddress, MemAddress,
I2C_MEMADD_SIZE_8BIT, pData, Size, 500) != HAL_OK) {
I2C_Unstick();
xSemaphoreGive(I2CSemaphore);
}
xSemaphoreGive(I2CSemaphore);
}
}
}
void FRToSI2C::Transmit(uint16_t DevAddress, uint8_t *pData, uint16_t Size) {
if (I2CSemaphore == NULL) {
// no RToS, run blocking code
HAL_I2C_Master_Transmit(&hi2c1, DevAddress, pData, Size, 5000);
} else {
// RToS is active, run threading
// Get the mutex so we can use the I2C port
// Wait up to 1 second for the mutex
if (xSemaphoreTake(I2CSemaphore, (TickType_t)50) == pdTRUE) {
#ifdef I2CUSESDMA
if (HAL_I2C_Master_Transmit_DMA(&hi2c1, DevAddress, pData, Size)
!= HAL_OK) {
I2C_Unstick();
xSemaphoreGive(I2CSemaphore);
}
#else
HAL_I2C_Master_Transmit(&hi2c1, DevAddress, pData, Size, 5000);
xSemaphoreGive(I2CSemaphore);
#endif
} else {
}
}
}
bool FRToSI2C::probe(uint16_t DevAddress) {
uint8_t buffer[1];
return HAL_I2C_Mem_Read(&hi2c1, DevAddress, 0x0F, I2C_MEMADD_SIZE_8BIT,
buffer, 1, 1000) == HAL_OK;
}
void FRToSI2C::I2C_Unstick() {
unstick_I2C();
}

View File

@@ -0,0 +1,49 @@
/*
* IRQ.c
*
* Created on: 30 May 2020
* Author: Ralim
*/
#include "IRQ.h"
#include "int_n.h"
/*
* Catch the IRQ that says that the conversion is done on the temperature
* readings coming in Once these have come in we can unblock the PID so that it
* runs again
*/
void HAL_ADCEx_InjectedConvCpltCallback(ADC_HandleTypeDef *hadc) {
BaseType_t xHigherPriorityTaskWoken = pdFALSE;
if (hadc == &hadc1) {
if (pidTaskNotification) {
vTaskNotifyGiveFromISR(pidTaskNotification,
&xHigherPriorityTaskWoken);
portYIELD_FROM_ISR(xHigherPriorityTaskWoken);
}
}
}
void HAL_I2C_MasterRxCpltCallback(I2C_HandleTypeDef *hi2c __unused) {
FRToSI2C::CpltCallback();
}
void HAL_I2C_MasterTxCpltCallback(I2C_HandleTypeDef *hi2c __unused) {
FRToSI2C::CpltCallback();
}
void HAL_I2C_MemTxCpltCallback(I2C_HandleTypeDef *hi2c __unused) {
FRToSI2C::CpltCallback();
}
void HAL_I2C_ErrorCallback(I2C_HandleTypeDef *hi2c __unused) {
FRToSI2C::CpltCallback();
}
void HAL_I2C_AbortCpltCallback(I2C_HandleTypeDef *hi2c __unused) {
FRToSI2C::CpltCallback();
}
void HAL_I2C_MemRxCpltCallback(I2C_HandleTypeDef *hi2c __unused) {
FRToSI2C::CpltCallback();
}
void HAL_GPIO_EXTI_Callback(uint16_t GPIO_Pin) {
(void)GPIO_Pin;
InterruptHandler::irqCallback();
}

View File

@@ -0,0 +1,32 @@
/*
* Irqs.h
*
* Created on: 30 May 2020
* Author: Ralim
*/
#ifndef BSP_MINIWARE_IRQ_H_
#define BSP_MINIWARE_IRQ_H_
#include "BSP.h"
#include "stm32f1xx_hal.h"
#include "I2C_Wrapper.hpp"
#include "Setup.h"
#include "main.hpp"
#ifdef __cplusplus
extern "C" {
#endif
void HAL_ADCEx_InjectedConvCpltCallback(ADC_HandleTypeDef *hadc);
void HAL_I2C_ErrorCallback(I2C_HandleTypeDef *hi2c);
void HAL_I2C_AbortCpltCallback(I2C_HandleTypeDef *hi2c);
void HAL_I2C_MasterTxCpltCallback(I2C_HandleTypeDef *hi2c);
void HAL_I2C_MasterRxCpltCallback(I2C_HandleTypeDef *hi2c);
void HAL_I2C_MemTxCpltCallback(I2C_HandleTypeDef *hi2c);
void HAL_I2C_MemRxCpltCallback(I2C_HandleTypeDef *hi2c);
void HAL_GPIO_EXTI_Callback(uint16_t);
#ifdef __cplusplus
}
#endif
#endif /* BSP_MINIWARE_IRQ_H_ */

View File

@@ -0,0 +1,44 @@
/*
* Model_Config.h
*
* Created on: 25 Jul 2020
* Author: Ralim
*/
#ifndef BSP_MINIWARE_MODEL_CONFIG_H_
#define BSP_MINIWARE_MODEL_CONFIG_H_
/*
* Lookup for mapping features <-> Models
*/
#if defined(MODEL_TS100) + defined(MODEL_TS80)+defined(MODEL_TS80P) > 1
#error "Multiple models defined!"
#elif defined(MODEL_TS100) + defined(MODEL_TS80)+ defined(MODEL_TS80P) == 0
#error "No model defined!"
#endif
#ifdef MODEL_TS100
#define ACCEL_MMA
#define ACCEL_LIS
#define TEMP_TMP36
#endif
#ifdef MODEL_TS80
#define ACCEL_LIS
#define POW_QC
#define TEMP_TMP36
#define LIS_ORI_FLIP
#define OLED_FLIP
#endif
#ifdef MODEL_TS80P
#define ACCEL_LIS
#define POW_PD
#define POW_QC
#define TEMP_NTC
#define I2C_SOFT
#define LIS_ORI_FLIP
#define OLED_FLIP
#endif
#endif /* BSP_MINIWARE_MODEL_CONFIG_H_ */

View File

@@ -0,0 +1,123 @@
/*
* Pins.h
*
* Created on: 29 May 2020
* Author: Ralim
*/
#ifndef BSP_MINIWARE_PINS_H_
#define BSP_MINIWARE_PINS_H_
#include "Model_Config.h"
#ifdef MODEL_TS100
#define KEY_B_Pin GPIO_PIN_6
#define KEY_B_GPIO_Port GPIOA
#define TMP36_INPUT_Pin GPIO_PIN_7
#define TMP36_INPUT_GPIO_Port GPIOA
#define TMP36_ADC1_CHANNEL ADC_CHANNEL_7
#define TIP_TEMP_Pin GPIO_PIN_0
#define TIP_TEMP_GPIO_Port GPIOB
#define TIP_TEMP_ADC1_CHANNEL ADC_CHANNEL_8
#define TIP_TEMP_ADC2_CHANNEL ADC_CHANNEL_8
#define VIN_Pin GPIO_PIN_1
#define VIN_GPIO_Port GPIOB
#define VIN_ADC1_CHANNEL ADC_CHANNEL_9
#define VIN_ADC2_CHANNEL ADC_CHANNEL_9
#define OLED_RESET_Pin GPIO_PIN_8
#define OLED_RESET_GPIO_Port GPIOA
#define KEY_A_Pin GPIO_PIN_9
#define KEY_A_GPIO_Port GPIOA
#define INT_Orientation_Pin GPIO_PIN_3
#define INT_Orientation_GPIO_Port GPIOB
#define PWM_Out_Pin GPIO_PIN_4
#define PWM_Out_GPIO_Port GPIOB
#define PWM_Out_CHANNEL TIM_CHANNEL_1
#define PWM_Out_CCR
#define INT_Movement_Pin GPIO_PIN_5
#define INT_Movement_GPIO_Port GPIOB
#define SCL_Pin GPIO_PIN_6
#define SCL_GPIO_Port GPIOB
#define SDA_Pin GPIO_PIN_7
#define SDA_GPIO_Port GPIOB
#endif
#ifdef MODEL_TS80
// TS80 pin map
#define KEY_B_Pin GPIO_PIN_0
#define KEY_B_GPIO_Port GPIOB
#define TMP36_INPUT_Pin GPIO_PIN_4
#define TMP36_INPUT_GPIO_Port GPIOA
#define TMP36_ADC1_CHANNEL ADC_CHANNEL_4
#define TIP_TEMP_Pin GPIO_PIN_3
#define TIP_TEMP_GPIO_Port GPIOA
#define TIP_TEMP_ADC1_CHANNEL ADC_CHANNEL_3
#define TIP_TEMP_ADC2_CHANNEL ADC_CHANNEL_3
#define VIN_Pin GPIO_PIN_2
#define VIN_GPIO_Port GPIOA
#define VIN_ADC1_CHANNEL ADC_CHANNEL_2
#define VIN_ADC2_CHANNEL ADC_CHANNEL_2
#define OLED_RESET_Pin GPIO_PIN_15
#define OLED_RESET_GPIO_Port GPIOA
#define KEY_A_Pin GPIO_PIN_1
#define KEY_A_GPIO_Port GPIOB
#define INT_Orientation_Pin GPIO_PIN_4
#define INT_Orientation_GPIO_Port GPIOB
#define PWM_Out_Pin GPIO_PIN_6
#define PWM_Out_GPIO_Port GPIOA
#define PWM_Out_CHANNEL TIM_CHANNEL_1
#define INT_Movement_Pin GPIO_PIN_5
#define INT_Movement_GPIO_Port GPIOB
#define SCL_Pin GPIO_PIN_6
#define SCL_GPIO_Port GPIOB
#define SDA_Pin GPIO_PIN_7
#define SDA_GPIO_Port GPIOB
#define SCL2_Pin GPIO_PIN_5
#define SCL2_GPIO_Port GPIOA
#define SDA2_Pin GPIO_PIN_1
#define SDA2_GPIO_Port GPIOA
#define INT_PD_Pin GPIO_PIN_9
#define INT_PD_GPIO_Port GPIOA
#endif
#ifdef MODEL_TS80P
// TS80P pin map
#define KEY_B_Pin GPIO_PIN_0
#define KEY_B_GPIO_Port GPIOB
#define TMP36_INPUT_Pin GPIO_PIN_4
#define TMP36_INPUT_GPIO_Port GPIOA
#define TMP36_ADC1_CHANNEL ADC_CHANNEL_4
#define TIP_TEMP_Pin GPIO_PIN_3
#define TIP_TEMP_GPIO_Port GPIOA
#define TIP_TEMP_ADC1_CHANNEL ADC_CHANNEL_3
#define TIP_TEMP_ADC2_CHANNEL ADC_CHANNEL_3
#define VIN_Pin GPIO_PIN_2
#define VIN_GPIO_Port GPIOA
#define VIN_ADC1_CHANNEL ADC_CHANNEL_2
#define VIN_ADC2_CHANNEL ADC_CHANNEL_2
#define OLED_RESET_Pin GPIO_PIN_15
#define OLED_RESET_GPIO_Port GPIOA
#define KEY_A_Pin GPIO_PIN_1
#define KEY_A_GPIO_Port GPIOB
#define INT_Orientation_Pin GPIO_PIN_4
#define INT_Orientation_GPIO_Port GPIOB
#define PWM_Out_Pin GPIO_PIN_6
#define PWM_Out_GPIO_Port GPIOA
#define PWM_Out_CHANNEL TIM_CHANNEL_1
#define INT_Movement_Pin GPIO_PIN_5
#define INT_Movement_GPIO_Port GPIOB
#define SCL_Pin GPIO_PIN_6
#define SCL_GPIO_Port GPIOB
#define SDA_Pin GPIO_PIN_7
#define SDA_GPIO_Port GPIOB
#define SCL2_Pin GPIO_PIN_5
#define SCL2_GPIO_Port GPIOA
#define SDA2_Pin GPIO_PIN_1
#define SDA2_GPIO_Port GPIOA
#define INT_PD_Pin GPIO_PIN_9
#define INT_PD_GPIO_Port GPIOA
#endif
#endif /* BSP_MINIWARE_PINS_H_ */

View File

@@ -0,0 +1,36 @@
#include "BSP.h"
#include "BSP_Power.h"
#include "QC3.h"
#include "Settings.h"
#include "Pins.h"
#include "fusbpd.h"
#include "Model_Config.h"
#include "policy_engine.h"
#include "int_n.h"
bool FUSB302_present = false;
void power_check() {
#ifdef POW_PD
if (FUSB302_present) {
//Cant start QC until either PD works or fails
if (PolicyEngine::setupCompleteOrTimedOut() == false) {
return;
}
if (PolicyEngine::pdHasNegotiated()) {
return;
}
}
#endif
#ifdef POW_QC
QC_resync();
#endif
}
uint8_t usb_pd_detect() {
#ifdef POW_PD
FUSB302_present = fusb302_detect();
return FUSB302_present;
#endif
return false;
}

View File

@@ -0,0 +1,76 @@
/*
* QC.c
*
* Created on: 29 May 2020
* Author: Ralim
*/
#include "BSP.h"
#include "Pins.h"
#include "QC3.h"
#include "Settings.h"
#include "stm32f1xx_hal.h"
#include "Model_Config.h"
#ifdef POW_QC
void QC_DPlusZero_Six() {
HAL_GPIO_WritePin(GPIOB, GPIO_PIN_3, GPIO_PIN_RESET); // pull down D+
}
void QC_DNegZero_Six() {
HAL_GPIO_WritePin(GPIOA, GPIO_PIN_10, GPIO_PIN_SET);
HAL_GPIO_WritePin(GPIOA, GPIO_PIN_8, GPIO_PIN_RESET);
}
void QC_DPlusThree_Three() {
HAL_GPIO_WritePin(GPIOB, GPIO_PIN_3, GPIO_PIN_SET); // pull up D+
}
void QC_DNegThree_Three() {
HAL_GPIO_WritePin(GPIOA, GPIO_PIN_10, GPIO_PIN_SET);
HAL_GPIO_WritePin(GPIOA, GPIO_PIN_8, GPIO_PIN_SET);
}
void QC_DM_PullDown() {
GPIO_InitTypeDef GPIO_InitStruct;
GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_HIGH;
GPIO_InitStruct.Mode = GPIO_MODE_INPUT;
GPIO_InitStruct.Pull = GPIO_PULLDOWN;
GPIO_InitStruct.Pin = GPIO_PIN_11;
HAL_GPIO_Init(GPIOA, &GPIO_InitStruct);
}
void QC_DM_No_PullDown() {
GPIO_InitTypeDef GPIO_InitStruct;
GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_HIGH;
GPIO_InitStruct.Mode = GPIO_MODE_INPUT;
GPIO_InitStruct.Pull = GPIO_NOPULL;
GPIO_InitStruct.Pin = GPIO_PIN_11;
HAL_GPIO_Init(GPIOA, &GPIO_InitStruct);
}
void QC_Init_GPIO() {
// Setup any GPIO into the right states for QC
GPIO_InitTypeDef GPIO_InitStruct;
GPIO_InitStruct.Pin = GPIO_PIN_3;
GPIO_InitStruct.Mode = GPIO_MODE_OUTPUT_PP;
GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_HIGH;
HAL_GPIO_Init(GPIOB, &GPIO_InitStruct);
GPIO_InitStruct.Mode = GPIO_MODE_INPUT;
GPIO_InitStruct.Pull = GPIO_NOPULL;
GPIO_InitStruct.Pin = GPIO_PIN_8 | GPIO_PIN_10;
HAL_GPIO_Init(GPIOB, &GPIO_InitStruct);
// Turn off output mode on pins that we can
GPIO_InitStruct.Mode = GPIO_MODE_INPUT;
GPIO_InitStruct.Pull = GPIO_NOPULL;
GPIO_InitStruct.Pin = GPIO_PIN_11 | GPIO_PIN_12 | GPIO_PIN_14 | GPIO_PIN_13;
HAL_GPIO_Init(GPIOA, &GPIO_InitStruct);
}
void QC_Post_Probe_En() {
GPIO_InitTypeDef GPIO_InitStruct;
GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_HIGH;
GPIO_InitStruct.Pin = GPIO_PIN_8 | GPIO_PIN_10;
GPIO_InitStruct.Mode = GPIO_MODE_OUTPUT_PP;
HAL_GPIO_Init(GPIOA, &GPIO_InitStruct);
}
uint8_t QC_DM_PulledDown() { return HAL_GPIO_ReadPin(GPIOA, GPIO_PIN_11) == GPIO_PIN_RESET ? 1 : 0; }
#endif
void QC_resync() {
#ifdef POW_QC
seekQC((systemSettings.cutoutSetting) ? 120 : 90,
systemSettings.voltageDiv); // Run the QC seek again if we have drifted too much
#endif
}

View File

@@ -0,0 +1,12 @@
# BSP section for STM32F103 based Miniware products
This folder contains the hardware abstractions required for the TS100, TS80 and probably TS80P soldering irons.
## Main abstractions
* Hardware Init
* -> Should contain all bootstrap to bring the hardware up to an operating point
* -> Two functions are required, a pre and post FreeRToS call
* I2C read/write
* Set PWM for the tip
* Links between IRQ's on the system and the calls in the rest of the firmware

View File

@@ -5,6 +5,7 @@
* Author: Ben V. Brown
*/
#include "Setup.h"
#include "Pins.h"
ADC_HandleTypeDef hadc1;
ADC_HandleTypeDef hadc2;
DMA_HandleTypeDef hdma_adc1;
@@ -32,9 +33,9 @@ static void MX_ADC2_Init(void);
void Setup_HAL() {
SystemClock_Config();
#ifndef LOCAL_BUILD
__HAL_AFIO_REMAP_SWJ_DISABLE()
;
#ifndef SWD_ENABLE
__HAL_AFIO_REMAP_SWJ_DISABLE();
#else
__HAL_AFIO_REMAP_SWJ_NOJTAG();
#endif
@@ -49,8 +50,8 @@ void Setup_HAL() {
MX_IWDG_Init();
HAL_ADC_Start(&hadc2);
HAL_ADCEx_MultiModeStart_DMA(&hadc1, (uint32_t*) ADCReadings, 64); // start DMA of normal readings
HAL_ADCEx_InjectedStart(&hadc1); // enable injected readings
HAL_ADCEx_InjectedStart(&hadc2); // enable injected readings
HAL_ADCEx_InjectedStart(&hadc1); // enable injected readings
HAL_ADCEx_InjectedStart(&hadc2); // enable injected readings
}
// channel 0 -> temperature sensor, 1-> VIN
@@ -247,7 +248,7 @@ static void MX_IWDG_Init(void) {
hiwdg.Instance = IWDG;
hiwdg.Init.Prescaler = IWDG_PRESCALER_256;
hiwdg.Init.Reload = 100;
#ifndef LOCAL_BUILD
#ifndef SWD_ENABLE
HAL_IWDG_Init(&hiwdg);
#endif
}
@@ -336,7 +337,7 @@ static void MX_TIM2_Init(void) {
HAL_TIMEx_MasterConfigSynchronization(&htim2, &sMasterConfig);
sConfigOC.OCMode = TIM_OCMODE_PWM1;
sConfigOC.Pulse = 255 + 13;//13 -> Delay of 5ms
sConfigOC.Pulse = 255 + 13; //13 -> Delay of 5ms
//255 is the largest time period of the drive signal, and then offset ADC sample to be a bit delayed after this
/*
* It takes 4 milliseconds for output to be stable after PWM turns off.
@@ -428,8 +429,10 @@ static void MX_GPIO_Init(void) {
HAL_GPIO_Init(GPIOB, &GPIO_InitStruct);
#ifdef MODEL_TS100
/* Pull USB lines low to disable, pull down debug too*/
GPIO_InitStruct.Pin = GPIO_PIN_11 | GPIO_PIN_12 | GPIO_PIN_14 | GPIO_PIN_13;
#ifndef SWD_ENABLE
/* Pull USB and SWD lines low to prevent enumeration attempts and EMI affecting
* the debug core */
GPIO_InitStruct.Pin = GPIO_PIN_11 | GPIO_PIN_12 | GPIO_PIN_13 | GPIO_PIN_14;
GPIO_InitStruct.Mode = GPIO_MODE_OUTPUT_PP;
GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_HIGH;
HAL_GPIO_Init(GPIOA, &GPIO_InitStruct);
@@ -437,6 +440,12 @@ static void MX_GPIO_Init(void) {
HAL_GPIO_WritePin(GPIOA, GPIO_PIN_12, GPIO_PIN_RESET);
HAL_GPIO_WritePin(GPIOA, GPIO_PIN_13, GPIO_PIN_RESET);
HAL_GPIO_WritePin(GPIOA, GPIO_PIN_14, GPIO_PIN_RESET);
#else
/* Make all lines affecting SWD floating to allow debugging */
GPIO_InitStruct.Pin = GPIO_PIN_11 | GPIO_PIN_12 | GPIO_PIN_14 | GPIO_PIN_13;
GPIO_InitStruct.Mode = GPIO_MODE_INPUT;
HAL_GPIO_Init(GPIOA, &GPIO_InitStruct);
#endif
#else
/* TS80 */
/* Leave USB lines open circuit*/
@@ -461,3 +470,8 @@ static void MX_GPIO_Init(void) {
HAL_Delay(30);
HAL_GPIO_WritePin(OLED_RESET_GPIO_Port, OLED_RESET_Pin, GPIO_PIN_SET);
}
#ifdef USE_FULL_ASSERT
void assert_failed(uint8_t* file, uint32_t line){
asm("bkpt");
}
#endif

View File

@@ -1,38 +1,38 @@
/*
* Setup.h
*
* Created on: 29Aug.,2017
* Author: Ben V. Brown
*/
#ifndef SETUP_H_
#define SETUP_H_
#ifdef __cplusplus
extern "C" {
#endif
#include <hardware.h>
#include "stm32f1xx_hal.h"
extern ADC_HandleTypeDef hadc1;
extern ADC_HandleTypeDef hadc2;
extern DMA_HandleTypeDef hdma_adc1;
extern DMA_HandleTypeDef hdma_i2c1_rx;
extern DMA_HandleTypeDef hdma_i2c1_tx;
extern I2C_HandleTypeDef hi2c1;
extern IWDG_HandleTypeDef hiwdg;
extern TIM_HandleTypeDef htim2;
extern TIM_HandleTypeDef htim3;
void Setup_HAL();
uint16_t getADC(uint8_t channel);
void HAL_TIM_MspPostInit(TIM_HandleTypeDef* htim); //Since the hal header file does not define this one
#ifdef __cplusplus
}
#endif
#endif /* SETUP_H_ */
/*
* Setup.h
*
* Created on: 29Aug.,2017
* Author: Ben V. Brown
*/
#ifndef SETUP_H_
#define SETUP_H_
#ifdef __cplusplus
extern "C" {
#endif
#include "stm32f1xx_hal.h"
extern ADC_HandleTypeDef hadc1;
extern ADC_HandleTypeDef hadc2;
extern DMA_HandleTypeDef hdma_adc1;
extern DMA_HandleTypeDef hdma_i2c1_rx;
extern DMA_HandleTypeDef hdma_i2c1_tx;
extern I2C_HandleTypeDef hi2c1;
extern IWDG_HandleTypeDef hiwdg;
extern TIM_HandleTypeDef htim2;
extern TIM_HandleTypeDef htim3;
void Setup_HAL();
uint16_t getADC(uint8_t channel);
void HAL_TIM_MspPostInit(TIM_HandleTypeDef *htim); //Since the hal header file does not define this one
#ifdef __cplusplus
}
#endif
#endif /* SETUP_H_ */

View File

@@ -0,0 +1,27 @@
/*
* Software_I2C.h
*
* Created on: 25 Jul 2020
* Author: Ralim
*/
#ifndef BSP_MINIWARE_SOFTWARE_I2C_H_
#define BSP_MINIWARE_SOFTWARE_I2C_H_
#include "Model_Config.h"
#include "BSP.h"
#include "stm32f1xx_hal.h"
#ifdef I2C_SOFT
#define SOFT_SCL_HIGH() HAL_GPIO_WritePin(SCL2_GPIO_Port, SCL2_Pin, GPIO_PIN_SET)
#define SOFT_SCL_LOW() HAL_GPIO_WritePin(SCL2_GPIO_Port, SCL2_Pin, GPIO_PIN_RESET)
#define SOFT_SDA_HIGH() HAL_GPIO_WritePin(SDA2_GPIO_Port, SDA2_Pin, GPIO_PIN_SET)
#define SOFT_SDA_LOW() HAL_GPIO_WritePin(SDA2_GPIO_Port, SDA2_Pin, GPIO_PIN_RESET)
#define SOFT_SDA_READ() (HAL_GPIO_ReadPin(SDA2_GPIO_Port,SDA2_Pin)==GPIO_PIN_SET?1:0)
#define SOFT_SCL_READ() (HAL_GPIO_ReadPin(SCL2_GPIO_Port,SCL2_Pin)==GPIO_PIN_SET?1:0)
#define SOFT_I2C_DELAY() {for(int xx=0;xx<40;xx++){asm("nop");}}
#endif
#endif /* BSP_MINIWARE_SOFTWARE_I2C_H_ */

View File

@@ -291,7 +291,7 @@ typedef struct
/** @defgroup RCC_Flag Flags
* Elements values convention: XXXYYYYYb
* - YYYYY : Flag position in the register
* - XXX : Register index
* - X XX : Register index
* - 001: CR register
* - 010: BDCR register
* - 011: CSR register

View File

@@ -1041,32 +1041,32 @@ HAL_StatusTypeDef HAL_ADCEx_InjectedConfigChannel(ADC_HandleTypeDef* hadc, ADC_I
/* conversions is forced to 0x00 for alignment over all STM32 devices. */
/* - if scan mode is enabled, injected channels sequence length is set to */
/* parameter "InjectedNbrOfConversion". */
if (hadc->Init.ScanConvMode == ADC_SCAN_DISABLE)
{
if (sConfigInjected->InjectedRank == ADC_INJECTED_RANK_1)
{
/* Clear the old SQx bits for all injected ranks */
MODIFY_REG(hadc->Instance->JSQR ,
ADC_JSQR_JL |
ADC_JSQR_JSQ4 |
ADC_JSQR_JSQ3 |
ADC_JSQR_JSQ2 |
ADC_JSQR_JSQ1 ,
ADC_JSQR_RK_JL(sConfigInjected->InjectedChannel,
ADC_INJECTED_RANK_1,
0x01U));
}
/* If another injected rank than rank1 was intended to be set, and could */
/* not due to ScanConvMode disabled, error is reported. */
else
{
/* Update ADC state machine to error */
SET_BIT(hadc->State, HAL_ADC_STATE_ERROR_CONFIG);
tmp_hal_status = HAL_ERROR;
}
}
else
// if (hadc->Init.ScanConvMode == ADC_SCAN_DISABLE)
// {
// if (sConfigInjected->InjectedRank == ADC_INJECTED_RANK_1)
// {
// /* Clear the old SQx bits for all injected ranks */
// MODIFY_REG(hadc->Instance->JSQR ,
// ADC_JSQR_JL |
// ADC_JSQR_JSQ4 |
// ADC_JSQR_JSQ3 |
// ADC_JSQR_JSQ2 |
// ADC_JSQR_JSQ1 ,
// ADC_JSQR_RK_JL(sConfigInjected->InjectedChannel,
// ADC_INJECTED_RANK_1,
// 0x01U));
// }
// /* If another injected rank than rank1 was intended to be set, and could */
// /* not due to ScanConvMode disabled, error is reported. */
// else
// {
// /* Update ADC state machine to error */
// SET_BIT(hadc->State, HAL_ADC_STATE_ERROR_CONFIG);
//
// tmp_hal_status = HAL_ERROR;
// }
// }
// else
{
/* Since injected channels rank conv. order depends on total number of */
/* injected conversions, selected rank must be below or equal to total */

View File

@@ -3479,6 +3479,7 @@ void HAL_I2C_EV_IRQHandler(I2C_HandleTypeDef *hi2c)
}
}
/* Slave mode selected */
#if 0
else
{
/* ADDR set --------------------------------------------------------------*/
@@ -3520,6 +3521,7 @@ void HAL_I2C_EV_IRQHandler(I2C_HandleTypeDef *hi2c)
}
}
}
#endif
}
/**

Some files were not shown because too many files have changed in this diff Show More