Ivan Zorin
4c5e885363
source/Makefile: update for -C support ( #1710 )
2023-06-18 14:25:43 +10:00
Ivan Zorin
5b1c273a78
source/Makefile: add HOST_PYTHON, extend clean target, remove -.d generation ( #1701 )
...
* source/Makefile modifications: add HOST_PYTHON variable for flexibility of environment setup / extend clean target to make source directory as new / rename -.d autogenerated temp file
* Makefile: keep Hexfile dir by clean target, add mrproper target to clean all
* Makefile: rename mrproper target to clean-all
---------
Co-authored-by: Ben V. Brown <5425387+Ralim@users.noreply.github.com >
2023-06-14 12:34:51 +00: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
Ben V. Brown
df693773f1
Adjust how heap and ram sections are allocated
2023-05-09 22:10:28 +10:00
Laura Klünder
5fcdda16f6
filter translation strings and only include the ones needed
2023-04-25 11:56:52 +02:00
Ben V. Brown
4e37c7bea7
Merge branch 'dev' into BLE
2023-01-23 17:22:06 +11:00
Ben V. Brown
7c8664fb22
Merge branch 'dev' into BLE
2022-12-28 14:24:49 +11:00
Ben V. Brown
6c7243edd6
New translations definitions
2022-12-03 21:18:48 +11:00
Ben V. Brown
6ca5f5c08d
Merge branch 'dev' into refactor-gui-files
2022-11-25 21:24:49 +11:00
Ben V. Brown
28c74a152c
Update Makefile
2022-11-22 18:25:51 +11:00
Ben V. Brown
ca2ceb5008
Update Makefile
2022-11-20 20:55:19 +11:00
Ben V. Brown
e88c064390
Set device name and appearance in makefile
2022-11-20 17:59:35 +11:00
Ben V. Brown
a160f7e7ad
Update Makefile
2022-11-20 17:10:54 +11:00
Ben V. Brown
3f05088ffb
Update Makefile
2022-11-20 16:43:33 +11:00
Ben V. Brown
17f72ba945
Update Makefile
2022-11-20 16:43:07 +11:00
Ben V. Brown
d5f33814aa
Update FreeRTOS
2022-11-20 16:42:54 +11:00
Ben V. Brown
6a2dc1a9d2
Update Makefile
2022-11-20 16:42:54 +11:00
Ben V. Brown
ea3bd86b52
Update Makefile
2022-11-20 16:42:26 +11:00
Ben V. Brown
eacb6ac1cd
Use ROM
2022-11-06 22:07:55 +11:00
Ben V. Brown
6f3a2fb775
Merge branch 'dev' into alvin/cjk-update
2022-11-06 21:12:40 +11:00
discip
680c25ab25
Update Makefile
2022-11-04 23:19:40 +01:00
Alvin Wong
a703a7c2bc
Revert "Always use compressed data even for single languages ( #1430 )"
...
We're getting "region `RAM' overflowed by 144 bytes" for MHP30_ZH_CN.
This reverts commit 3e939a7d12 .
2022-10-25 18:52:54 +08:00
Ben V. Brown
3e939a7d12
Always use compressed data even for single languages ( #1430 )
...
* Always use compressed data even for single languages
* Update push.yml
2022-10-22 12:26:57 +11:00
Ben V. Brown
bf13020fef
Remove debug output meta
2022-10-22 12:01:53 +11:00
Ben V. Brown
30ef41ad5a
Update Makefile
2022-10-22 11:54:39 +11:00
Ben V. Brown
e8fc4c0039
More optimisation flags
2022-10-22 11:46:33 +11:00
Ben V. Brown
23eb7504fb
Trimming Miniware
2022-10-22 11:17:27 +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
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
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
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
River B
c8d8ff31e8
added VI langage
...
added VI to language list
2022-03-09 19:35:21 -08:00
Ben V. Brown
12e8e01ca7
Update Makefile
2022-01-08 12:28:55 +11:00
Ben V. Brown
18c376deff
Cleanup Makefile
2022-01-08 12:25:08 +11:00
Ben V. Brown
d712f6875b
Update Makefile
2022-01-07 21:28:25 +11:00
Ben V. Brown
15d4da9b81
Update Makefile
2022-01-07 08:38:27 +11:00
Ben V. Brown
93de082b06
Make patch specs to not use nano math
...
Since Alpine isnt shipping it
2022-01-06 23:51:32 +11:00
Ben V. Brown
b6d2846ead
test
2022-01-06 18:58:58 +11:00
Alex Liu
8bb26eb39c
Enable custom language combinations at build time
...
Added a parameter to allow custom language combinations to be selected at build time.
2021-11-27 03:38:36 -08: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
e0ccc695bb
Fix VID/PID for dapboot
2021-09-25 11:37:16 +10:00
Ben V. Brown
113a9c6250
Add dfu file step
2021-09-24 13:16:17 +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
Ben V. Brown
4ef082d228
Update Makefile
2021-05-21 20:26:57 +10:00
Ben V. Brown
062a4f78fd
Update Makefile
2021-05-21 20:24:29 +10:00
Ben V. Brown
5f7d9dd042
Print formatting error
2021-05-21 20:20:24 +10:00
Ben V. Brown
b10a65dd74
Fix bootloader size
2021-05-04 18:54:09 +10:00
Ben V. Brown
e4f7946dcb
WiP on WS2812 Protocol driver
2021-05-02 21:22:29 +10:00
Ben V. Brown
27aecd2436
Merge branch 'master' into MHP30
2021-04-30 21:19:31 +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