1
0
forked from me/IronOS
Commit Graph

138 Commits

Author SHA1 Message Date
Ben V. Brown
d5f33814aa Update FreeRTOS 2022-11-20 16:42:54 +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
discip
8cee506ede Move Reset Settings to end of the menu (#1401)
* moved_reset_settings

Since in most appliances the reset option is placed somewhere near the end, this might be the way to go for IronOS as well.

Fixed some inconsistencies and a typo along the way.

* rearranged settingGUI to match the actual layout
2022-09-01 21:20:48 +10:00
Ben V. Brown
1245bab1a2 Bump timeout for menu actions (#1384) 2022-08-25 09:17:28 +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
f1ceb0ec62 Merge branch 'dev' into pd-epr 2022-07-25 17:34:13 +10:00
Ben V. Brown
dd239375b1 All Ticks as the right TickType
Update usb-pd
2022-07-25 16:45:29 +10:00
Ben V. Brown
aac42199f6 getTipResistanceX10() 2022-07-18 22:54:56 +10:00
Ben V. Brown
1fe3210263 Fix startup current pulse on some devices
Always force power to 0 if <= to handle vin not yet stable at boot
2022-06-24 10:33:23 +10:00
Ben V. Brown
165a9952c2 MHP30: Shutdown settings (#1307)
* Reduce PPS max to 20V to avoid instability

Some PSU's cant actually run at 21V

* Creating a rough draft of a "pre start check" concept

* Newer alpine

* Cleaning up MHP detection

* Cleanup comments

* PID: Run prestart based on ADC IRQ rather than times

* MHP30: Far better startup for detecting tip gain

* Newer alpine for github CI

* Bugfix: Exit on movement

* Feature: Shutdown timeout for MHP30
2022-06-16 20:28:49 +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
discip
0b8192b690 Bootup logo settings (#1241)
Adds ability to adjust the time shown for the bootup logo.
2022-04-02 12:39:14 +11:00
Ben V. Brown
eee879eed4 Update Settings.cpp 2022-02-09 21:49:15 +11:00
Ben V. Brown
7fcac3aaf1 making hall effect 0-9 scale 2022-02-09 21:18:15 +11:00
Ben V. Brown
02d065778c Update Settings.cpp 2022-02-08 18:28:33 +11:00
Ben V. Brown
3f26bc0103 Update Settings.cpp 2022-02-08 18:26:23 +11:00
Ben V. Brown
5f8fe9ae56 Update Hall sensor tuning 2022-02-06 17:34:34 +11:00
Ben V. Brown
7b8240d9b5 Fix: Only show hall sensor settings if hall sensor is fitted 2022-02-05 08:51:40 +11:00
Ben V. Brown
3826c2d2fe Use the nicer settings reset message in menu 2022-01-18 20:58:32 +11:00
Ben V. Brown
d59db82ead Update Settings.cpp 2022-01-15 08:52:27 +11:00
discip
5e5f1b8d99 reverted swap II 2022-01-07 23:26:44 +01:00
discip
5b00e95255 revert removing inverted screen IV. 2022-01-07 22:02:54 +01:00
discip
055b70d45b revert removing inverted screen III. 2022-01-07 21:57:56 +01:00
discip
12dfcd76aa part 4 of removed invert screen via commenting
and some cleanup
2022-01-07 03:02:38 +01:00
discip
0e4319ff2e part 3 of removed invert screen via commenting 2022-01-07 03:01:16 +01:00
Ben V. Brown
26c7d0f2cb Clean up soldering temp adjust button handling 2022-01-05 20:41:38 +11:00
Ben V. Brown
9a9a98957d Update Settings.cpp
Set a default sane PD timeout
2021-12-29 23:02:18 +11:00
Ben V. Brown
9961411435 Drop volt symbol as its offscreen 2021-12-29 22:55:07 +11:00
Ben V. Brown
16db0c7c0b Fix missed limit settings 2021-12-29 17:22:30 +11:00
Ben V. Brown
f945360437 Compensate scrollbar for skipped screens 2021-12-29 17:19:11 +11:00
Ben V. Brown
07b692e330 Recalculate scroll size on value change 2021-12-29 17:16:58 +11:00
Ben V. Brown
6d3a52e32b Extract menu size calc 2021-12-29 17:03:05 +11:00
discip
f34fb53119 Update gui.cpp 2021-12-26 15:55:11 +01:00
discip
8f32267340 fix_IIa 2021-12-26 15:52:20 +01:00
discip
52a13dae27 fix_II 2021-12-26 15:49:32 +01:00
discip
c2d9631efd Update gui.cpp 2021-12-26 15:42:33 +01:00
discip
30b632fc19 fix 2021-12-26 15:38:05 +01:00
discip
c3406112cd Update gui.cpp 2021-12-26 14:59:10 +01:00
discip
822c3da3ba tackling #1140
https://github.com/Ralim/IronOS/issues/1140
2021-12-26 01:26:26 +01:00
discip
13bce53249 changed POWER_PULSE since 100 would display as 0.0 2021-12-20 00:57:57 +01:00
Ben V. Brown
7a654caf2a Handle different calibration offset ranges for MHP30 2021-12-19 11:23:42 +11:00
Ben V. Brown
e33b900cff Rework settings to be min-max inclusive 2021-12-19 10:21:19 +11:00
Ben V. Brown
b29c5a9602 Address settings bounds checks 2021-11-19 19:52:14 +11:00
Ben V. Brown
ca02f7606b Fix #1105 2021-10-17 11:20:03 +11:00
Ben V. Brown
d6af4654b3 Fix #1089 2021-10-02 15:03:50 +10: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
discip
5fd16bb673 adjusted max brightness (#1087)
* Delete Development Resources/Images directory

* jpg -> png

* fix value alignment for PD timeout

* Delete 001_TS80.png

* replace TS80 logo

* Update Settings.cpp

* Update gui.cpp

* Update Settings.cpp

* adding missing en dash

* Update translation_EN.json

* Update Settings.cpp

* Update gui.cpp
2021-09-30 21:25:51 +10:00
discip
66cf63e048 jpg -> png | fixed value alignment for PD timeout (#1086)
* Delete Development Resources/Images directory

* jpg -> png

* fix value alignment for PD timeout

* Delete 001_TS80.png

* replace TS80 logo
2021-09-28 11:40:07 +10:00
discip
45f5838067 change increment and values of brightness settings (#1083) 2021-09-27 11:35:50 +10:00
Ben V. Brown
bbeedeb36b Merge branch 'master' into ralim/scrollbar 2021-09-25 11:04:23 +10:00