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
f88e6bccf4
Update Setup.cpp
2021-09-15 21:18:23 +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
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
a75d97360f
Suggestions mostly corrected
2021-06-07 01:09:41 +02: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
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
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
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
Ilya Zhuravlev
2220155045
Add 18v for pinecil
2021-03-11 14:04:34 -05:00
Ben V. Brown
8a4d20be25
Update I2C_Wrapper.cpp
2021-02-25 19:27:22 +11:00
Ben V. Brown
3e56826e04
Run formatter
2021-02-24 20:30:36 +11:00
Ben V. Brown
c210bf983c
Split
2021-02-24 19:38:51 +11:00
Ben V. Brown
8d39ff1cbc
Move prob into the new state machine
2021-02-24 19:21:35 +11:00
Ben V. Brown
296c2f9351
De-dupe
2021-02-24 17:52:40 +11:00
Ben V. Brown
530002297b
merge I2C state machine
2021-02-24 17:49:16 +11:00
Ben V. Brown
b18bc384cc
Rework writes to use the new states
2021-02-23 22:24:27 +11:00
Ben V. Brown
c53c28914e
Move mem_read to new state format
2021-02-23 22:11:50 +11:00
Ben V. Brown
1f6a3ad167
Pinecil uart ( #830 )
...
* Creating uart debug handler
* Simpler get raw uV tip
* Update Setup.cpp
* Debug out working. Moved Logo
Need to update docs around logos before merging this in
* Add in current pwm level + fix signed int
* Update moving logo page for pinecil by 64k
* Update TipThermoModel.h
2021-02-02 19:53:19 +11:00
Ben V. Brown
2425902fbc
Hotfix: BMA Accel wedges I2C if probed too fast after boot
...
Only an issue on Pinecil as it boots much faster than Miniware units.
2021-01-17 20:13:02 +11:00
Ben V. Brown
67a0640f71
Fix headers
...
That were hidden by import order before
2021-01-17 11:06:25 +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
184b2c909f
./workspace/TS100 -> ./source/
2021-01-17 09:43:55 +11:00