1
0
forked from me/IronOS
Commit Graph

159 Commits

Author SHA1 Message Date
Ben V. Brown
80e7ab3161 Force delay after display state change
So that we backoff if OLED is busy

Update OLED.hpp
2022-11-06 22:53:43 +11:00
Ben V. Brown
7eb9f3f10d Only send on display change 2022-11-06 22:10:09 +11:00
Ben V. Brown
19a6e169a7 Update PD for better EPR compatibility 2022-09-07 18:22:52 +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
7fcd2b7c5b Animation non block (#1347)
* Buttons cancel animation

* Button cancels transition

* Update OLED.cpp
2022-08-12 10:36:10 +10:00
discip
e43449011e solves artifacts issue if .gif is exactly 1024 B (#1362)
* solves artifacts issue if .gif is exactly 1024 B

solves https://github.com/Ralim/IronOS-Meta/issues/18

* increased animation speed a tad
2022-08-10 10:16:05 +10:00
Ben V. Brown
f1ceb0ec62 Merge branch 'dev' into pd-epr 2022-07-25 17:34:13 +10:00
Ben V. Brown
081290d6be Merge branch 'dev' into ticktype 2022-07-25 17:00:34 +10:00
Ben V. Brown
dd239375b1 All Ticks as the right TickType
Update usb-pd
2022-07-25 16:45:29 +10:00
nyanpasu64
06e3ca59ea Fix button presses between short and long being ignored entirely 2022-07-24 15:34:39 -07:00
nyanpasu64
c855f4cffe Don't send short-presses after releasing long-presses 2022-07-24 15:16:11 -07:00
nyanpasu64
6d6f42d242 Cleanup getButtonState() 2022-07-24 15:12:27 -07:00
Ben V. Brown
c89a6d855c Update usb-pd 2022-07-19 20:58:47 +10:00
Ben V. Brown
77af6223a4 Merge in draft EPR 2022-07-18 22:58:01 +10:00
Ben V. Brown
0590f9b3f8 Update usb-pd 2022-07-18 22:55:01 +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
Ben V. Brown
f5cb42c9d7 Infinite logo (#1309)
* Check for button timeout of infinite

* Dedupe

* Alpine bump
2022-06-16 20:21:30 +10:00
discip
9ec92298f3 Update Font.h 2022-05-04 00:17:34 +02: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
787bc46bdc SC7A20 tweaks (#1251)
* Clean up handling of addresses

* Update SC7A20.hpp

* Try remapped Accel readings

* Fake LIS setup?

* Refining build options
2022-04-03 12:37:27 +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
232009bf54 Logo rework (#1232)
!Allows for new logo format that supports animation!
Also moves logos out of repo into their own repo for ease of management.


Changes:
* Remove deprecated logos
* Draft new Bootloader decoder
* Use new logo handler
* Simplify logo code further
* Fix time bug on static images
* Fix exit at end of animation
* Docs
* Interframe delay in 5ms increments
* Quick pass handling empty updates
* Exit at the end _after_ the frame delay
* One final delay
* Fix for overrun of logo data
* Fixes https://github.com/Ralim/IronOS-Meta/issues/7
2022-03-14 09:08:05 +11:00
Ben V. Brown
3747d22773 Flip SC7 2022-02-12 11:30:03 +11:00
Ben V. Brown
730f7cf415 SC7A20 handle address 2022-02-12 11:13:41 +11:00
Ben V. Brown
ba119007ff Step 1: make LIS2DH12 driver stricter 2022-02-12 11:04:28 +11:00
Ben V. Brown
1969d860c7 Update USBPD.cpp 2022-02-06 14:41:52 +11:00
Ben V. Brown
a2918ae8a4 Update usb-pd 2022-02-06 14:41:49 +11:00
Ben V. Brown
3c83b59b53 Expose Vbus 2022-02-06 13:14:53 +11:00
Ben V. Brown
49c80d2d3f Update OLED.hpp 2022-02-05 12:39:40 +11:00
Ben V. Brown
80acf58b43 Update OLED.hpp 2022-02-05 12:37:41 +11:00
Ben V. Brown
15763dd55b Cleanup OLED_FLIP logic
Update OLED.hpp

Update OLED.hpp

Update OLED.hpp
2022-02-05 12:23:51 +11:00
discip
c02628f5bf Update Font.h 2022-01-19 23:51:46 +01:00
discip
2fe86b748e Update Font.h 2022-01-19 23:11:09 +01:00
discip
1c5361613c Update Font.h 2022-01-19 23:09:16 +01:00
discip
af413a1b4b Update Font.h 2022-01-19 22:39:40 +01:00
discip
4feb68923b Update Font.h 2022-01-19 02:16:31 +01:00
discip
385bcfa59e Update Font.h 2022-01-19 02:07:38 +01:00
discip
59c7c7245a updated idle screen & missing tip for TS80P 2022-01-14 23:36:15 +01:00
discip
c0095bd98f removed flipped DisconnecetedTip hex code 2022-01-08 16:55:40 +01:00
discip
00b8115e7c all three 2021-12-26 23:24:55 +01:00
discip
e2613d2f31 update 2021-12-26 16:59:03 +01:00
discip
cc3988be24 maybe this time 2021-12-22 03:44:36 +01:00
discip
bf1fc1c157 just preparing 2021-12-22 03:12:31 +01:00
discip
95ccb528e1 updated graphics for idle screen & for missing tip 2021-12-22 00:03:28 +01:00
Ben V. Brown
47929e9ee0 Update PD stack 2021-12-19 10:57:57 +11:00
discip
63f777d553 Update Font.h 2021-10-28 20:55:38 +02:00
discip
6fe01721e7 Update Font.h 2021-10-28 19:47:40 +02: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
04ad5a3bfc changed idle screen & missing tip (#1097) 2021-10-01 19:23:28 +10:00
discip
fa4b2fbe9b changed power animation (#1082)
As requested https://github.com/Ralim/IronOS/issues/1078#issue-1007487827.
2021-09-27 12:40:11 +10:00