Ivan Zorin
b524a99ff2
Root directory content refactoring ( #1725 )
...
* Root directory refactoring: - move info about Bootup Logo from a sepatate README to main README; - replace separate root scripts build.sh and start_dev.sh by root Makefile; - make Scripts directory and move there: flash_ts100_linux.sh script, ci/ directory, dockerfile, LICENSE_RELEASE, and PULL_REQUEST_TEMPLATE; - reconfigure build & deploy scripts according to changes
* Scripts => scripts
* Scripts -> scripts: re-add missing renamed files
* Directories refactoring: add top-level Makefile, add scripts/deploy.sh script, move github templates from top-level dir to .github, organize files inside Development Resources
* Update scripts/deploy.sh accroding to codestyle syntax shellcheck
* Makefile: add docs-deploy target for mkdocs gh-deploy
* Rename IronOS.yml > Env.yml, update related files
* Docs configs: remove empty characters
* docs/devel: update usage of new script
2023-07-02 11:32:40 +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
Ben V. Brown
e19e1a066d
Use alpine packaged black
...
Closes #1554
2023-02-04 09:30:05 +11:00
Alvin Wong
a703a7c2bc
Revert "Always use compressed data even for single languages ( #1430 )"
...
We're getting "region `RAM' overflowed by 144 bytes" for MHP30_ZH_CN.
This reverts commit 3e939a7d12 .
2022-10-25 18:52:54 +08:00
Ben V. Brown
3e939a7d12
Always use compressed data even for single languages ( #1430 )
...
* Always use compressed data even for single languages
* Update push.yml
2022-10-22 12:26:57 +11: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
f5cb42c9d7
Infinite logo ( #1309 )
...
* Check for button timeout of infinite
* Dedupe
* Alpine bump
2022-06-16 20:21:30 +10:00
Ben V. Brown
70565de2e5
Update push for git permissions
...
https://github.com/actions/checkout/issues/760
2022-04-19 09:24:40 +10:00
dependabot[bot]
55903020e9
chore(deps): bump actions/upload-artifact from 2 to 3
...
Bumps [actions/upload-artifact](https://github.com/actions/upload-artifact ) from 2 to 3.
- [Release notes](https://github.com/actions/upload-artifact/releases )
- [Commits](https://github.com/actions/upload-artifact/compare/v2...v3 )
---
updated-dependencies:
- dependency-name: actions/upload-artifact
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-04-11 12:09:38 +00:00
dependabot[bot]
ccdc2376cd
chore(deps): bump actions/checkout from 2 to 3
...
Bumps [actions/checkout](https://github.com/actions/checkout ) from 2 to 3.
- [Release notes](https://github.com/actions/checkout/releases )
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md )
- [Commits](https://github.com/actions/checkout/compare/v2...v3 )
---
updated-dependencies:
- dependency-name: actions/checkout
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-03-07 12:04:48 +00:00
Ben V. Brown
20d39b6627
Update push.yml
2022-02-12 09:56:09 +11:00
Ben V. Brown
6c058f93d5
Update push.yml
2022-02-09 21:11:47 +11:00
Ben V. Brown
0b894ffaf3
merged metadata?
2022-02-09 21:09:18 +11:00
Ben V. Brown
ee0eeec08f
Update push.yml
2022-02-07 21:37:59 +11:00
Ben V. Brown
5e777a97d2
Draft ci
2022-02-07 21:31:33 +11:00
Ben V. Brown
ab6b07e422
Alpine for compression testing
2022-02-05 13:49:38 +11:00
Ben V. Brown
6b3ba37243
Use alpine image for clang-format
2022-02-05 13:34:04 +11:00
Ben V. Brown
cd86c34b90
Add musl headers for multi-lang
2022-01-07 21:57:42 +11:00
Ben V. Brown
724b0c4936
Update ci specs
2022-01-07 00:16:11 +11:00
dependabot[bot]
128ecb425d
chore(deps): bump actions/cache from 2.1.6 to 2.1.7
...
Bumps [actions/cache](https://github.com/actions/cache ) from 2.1.6 to 2.1.7.
- [Release notes](https://github.com/actions/cache/releases )
- [Commits](https://github.com/actions/cache/compare/v2.1.6...v2.1.7 )
---
updated-dependencies:
- dependency-name: actions/cache
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2021-11-29 12:06:12 +00: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
f598b9a96f
Bin files are no longer required
2021-09-25 09:50:55 +10:00
Ben V. Brown
b258ff3b3d
Persist dfu files into github assets
2021-09-24 13:17:12 +10:00
Ben V. Brown
5a0f3e13d8
Update push.yml
2021-06-05 22:58:44 +10:00
dependabot[bot]
13927fcdbc
chore(deps): bump actions/cache from 2.1.5 to 2.1.6
...
Bumps [actions/cache](https://github.com/actions/cache ) from 2.1.5 to 2.1.6.
- [Release notes](https://github.com/actions/cache/releases )
- [Commits](https://github.com/actions/cache/compare/v2.1.5...v2.1.6 )
Signed-off-by: dependabot[bot] <support@github.com >
2021-05-31 06:39:14 +00:00
Ben V. Brown
c38574fabc
Update push.yml
2021-05-21 20:59:13 +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
595f828da9
Add MHP30 to github ci matrix
2021-04-27 21:47:52 +10:00
dependabot[bot]
c7ba58137f
chore(deps): bump actions/cache from v2.1.4 to v2.1.5
...
Bumps [actions/cache](https://github.com/actions/cache ) from v2.1.4 to v2.1.5.
- [Release notes](https://github.com/actions/cache/releases )
- [Commits](https://github.com/actions/cache/compare/v2.1.4...1a9e2138d905efd099035b49d8b7a3888c653ca8 )
Signed-off-by: dependabot[bot] <support@github.com >
2021-04-19 07:17:26 +00:00
Ben V. Brown
a472641a39
Add basic flake8
2021-04-05 19:24:21 +10:00
Ben V. Brown
d9100d1625
add black
2021-04-05 19:15:02 +10:00
Ryan Jarvis
8b28824faf
Add bdflib to CI tests
2021-04-03 17:53:20 -07:00
Ben V. Brown
3c0137f15e
Fail fast on
2021-03-21 20:56:36 +11:00
Ben V. Brown
a87fd69e69
chmod
2021-03-21 20:54:53 +11:00
Ben V. Brown
c2e4ee6e51
Update push.yml
2021-03-21 20:53:39 +11:00
Ben V. Brown
fd504fa30a
Add python test step
2021-03-21 20:53:04 +11:00
Ben V. Brown
e43a32fbd2
Testing using matrix for builds
2021-03-18 22:45:12 +11:00
Ben V. Brown
2c66d91cfe
Add make command to validate formatting
2021-03-18 22:30:20 +11:00
dependabot[bot]
3f46e430c5
chore(deps): bump actions/cache from v2 to v2.1.4
...
Bumps [actions/cache](https://github.com/actions/cache ) from v2 to v2.1.4.
- [Release notes](https://github.com/actions/cache/releases )
- [Commits](https://github.com/actions/cache/compare/v2...26968a09c0ea4f3e233fdddbafd1166051a095f6 )
Signed-off-by: dependabot[bot] <support@github.com >
2021-03-17 10:19:39 +00:00
Ben V. Brown
3fb2bcebc5
Update push.yml
2021-02-07 13:36:10 +11:00
Alvin Wong
5fe1c0a1f4
Add copyright and license notices to release
2021-02-06 23:05:03 +08:00
Ben V. Brown
184b2c909f
./workspace/TS100 -> ./source/
2021-01-17 09:43:55 +11:00
Ben V. Brown
1b4610c8df
Update Pinecil logo flashing docs
2020-12-31 12:58:00 +11:00
Ben V. Brown
33c34ea503
Update push.yml
2020-12-29 11:56:46 +11:00
Ben V. Brown
87a17ab442
Perms
2020-12-29 11:55:27 +11:00
Ben V. Brown
1235938976
.
2020-12-29 11:53:23 +11:00
Ben V. Brown
6a4d8d989d
Add cache step
2020-12-29 11:41:29 +11:00
Ben V. Brown
bc4910a8c7
Derp
2020-11-01 12:17:50 +11:00
Ben V. Brown
03afdcdf20
Update push.yml
2020-10-13 18:55:09 +11:00