1
0
forked from me/IronOS
Commit Graph

72 Commits

Author SHA1 Message Date
Ivan Zorin
cd7696b66f Suggestion to update BUILD_VERSION policy (#1733)
* version.h: update BUILD_VERSION policy / PoC

* Fix misplaced chars

* make_translation.py: implement get_version_suffix() function to extend BUILD_VERSION build type legend data

* version.h: update version policy info according to implementation of get_version_suffix() function in make_translation.py

* Version policy update: add double-check for release tag so if version doesn't match use another letter T

* make_translation.py: fix extra tabulation

* version.h: tiny tidy update for version format

* Documentation/DebugMenu.md: update info on version line & date

* Documentation/DebugMenu.md: fix formatting & mistypes

---------

Co-authored-by: discip <53649486+discip@users.noreply.github.com>
2023-07-10 09:58:24 +10:00
Ben V. Brown
d3d8e3d2d5 TS101 (#1695)
* Refactor I2C_SOFT to new #define

* Stitch in some of TS101

Update ShowStartupWarnings.cpp

Update OLED.hpp

Update stm32f1xx_hal_msp.c

Update Setup.cpp

Update Power.cpp

Update Pins.h

Update configuration.h

Power Muxing

Working dual input Voltage handler

Scan mode required for differing injected channels

Inject both dc readings

Update configuration.h

Update configuration.h

Use htim4 for adc control on TS101

Refactor htim names

Add ADC_TRIGGER

Speed up BB I2C a lil

Update configuration.h

Update startup_stm32f103t8ux.S

Update configuration.h

Add LIS2DH clone

LIS2DH gains another clone

Create tooling to allow mapping accelerometers onto different buses

Update startup_stm32f103t8ux.S

Ensure PD IRQ is pulled up

* Stitch in some of TS101

Update ShowStartupWarnings.cpp

Update OLED.hpp

Update stm32f1xx_hal_msp.c

Update Setup.cpp

Update Power.cpp

Update Pins.h

Update configuration.h

Power Muxing

Working dual input Voltage handler

Scan mode required for differing injected channels

Inject both dc readings

Update configuration.h

Update configuration.h

Use htim4 for adc control on TS101

Refactor htim names

Add ADC_TRIGGER

Speed up BB I2C a lil

Update configuration.h

Update startup_stm32f103t8ux.S

Update configuration.h

Add LIS2DH clone

LIS2DH gains another clone

Create tooling to allow mapping accelerometers onto different buses

Update startup_stm32f103t8ux.S

Ensure PD IRQ is pulled up

Allow toggle which button enters PD debug

* Update Pins.h

* Fix hard coded IRQ Pin

Update stm32f1xx_it.c

* Enable EPR

* Tip resistance measurement

* TS101 is a direct drive tip

Update BSP.cpp

* Add S60 and TS101 to builds

Update push.yml

* Update MOVThread.cpp

* Refactor power menu handler

* Correct prescaler

Forgot to update since I changed the period

* Tune in the timer divider for tip control to make PWM less audible

---------

Co-authored-by: discip <53649486+discip@users.noreply.github.com>
2023-06-18 21:58:20 +10:00
Ivan Zorin
a1b9e40f67 Show power source type on detailed screen in soldering mode (#1708) (#1709)
* Show power source type on detailed screen in soldering mode (#1708)

* Update according to code review
2023-06-18 21:38:26 +10:00
Ben V. Brown
286afad919 S60 Support (#1692)
* Mock S60

* cleanup

* Start refactor of OLED init

* Setup timers roughly

* Set Vector table offset correctly

Update system_stm32f1xx.c

* Update OLED.cpp

* Update stm32f1xx_hal_msp.c

* Update configuration.h

* I2C init before GPIO

From Errata

Update stm32f1xx_hal_msp.c

Update Software_I2C.h

Allow no hardware I2C

* I2C BB run bus unlock at init

* cleanups

* Software I2C for now

* Mildly more graceful Interpolate

* Handle is powered by DC

Update Power.cpp

Update drawPowerSourceIcon.cpp

Update configuration.h

Update Setup.cpp

* Cleanup HomeScreen

* Segment remap oled at init

* Cleanup

* Update MOVThread.cpp

* Fix PWM Init

* Fix adc2 trigger

* Update configs

* Fixup warning

* Saner default config

* Update ThermoModel.cpp

* Util for current@voltage

* Hub238 warning

* Add hub238 handling in power mode

* Update USBPDDebug_FUSB.cpp

* HUSB238 debug

* Hook PSU Limit

* Use wrapping section of GRAM for scroll

Update OLED.hpp

* Update NTC table

* Fix HUB voltage picker

* Cleanup

* Larger tip filter

* Calibrate in a bunch closer

Update ThermoModel.cpp

* Update configuration.h

* Update HUB238.cpp

* Update configuration.h

* Movement Pin

* Update BSP.cpp

* tim2 irq

* Rough timer conversion (adc broken) but movement working

* Fix tim2 start

* Faster base PWM

* Ensure utils grabs config

* Add wattage limiter tolerance for device

* Speed up PWM and enable PWM current limiting

* tune for 12v

* Prevent start until PD done

* Update configuration.h

* Add HUB238 check for have re-negotiated

* Adjust timer to avoid noise when its possible
2023-06-03 20:05:31 +10:00
Laura Klünder
5fcdda16f6 filter translation strings and only include the ones needed 2023-04-25 11:56:52 +02:00
Laura Klünder
cb2e8af700 full profile support 2023-04-23 23:48:24 +02:00
Ben V. Brown
f9ce1ef046 Fix stupid typo 2023-01-22 22:01:08 +11:00
Ben V. Brown
e9cf66734f Update make_translation.py 2022-12-07 18:42:42 +11:00
Ben V. Brown
6abdc70c99 Update make_translation.py 2022-12-07 18:30:20 +11:00
Ben V. Brown
98cbce6552 Format 2022-12-05 22:29:10 +11:00
Ben V. Brown
e9a28c3671 Unify more of the font generation logic between both paths and coalesce all fonts 2022-12-05 22:26:03 +11:00
Ben V. Brown
2a6dd45d56 Bugfix: Correct binning of symbols 2022-12-05 22:26:03 +11:00
Ben V. Brown
fdc31467aa Use size encoded symbols
Update make_translation.py
2022-12-05 22:26:03 +11:00
Ben V. Brown
fa42f0aa61 Mild progress on refactoring 2022-12-04 20:49:45 +11:00
Ben V. Brown
ab12fbaf71 Always big text for description 2022-12-04 15:15:52 +11:00
Ben V. Brown
73b4119d49 Refactor text lists 2022-12-04 15:14:21 +11:00
Ben V. Brown
0c1e3a1b75 Reworking to simplified layout for translations 2022-12-03 23:23:43 +11:00
Ben V. Brown
6c7243edd6 New translations definitions 2022-12-03 21:18:48 +11:00
Ben V. Brown
97651f07d7 Drop font selection toggle requirement 2022-12-03 19:16:53 +11:00
discip
c89db78b45 Calibrate CJC at next boot (#1398)
Changes Cold Junction Compensation (Tip Offset / CJC) to be performed during bootup time. (After starting in settings)
2022-09-10 20:52:57 +10:00
dmitrygribenchuk
566a7eebd6 Removed unused libraries (#1404)
* removed unused libraries

* removed unused libraries
2022-09-03 09:02:03 +10:00
River B
904428ee19 Updated documents, fixed English Translation (#1400)
* Update translations_def.js

* Update translation_EN.json

* Update translation_EN.json

* Update translation_EN.json

* Update translation_EN.json

* Update translation_EN.json

* Update translation_EN.json

* Update translation_EN.json

* Update translation_EN.json

* Update translation_EN.json

* Update DebugMenu.md

* Update DebugMenu.md

* Update Development.md

* Update Flashing.md

* Update GettingStarted.md

* Update GettingStarted.md

* Update GettingStarted.md

* Update HallSensor.md

* Update HallSensor.md

* Update HallSensor.md

* Update HallSensor.md

* Update HallSensor.md

* Update HallSensor.md

* Update HardwareIssues.md

* Update HardwareIssues.md

* Update HardwareIssues.md

* Update HardwareIssues.md

* Update HardwareIssues.md

* Update Logo.md

* Update Menu.md

* Update Menu.md

* Update Menu.md

* Update Menu.md

* Update Menu.md

* Update Power.md

* Update Power.md

* Update Power.md

* Update Power.md

* Update Power.md

* Update Power.md

* Update Power.md

* Update Power.md

* Update Power.md

* Update Power.md

* Update Power.md

* Update Power.md

* Update Power.md

* Update Power.md

* Update Power.md

* Update Power.md

* Update Power.md

* Update Power.md

* Update Power.md

* Update Settings.md

* Update Settings.md

* Update Settings.md

* Update translation_EN.json

* Update Settings.md

* Update Settings.md

* Update Settings.md

* Update Settings.md

* Update Settings.md

* Update DebugMenu.md

* Update DebugMenu.md

* Update README.md

* Update translation_FR.json

* Update README.md

* Update Power.md

* Update Troubleshooting.md

* Update Troubleshooting.md

* Update Troubleshooting.md

* Update HardwareIssues.md

* Update DebugMenu.md

* Update DebugMenu.md

* Update Power.md

* Update Power.md

* Update Power.md

* Update Menu.md

* Update Power.md

* Update Documentation/Settings.md

Co-authored-by: discip <53649486+discip@users.noreply.github.com>

* Update Translations/translation_EN.json

Co-authored-by: discip <53649486+discip@users.noreply.github.com>

* Update translation_EN.json

* Update Documentation/Settings.md

Co-authored-by: discip <53649486+discip@users.noreply.github.com>

* Update translation_EN.json

* Update Documentation/Settings.md

Co-authored-by: discip <53649486+discip@users.noreply.github.com>

* Update Settings.md

* Update translation_EN.json

* Update Documentation/Settings.md

Co-authored-by: discip <53649486+discip@users.noreply.github.com>

* Update translation_EN.json

* Update translation_EN.json

* Update translation_EN.json

* Update translation_EN.json

* Add files via upload

* Update translation_EN.json

* Update Settings.md

* Add files via upload

* Update Settings.md

* Update Settings.md

* Update Settings.md

* Add files via upload

* Delete translation_EN.json

* Add files via upload

* Update Power.md

* Update Power.md

* Add files via upload

* Update Settings.md

* Add files via upload

* handle font with no symbols to contribute

* Format

* Generate settings.md menu dock

Co-authored-by: discip <53649486+discip@users.noreply.github.com>
Co-authored-by: Ben V. Brown <Ralim@Ralimtek.com>
2022-09-01 21:14:39 +10:00
discip
b5323d9c77 reorder debug menu . . . (#1380)
* Update DebugMenu.md

* Update make_translation.py

* Update GUIThread.cpp

* Update DebugMenu.md
2022-08-25 09:17:15 +10:00
Ben V. Brown
1fbcdcdf98 Pinecil V2 (#1341)
* Add SDK

* fork

* massaging makefile

* Drop git module

* Bring in sdk as its broken

Far, Far to much crap to fix with regex now

* Remove bl706

* rf_para_flash_t is missing defs

* Remove crapton of junk

* Remove yet more

* Poking I2C

* Update peripheral_config.h

* Update pinmux_config.h

* Update preRTOS.cpp

* Update main.hpp

* Setup template

* Verbose boot

* I2C ish

* Update I2C_Wrapper.cpp

* Update main.cpp

* Turn off I2C reading for now

* Display running

* Roughing out scheduling timer0

* Starting ADC setup

* Working scheduling of ADC 🎉

* Format adc headers

* Update IRQ.cpp

* Buttons working

* Slow down I2C

* Poking IRQ

* Larger stack required

* Accel on

* Trying to chase down why __libc_init_array isnt working yet

* Working c++

* Cleanup

* Bump stacks

* I2C wake part workaround

* Cleanup

* Working PWM init

* qc draft

* Hookup PWM

* Stable enough ADC

* ADC timing faster + timer without HAL

* Silence

* Remove boot banner

* Tuning in ADC

* Wake PID after ADC

* Remove unused hal

* Draft flash settings

* Working settings save & restore

* Update to prod model

* Cleanup

* NTC thermistor

* Correct adc gain

* Rough tip resistance progress

* Scratch out resistance awareness of the tip

* better adc settings

* Tweaking ADC

* ADC tweaking

* Make adc range scalable

* Update Dockerfile

* Update configuration.h

* Can read same ADC twice in a row

* ADC Setup

* Update PIDThread.cpp

* Lesser adc backoff

* Update USBPD.h

* Add device ID

* Update BSP_Power.h

* Update BSP.cpp

* DrawHex dynamicLength

* Shorter ID padding

* Show validation code

* tip measurement

* Create access for w0w1

* Expose w0 w1

* Enable debug

* crc32

* Device validation

* wip starting epr

* Logic refactor

* Safer PWM Init

* PD cleanups

* Update bl702_pwm.c

* Update power.cpp

* Update usb-pd

* io

* EPR decode

* Better gui for showing pd specs

* Rough handler for capabilities

* EPR

* Fix > 25V input

* Perform pow step after PPS

* Update BSP.cpp

* Fix timer output

* QC3

* Add tip resistance view

* Hold PD negotiation until detection is done for tip res

* Get Thermal mass

* Tip res =0 protection

* Update PIDThread.cpp

* Update GUIThread.cpp

* Rewrite tip resistance measurement

* Update GUIThread.cpp

* Fix fallback

* Far better tip resistance measurement

* Fix QC 0.6V D-

* Convert the interpolator to int32

* Correct the NTC lookup

* Update BSP.cpp

* Update Setup.cpp

* .

Update configuration #defines

More backported functions

* Update usb-pd

* More missed updates

* Refactor BSP

Magic BSP -> PinecilV2
Pine64 BSP -> Pinecil

Update Makefile

* Add Pinecilv2 to CI

* Pinecil v2 multi-lang

Update push.yml

* Update HallSensor.md

* Update README.md

* Fix wrong prestartcheck default

* Fix logo mapping

* Update Makefile

* Remove unused font block

* Style

* Style

* Remove unused timer funcs

* More culling TS80P

* Revert "More culling TS80P"

This reverts commit 2078b89be7.

* Revert "Remove unused timer funcs"

This reverts commit 0c693a89cc.

* Make VBus check maskable

* Remove DMA half transfer

* Drop using brightness and invert icons and go back to text

Saves flash space

* Refactor settings UI drawing descriptions

* Shorten setting function names

* Store bin file assets

* Fix MHP prestart
2022-08-19 15:39:37 +10:00
Ben V. Brown
078b8f5626 DeviceID (#1314)
* Ability to print hex

* Add device ID getter

* Refactor debug menu

* No longer need patch

* Update make_translation.py

* Fix typo

* Fix hex drawing
2022-06-16 21:39:53 +10:00
Federico Di Lorenzo
943d6bf0bd Symbols change (#1274)
* Costants change

Changing to lowercase for two reasons:
- Disambiguation with LiPos options
- In the SI the symbol for seconds is s (while for minutes is min but doesn't really matter)

* Update translation_BE.json

* Update translation_BG.json

* Update translation_CS.json

* Update translation_DA.json

* Update translation_DE.json

* Update translation_EL.json

* Update translation_EN.json

* Update translation_ES.json

* Update translation_FI.json

* Update translation_FR.json

* Update translation_HR.json

* Update translation_HU.json

* Update translation_IT.json

* Update translation_JA_JP.json

* Update translation_LT.json

* Update translation_NL.json

* Update translation_NL_BE.json

* Update translation_NO.json

* Update translation_PL.json

* Update translation_PT.json

* Update translation_RO.json

* Update translation_RU.json

* Update translation_SK.json

* Update translation_SL.json

* Update translation_SR_CYRL.json

* Update translation_SR_LATN.json

* Update translation_SV.json

* Update translation_TR.json

* Update translation_UK.json

* Update translation_VI.json

* Update translation_YUE_HK.json

* Update translation_ZH_CN.json

* Update translation_ZH_TW.json
2022-04-03 20:04:59 +10:00
Ben V. Brown
a73f634cff Pinecil pd tweaking (#1272)
* Raise PD max to 21V

* gui -> settingsGUI

* VBus probe cache

* Rough pass PD capabilities display

* Cleanup build errors

* PD Debug menu working

* Update make_translation.py

* settingsGUI

* Update GUIThread.cpp

* Nicer debug prints

* Show VBus in PD debug

* Update GUIThread.cpp

* Update make_translation.py

* Add docs

* Build tweaks for TS80P 😢

* Show PPS ranges
2022-04-03 12:58:07 +10:00
Ben V. Brown
fb297704b3 Update make_translation.py 2022-02-06 14:45:40 +11:00
Ben V. Brown
a3cecb852c Update make_translation.py 2022-02-06 12:33:22 +11:00
Christian Rahl
05f38b096c Add new debug menu item to view raw hall effect sensor output. 2022-01-22 19:33:24 -05:00
Devnol
ac769c109a Fix some half height glyphs
Signed-off-by: Devnol <pgkoutsoumanis@gmail.com>
2021-11-20 18:58:58 +02:00
Ben V. Brown
73b6ca28f2 Generate power names 2021-09-26 07:58:19 +10:00
Ben V. Brown
c2593763a0 Expand Names 2021-09-25 10:43:09 +10:00
Ben V. Brown
7dad28a41e Expand python code to auto-generate the array of names 2021-09-25 10:38:09 +10:00
discip
69d8d14e0c Update make_translation.py 2021-09-25 00:25:43 +02:00
Ben V. Brown
f6382cf7cb Building multi-lang 2021-09-12 14:50:39 +10:00
Ben V. Brown
17e82105b1 Give all languages a unique ID 2021-09-12 14:47:44 +10:00
alvinhochun
1a0b542ae6 [RFC] Multi-language firmware (second try) (#941)
* Impl. sectioned font table in firmware

* make_translation.py: Extract build_symbol_conversion_table function

* Put translation indices and strings in a struct

* Move translation objcopy step to Python

* Impl. multi-language firmware demo

* Impl. strings-compressed multi-lang firmware demo

* Add font compression to multi-lang demo

* Refactor Makefile a bit

* Fix rules for make < 4.3

* Add more multi-lang groups

* Add Pinecil multi-lang CI build

* Add lzfx compression license text

* Remote multi-language demo group

* Fix build after merge

* Import code from BriefLZ

* Change brieflz for our use case

* Change compression to use brieflz

* Remove lzfx code

* Update license file for brieflz

* Exclude brieflz files from format check

* Add BriefLZ test
2021-04-30 18:51:13 +10:00
Alvin Wong
fadb25273e Impl. font compression demo 2021-04-17 05:18:19 +08:00
Alvin Wong
6f4f4d9733 Move string compression to Python
... so that the script can know its uncompressed size and calculate the
appropriate buffer size.
2021-04-16 17:55:30 +08:00
Alvin Wong
cf154114d7 Change translation defs to specify fonts to use 2021-04-15 14:32:09 +08:00
Alvin Wong
e601b762b0 Change font table in Python to use bytes literals 2021-04-15 14:32:09 +08:00
Alvin Wong
460d48fafb Reduce code duplication 2021-04-13 18:30:27 +08:00
Alvin Wong
07fb8adb7f Impl. initial translation strings compression 2021-04-12 19:57:29 +08:00
Alvin Wong
2f2575c0b7 Refactor make_translation.py to split parsing and writing 2021-04-12 17:20:19 +08:00
Alvin Wong
570fa16d44 Some refactoring of make_translation.py 2021-04-11 00:05:06 +08:00
Alvin Wong
d53245f8a3 Simplify some Python code 2021-04-10 19:40:33 +08:00
Alvin Wong
f86629657a Fix python type hints
(Checked using mypy)
2021-04-10 02:24:25 +08:00
Alvin Wong
b17e49f54f Do suffix merging for translations
The size savings are very negligible but I implemented it anyway.
2021-04-10 00:44:48 +08:00
Alvin Wong
4061a35b6f Refactor make_translation bytes escaping
- Change font table to store bytes instead of escape sequences
- Add function to convert bytes to escape sequences
- Update tests
2021-04-09 23:04:38 +08:00