Commit Graph

44 Commits

Author SHA1 Message Date
Ben V. Brown
12e8e01ca7 Update Makefile 2022-01-08 12:28:55 +11:00
Ben V. Brown
18c376deff Cleanup Makefile 2022-01-08 12:25:08 +11:00
Ben V. Brown
d712f6875b Update Makefile 2022-01-07 21:28:25 +11:00
Ben V. Brown
15d4da9b81 Update Makefile 2022-01-07 08:38:27 +11:00
Ben V. Brown
93de082b06 Make patch specs to not use nano math
Since Alpine isnt shipping it
2022-01-06 23:51:32 +11:00
Ben V. Brown
b6d2846ead test 2022-01-06 18:58:58 +11:00
Alex Liu
8bb26eb39c Enable custom language combinations at build time
Added a parameter to allow custom language combinations to be selected at build time.
2021-11-27 03:38:36 -08:00
Ben V. Brown
3594604efc Fixes for I2C on Pinecil + USB-PD stack (#1099)
* Remove unused includes

* Adding in submodule

* Move fusb functions to the BSP

* Remove old code

* Creating IronOS PD integration wrapper

* Redirect to wrapper

* pd lib updates

* fix Docker build

* Finish linking across

* Cleanup

* Update Makefile

* Update push.yml

* Update push.yml

* PD -> Compensate for different tick rates

* Update codeql-analysis.yml

* Fix PD #define for @Firebie

* Check irq low at start

* Update BSP.h

* Update main.cpp

* Closer delay

* Update OLED.cpp

* Bugfix trying to start QC too early

* Missing fusb shouldnt hang qc

* Update FreeRTOSConfig.h

* Update the GD drivers

* Update Pinecil IRQ setup

* Redirect printf() to uart

* Update Power.cpp

* Adding extras to PD state

* Update USBPD.cpp

* Delay in printf

* Iterate once before delay on start

* Update usb-pd

* master usb-pd now

* Format gd libs

* Update gd32vf103_bkp.c

* Guard with PD timeout

* Remove CodeQL

* Slow for testing, fix runt pulses at start

* Fix runt pulse in read size 1

* Cleaner probing setup

* Testing delay during stop gen in read 1

* Update I2C driver

* Update gd32vf103_i2c.c

* Cleaning up i2c wrapper a little, given up on dma for rx

* Update preRTOS.cpp

* Update Setup.cpp

* Update MOVThread.cpp

* Slow down UART to work with new clock config

* Better ack setup for 2 byte read

* Cleanup POW_PD so cant be lost in #includes

* tipResistance -> TIP_RESISTANCE

* handle NOP race on len==2

* Update configuration.h

* Dont use neg timeout to mask anymore

* Not required for MHP

* Fix up source display Miniware

* Fix race on PD init

* Update POWThread.cpp

* Update formatting

* MHP format

* Update push.yml

* Faster TS80P I2C

* Bugfix for IRQ handlers

* Correctly handle I2C race on PD access

* Fix CI error (unused var) and MHP IRQ

* Test Pinecil alt ADC mode
2021-10-02 14:48:58 +10:00
Ben V. Brown
e0ccc695bb Fix VID/PID for dapboot 2021-09-25 11:37:16 +10:00
Ben V. Brown
113a9c6250 Add dfu file step 2021-09-24 13:16:17 +10:00
Ben V. Brown
af0adb0708 Reworking raw adc, handle temp done
Pre seed adc values

Pinecil port

Update PIDThread.cpp

TRGO is more stable for timing (buffered)?
2021-09-11 22:25:57 +10:00
Ben V. Brown
4ef082d228 Update Makefile 2021-05-21 20:26:57 +10:00
Ben V. Brown
062a4f78fd Update Makefile 2021-05-21 20:24:29 +10:00
Ben V. Brown
5f7d9dd042 Print formatting error 2021-05-21 20:20:24 +10:00
Ben V. Brown
b10a65dd74 Fix bootloader size 2021-05-04 18:54:09 +10:00
Ben V. Brown
e4f7946dcb WiP on WS2812 Protocol driver 2021-05-02 21:22:29 +10:00
Ben V. Brown
27aecd2436 Merge branch 'master' into MHP30 2021-04-30 21:19:31 +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
Ben V. Brown
6d0f9897b9 Adding MHP30 to makefile 2021-04-27 21:44:35 +10:00
Ben V. Brown
90f23a9228 WiP on hotplate temp reading 2021-04-27 21:35:07 +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
4a6b55c52c Merge branch 'master' into string-compression 2021-04-13 18:31:16 +08:00
Ben V. Brown
022879babd Merge pull request #924 from alvinhochun/lang-jp
Add Japanese translation
2021-04-13 08:24:11 +10:00
Alvin Wong
07fb8adb7f Impl. initial translation strings compression 2021-04-12 19:57:29 +08:00
Alvin Wong
82620c685d Change translation strs to be stored in one block 2021-04-09 14:45:33 +08:00
Alvin Wong
dbcd093c77 Add Japanese translation 2021-04-07 18:46:22 +08:00
Alvin Wong
2d33708e9e Add ZH_CN translation 2021-04-07 16:09:03 +08:00
Alvin Wong
e01361ddde Add messageWarn translation definition type 2021-04-05 16:40:31 +08:00
Ryan Jarvis
ed98803774 Fix CI builds 2021-04-03 21:38:21 -07:00
Thomas Weißschuh
45d2780507 Always generate debug symbols
The debug symbols are only part of the generated ELF files,
they are stripped from the .bin and .hex files.
So there should be no disadvantage of always generating it.

Before:

 52456 Pinecil_EN.bin
 81700 Pinecil_EN.elf
140759 Pinecil_EN.elf.map
147554 Pinecil_EN.hex

After:

 52456 Pinecil_EN.bin
650556 Pinecil_EN.elf
191974 Pinecil_EN.elf.map
147554 Pinecil_EN.hex
2021-03-28 22:36:33 +02:00
Alvin Wong
f3cfcb2bca Make translation obj files depend on the headers 2021-03-24 23:57:46 +08:00
Ben V. Brown
bc05ed7e86 Update Makefile 2021-03-18 22:36:33 +11:00
Ben V. Brown
2c66d91cfe Add make command to validate formatting 2021-03-18 22:30:20 +11:00
Ben V. Brown
053f8ece3e Turn on more 2021-03-18 22:21:35 +11:00
Ben V. Brown
4c979655f4 First pass 2021-03-18 22:18:10 +11:00
Ben V. Brown
7fbfde7b33 Correct a few missed time values from the tick rate change (#874)
* Pass over all refs to xTaskGetTickCount()

* That wasn't a second 😓

* Update FreeRTOSConfig.h

* Fix warning in usb code; style; fix slow description
2021-03-15 21:01:09 +11:00
Thomas Weißschuh
cb34af357f translations: track more generation dependencies 2021-03-08 19:17:04 +01:00
Alvin Wong
47692024c5 Impl. CJK support with zh-TW and yue-HK translations
Also add support for generating font table using the WenQuanYi Bitmap
Song font.
2021-02-07 00:10:38 +08:00
Alvin Wong
1a8826c0a8 Check validity of model in Makefile 2021-02-07 00:09:28 +08:00
Thomas Weißschuh
15e51f9faa Generate per-language translation sources (#806)
This generates dedicates Translation.cpp files for translation language
and derives all language-specific data from them.

The Makefile is extended to also take care of generating these source
files.
This allows reuse of nearly all object files between builds of different
languages for the same model and regenerating the translation sources if
necessary.
This speeds up the release builds and the normal write-compile-cycle
considerably.
It also eliminates miscompilations when manually building different
languages.
2021-02-02 19:44:34 +11:00
Ben V. Brown
01997ed5fe Ignore FreeRToS in formatting
As its sensitive to import order
2021-01-17 11:01:21 +11:00
Ben V. Brown
1b0b665072 Create style call in Makefile 2021-01-17 10:57:24 +11:00
Ben V. Brown
184b2c909f ./workspace/TS100 -> ./source/ 2021-01-17 09:43:55 +11:00