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
Ben V. Brown
5205dc2361
Dont mark usb comms supported
2021-04-25 17:06:27 +10:00
Ben V. Brown
b161192691
Merge branch 'master' into messing_with_pd
2021-04-17 10:53:58 +10: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
001d91988c
Fix formatting
2021-04-12 20:45:26 +08:00
Alvin Wong
11f40cfc1b
Reformat lzfx sources
2021-04-12 20:07:06 +08:00
Alvin Wong
07fb8adb7f
Impl. initial translation strings compression
2021-04-12 19:57:29 +08:00
Ben V. Brown
3e7dd3b150
Merge branch 'master' into messing_with_pd
2021-04-10 11:40:31 +10:00
Alvin Wong
880920da96
Change TranslationStrings to pointer
2021-04-09 22:22:19 +08:00
Alvin Wong
7d6d7d11c0
Put translation str indices into a struct
2021-04-09 17:20:24 +08:00
Alvin Wong
82620c685d
Change translation strs to be stored in one block
2021-04-09 14:45:33 +08:00
Alvin Wong
09a58f6f48
Use settings desc by indexing instead of direct pointer
2021-04-09 03:01:14 +08:00
Alvin Wong
4810a67e2e
Remove unused translation strings
2021-04-09 00:46:10 +08:00
Ben V. Brown
4ee91d45fe
Cleanup duplicate code
2021-04-08 21:54:10 +10:00
Ben V. Brown
22c5f6d361
Cleanup FUSB setup
2021-04-08 21:20:25 +10:00
Ben V. Brown
d56332d06b
Merge branch 'master' into messing_with_pd
2021-04-05 20:01:40 +10:00
Alvin Wong
ab1b48a0f2
Change ResetOKMessage to use warnUser
2021-04-05 16:40:36 +08:00
Alvin Wong
33901b688a
Change warnUser to use printWholeScreen
2021-04-05 16:40:36 +08:00
Alvin Wong
e01361ddde
Add messageWarn translation definition type
2021-04-05 16:40:31 +08:00
Alvin Wong
53c02dca33
Refactor printing CJK menu with large font into OLED.cpp
2021-04-05 15:48:12 +08:00
Alvin Wong
55fa5c95e4
Change SettingsShortNames to use one string
...
This unifies its behaviour with SettingsMenuEntries.
2021-04-05 15:48:06 +08:00
Alvin Wong
12f98e5f9c
Remove unnecessary array sizes
2021-04-05 15:41:10 +08:00
Ben V. Brown
59a9dce7ec
Update IRQ.cpp
2021-04-05 16:29:17 +10:00
Ben V. Brown
0b02275192
Cleanup message rx event to inline, re-enable non PPS
2021-04-05 16:22:17 +10:00
Ben V. Brown
fb24ba1866
Collapse rx into irq
2021-04-05 15:57:31 +10:00
Ben V. Brown
f12ed98991
Cache FUSB polls
2021-04-05 15:53:29 +10:00
Ben V. Brown
6b67137420
Update int_n.cpp
2021-04-05 15:53:10 +10:00
Ben V. Brown
489f3818bf
Update protocol_tx.cpp
2021-04-05 15:53:03 +10:00
Ben V. Brown
b682f6cd70
Simplify rx
2021-04-05 15:52:54 +10:00
Ben V. Brown
af818537f5
Unused event
2021-04-05 15:38:22 +10:00
Ben V. Brown
69b878b1c8
Organise main tasks into order of priority
2021-04-05 15:05:23 +10:00
Ben V. Brown
854189d720
Add manual irq line check for the int task for PD
2021-04-05 15:05:12 +10:00
Ben V. Brown
16ac45d74a
Update POWThread.cpp
2021-04-05 15:04:59 +10:00
Ben V. Brown
b3c3e4e384
Spawn PD earlier
2021-04-05 14:37:50 +10:00
Ben V. Brown
fc08dc42fa
Auto notify tx
2021-04-05 14:12:44 +10:00
Ben V. Brown
b1ef035d07
Cleanup RX
2021-04-05 13:22:08 +10:00
Ben V. Brown
eee1d93806
Update policy_engine_user.cpp
2021-04-05 13:22:01 +10:00
Ben V. Brown
f8e9c3b0d4
Update policy_engine.h
2021-04-05 13:21:55 +10:00
Ben V. Brown
2332b4e835
Cleanup QC3 delays
2021-04-05 13:19:15 +10:00
Ben V. Brown
d7e7469d3d
Update POWThread.cpp
2021-04-05 13:09:11 +10:00
Ben V. Brown
4616093a47
Using enum for PE events
2021-04-05 12:06:21 +10:00
Ben V. Brown
d8f2aff402
Update policy_engine.cpp
2021-04-05 11:58:01 +10:00
Ben V. Brown
f7b7915be4
Update policy_engine.cpp
2021-04-05 11:57:58 +10:00
Ben V. Brown
fac2dfd712
Update policy_engine.cpp
2021-04-05 11:57:44 +10:00
Ben V. Brown
bb678d7b97
hard->soft
2021-04-05 11:57:28 +10:00
Ben V. Brown
460fe24bc0
Start PPS timer once
2021-04-05 11:57:02 +10:00
Ben V. Brown
87251573ee
Update policy_engine.h
2021-04-05 11:56:52 +10:00
Ben V. Brown
96cf92f9f7
Update policy_engine_user.cpp
2021-04-05 11:56:46 +10:00
Ben V. Brown
93ed4c9887
No need for ams marker
2021-04-05 11:56:38 +10:00
Ben V. Brown
14e272540d
Timings in ticks
2021-04-05 11:56:27 +10:00