Ivan Zorin
0a3dfb34ec
A bit of clean-up & update configuration.h files ( #1717 )
...
* BSP/configuration.h: update & clean-up macro defines
* BSP/MHP30/configuration.h: add lost-during-update macro
2023-06-20 15:01:27 +10:00
Ivan Zorin
155cf386b1
Zipping compiler warning about POW_PD_EXT / Two options ( #1711 )
...
* Zipping compiler warning about POW_PD_EXT / Option A
* Zipping compiler warning about POW_PD_EXT / Option B
* BSP/configuration.h: implement option A for POW_PD_EXT warning
---------
Co-authored-by: Ben V. Brown <5425387+Ralim@users.noreply.github.com >
2023-06-20 00:59:36 +00:00
Ben V. Brown
691abd5caa
Fix OLED display scroll speed being painfully slow + junk on ease in/out
2023-06-19 17:12:51 +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
Ivan Zorin
4d7e4f41e3
Save settings on change only / All builds OK ( #1699 ) ( #1704 )
2023-06-18 04:31:05 +00:00
Ben V. Brown
e7bcf920ba
Refactor PinecilV2 Tuning
...
Closes #1688
2023-06-04 12:13:26 +10:00
Ben V. Brown
286afad919
S60 Support ( #1692 )
...
* Mock S60
* cleanup
* Start refactor of OLED init
* Setup timers roughly
* Set Vector table offset correctly
Update system_stm32f1xx.c
* Update OLED.cpp
* Update stm32f1xx_hal_msp.c
* Update configuration.h
* I2C init before GPIO
From Errata
Update stm32f1xx_hal_msp.c
Update Software_I2C.h
Allow no hardware I2C
* I2C BB run bus unlock at init
* cleanups
* Software I2C for now
* Mildly more graceful Interpolate
* Handle is powered by DC
Update Power.cpp
Update drawPowerSourceIcon.cpp
Update configuration.h
Update Setup.cpp
* Cleanup HomeScreen
* Segment remap oled at init
* Cleanup
* Update MOVThread.cpp
* Fix PWM Init
* Fix adc2 trigger
* Update configs
* Fixup warning
* Saner default config
* Update ThermoModel.cpp
* Util for current@voltage
* Hub238 warning
* Add hub238 handling in power mode
* Update USBPDDebug_FUSB.cpp
* HUSB238 debug
* Hook PSU Limit
* Use wrapping section of GRAM for scroll
Update OLED.hpp
* Update NTC table
* Fix HUB voltage picker
* Cleanup
* Larger tip filter
* Calibrate in a bunch closer
Update ThermoModel.cpp
* Update configuration.h
* Update HUB238.cpp
* Update configuration.h
* Movement Pin
* Update BSP.cpp
* tim2 irq
* Rough timer conversion (adc broken) but movement working
* Fix tim2 start
* Faster base PWM
* Ensure utils grabs config
* Add wattage limiter tolerance for device
* Speed up PWM and enable PWM current limiting
* tune for 12v
* Prevent start until PD done
* Update configuration.h
* Add HUB238 check for have re-negotiated
* Adjust timer to avoid noise when its possible
2023-06-03 20:05:31 +10:00
Laura Klünder
f1879353b8
put soldering profile mode into its own file, put common functions in utils
2023-04-25 11:56:41 +02:00
Laura Klünder
cb2e8af700
full profile support
2023-04-23 23:48:24 +02:00
Laura Klünder
448e5c8ad1
profile mode is optional
2023-04-23 18:36:07 +02:00
discip
9c8abbdfc2
Readjusting brightness (Pinecil v2) ( #1622 )
2023-03-26 11:43:56 +11:00
discip
070064e59e
adapting 10 °C > 50 °F ( #1636 )
...
* Update configuration.h
* Update configuration.h
* Update configuration.h
2023-03-25 23:46:44 +00:00
Ben V. Brown
77930a386c
flash api simpler
...
Update flash.c
2022-10-22 11:24:09 +11:00
Ben V. Brown
1a3d6ba219
Fixing up TS80P Build ( #1429 )
...
* Silence wchart warning + go back to simple size limiter
Going from smart linker file to basic #defines to make things just easier to debug
* 2 deg c increments for NTC table
* Update cmsis_gcc.h
* Drop special linker
* Update portmacro.h
* Update Makefile
2022-10-20 18:06:05 +11:00
Ben V. Brown
67d2eda7de
Add SC7 accelerometer for MHP30 ( #1377 )
2022-08-23 09:30:49 +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
d47a627b1a
Update portmacro
2022-07-25 16:56:37 +10:00
Ben V. Brown
aac42199f6
getTipResistanceX10()
2022-07-18 22:54:56 +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
3bb1b7bc32
Startup behaviour fixes ( #1306 )
...
* 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
2022-06-16 20:21:46 +10: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
7a654caf2a
Handle different calibration offset ranges for MHP30
2021-12-19 11:23:42 +11:00
Ben V. Brown
6d7fc2f689
Update configuration.h
2021-12-15 11:19:35 +11: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
87b22e52ed
Rough pass
2021-09-17 21:13:21 +10:00
Ben V. Brown
6f46fc0bed
style
2021-09-15 20:27:03 +10:00
Ben V. Brown
2bfb8a6535
Unify settings for each model into once place
2021-09-15 20:24:41 +10:00
Ben V. Brown
a57449ed0f
Retiming all the PWM's
2021-09-14 21:48:37 +10:00
Ben V. Brown
55a2cb3f24
Merge branch 'master' into refactor-adc
2021-09-12 19:18:58 +10:00
Ben V. Brown
8fd2f6e95c
Second pass
2021-09-12 14:03:09 +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
Varga Zsolt
2755bb15b2
Revert "Test"
...
This reverts commit 3e502f462d .
2021-06-08 22:57:09 +02:00
Varga Zsolt
3e502f462d
Test
2021-06-08 22:49:48 +02:00
Varga Zsolt
a75d97360f
Suggestions mostly corrected
2021-06-07 01:09:41 +02:00
Ben V. Brown
0336432994
Format
2021-06-05 22:51:47 +10:00
Ben V. Brown
0887bbe3cf
Mask PWM during beep
2021-05-08 16:28:33 +10:00
Ben V. Brown
1b3445cefa
Add buzzer beep when at temperature 🎵
2021-05-05 19:19:00 +10:00
Ben V. Brown
b10a65dd74
Fix bootloader size
2021-05-04 18:54:09 +10:00
Ben V. Brown
bdeb8ef38a
Move WS2812 driver to template class
2021-05-04 18:37:09 +10:00
Ben V. Brown
64cb9c1158
Fix build issues
2021-05-03 22:39:57 +10:00
Ben V. Brown
ee12c99d9e
Update PD to support awareness of having inductor for DCDC op
...
+ fix voltage divider to be more on point
+ Create adjustment for thermal mass causes overshoot
2021-05-03 22:36:25 +10:00
Ben V. Brown
dd5daf51e3
Format new content
2021-05-03 22:10:14 +10:00
Ben V. Brown
e3deb33d7f
Slow down adc and therefore pid to ~128ms
2021-05-03 22:09:26 +10:00
Ben V. Brown
5b4ae22f12
Better colour
2021-05-03 22:05:38 +10:00
Ben V. Brown
e6427f1d27
Fix tip disconnection sense value
...
oops
2021-05-03 22:02:51 +10:00
Ben V. Brown
c20ed926cd
Hook some status colours to the LED
2021-05-03 22:00:24 +10:00
Ben V. Brown
5ea2908fa2
Removing timer as wont work & replace with bit bang
...
Cant keep up with irq
2021-05-03 21:52:18 +10:00
Ben V. Brown
69ef62f0a7
Update st libs
2021-05-03 21:51:40 +10:00
Ben V. Brown
5128602335
LED iffy (unstable timer?)
2021-05-02 21:39:47 +10:00