1
0
forked from me/IronOS
Commit Graph

92 Commits

Author SHA1 Message Date
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
4951d72aee Bump power limits 2021-09-17 21:38:13 +10:00
Ben V. Brown
87b22e52ed Rough pass 2021-09-17 21:13:21 +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
e18c877a96 Removed unused 2021-09-15 18:53:07 +10:00
Ben V. Brown
ad857a08ab QC code does not get control of vin filter 2021-09-14 22:01:10 +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
23fe246026 Revert "Update STM32 hal for Miniware"
This reverts commit 730ee94c5c.
2021-05-21 20:58:05 +10:00
Ben V. Brown
730ee94c5c Update STM32 hal for Miniware 2021-05-21 20:54:48 +10:00
Ben V. Brown
ab4e5e70ca 🤷‍♂️🤷‍♂️ 2021-05-21 20:49:58 +10:00
Ben V. Brown
c4512210a6 Update stm32f1xx_hal_tim_ex.h 2021-05-21 20:42:13 +10:00
Ben V. Brown
028c356c72 🤷‍♂️ 2021-05-21 20:38:30 +10:00
Ben V. Brown
1ad00aa8b2 Handle tip connect & disconnect in detection 2021-05-02 16:47:33 +10:00
Ben V. Brown
7a5c0ad20f Updated cold junction temp curve
* Disabled the hack off on temp as we dont need it for MHP30
* faster ADC on MHP30
2021-05-02 15:45:45 +10:00
Ben V. Brown
7903df36e5 Create isTipDisconnected function 2021-05-01 16:44:50 +10:00
Ben V. Brown
ffe5794cf5 Split thermoModel uV conversion to BSP 2021-05-01 16:22:24 +10:00
Ben V. Brown
26ad63b03b Followthrough of the cleanup 2021-05-01 13:29:26 +10:00
Ben V. Brown
7fba51649a Cleanup user functions 2021-05-01 13:17:10 +10:00
Ben V. Brown
67ba9e20c0 Move ld file into bsp
Long overdue
2021-04-27 21:44:21 +10:00
Ben V. Brown
4ee91d45fe Cleanup duplicate code 2021-04-08 21:54:10 +10:00
Ben V. Brown
22c5f6d361 Cleanup FUSB setup 2021-04-08 21:20:25 +10:00
Ben V. Brown
59a9dce7ec Update IRQ.cpp 2021-04-05 16:29:17 +10:00
Ben V. Brown
f12ed98991 Cache FUSB polls 2021-04-05 15:53:29 +10:00
Ben V. Brown
854189d720 Add manual irq line check for the int task for PD 2021-04-05 15:05:12 +10:00
Ben V. Brown
b3c3e4e384 Spawn PD earlier 2021-04-05 14:37:50 +10:00
Ben V. Brown
9f0054f7b0 WiP PPS 2021-04-05 00:02:10 +10:00
Ben V. Brown
5fd969ada7 Clean up PD voltage selection for flexibility 2021-04-04 22:58:53 +10:00
Ben V. Brown
4c979655f4 First pass 2021-03-18 22:18:10 +11:00
Ben V. Brown
f831b74e57 Cleanup security warnings 2021-03-17 21:12:45 +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
Ben V. Brown
1b0b665072 Create style call in Makefile 2021-01-17 10:57:24 +11:00
Ben V. Brown
7ecc7e4d12 Format Pine code 2021-01-17 10:55:15 +11:00
Ben V. Brown
bf5055edaa Format headers 2021-01-17 10:53:49 +11:00
Ben V. Brown
f786901da0 Formatting the C/C++ files 2021-01-17 10:48:52 +11:00
Ben V. Brown
184b2c909f ./workspace/TS100 -> ./source/ 2021-01-17 09:43:55 +11:00