************************************************************
Release:v1.27R3 Date:mar 1 dic 2020, 16:46:48, CET
************************************************************
* 02ec282 (HEAD -> v1.26-stable, tag: v1.27R3) Revert "Cluster optimistic"
* 4893857 Allow stack-able battery. With stack-able ability with can switch from standalone to cluster configuration
* 73d6810 Cluster optimistic
* 80697cf Filter Undervolta on start
* 8fe02cc Add monostable 2: start time power off when battery is undervoltage
* 0c9791a Fix extended packet can driver
* 368c881 (tag: v1.27R2, ae.server/v1.26-stable) Update delivery script
* d5c17ba Move to global mounted sd variable
* a747a6c Add umount on turning off
* 89e026e Add umount sdcard in monostable power off
* f99776e update project
* 72393bb Log avoid corrupted file after a missing write data
* 078c64b Refix sdcard
* 373c678 Add retry on sdcard start error and a wait time
* 0ddcbc3 Fix sd card init
* 956f0a1 Remove comment out code
* 4538702 Fix lose precision kwh_cg/kwh_ds calculation
* 9bcb34b Enable noupdate at bistable mode waiting power supply turns off
* 5833e42 Fix can mask ext
* 08e35ac Add filter to cells voltage reads at value upper than 6.0 V in ltc6804 driver
* 53b705b (tag: v1.27R1) Complete retain and fix boot var
* b276ce6 Change SPE vendor id to TC vendor id
* 7a7e2a4 (tag: v1.27) Remove retain debug code
* b49128e Disable charging request when battery is initial state Rename function charger_handle_reply to charger_handle_request
* 8b451cf Set default vendor SPE
* f38d3f6 Disable log status instead change login on bms shutdown
* 4d73bc8 Fix Mori protocol id packet
* c40ca7f Add Mori Raddrizzatori Charger support
* 0ae65db Fix bug missing retain
* a0ce3cf Fix charger module
* 81d5c20 Add pre charger support
* 86d2242 Add ATIB charger support
* 86761af Add SPE canbus charger support
* 2a78c12 Update retain to add support double slot
* ecd93c3 Complete retain with double slot
* a71d78a (tag: v1.26) Continue fix parameter as Brieda default
* 8c933e8 Add read ltc configuration register to get fresh data to fix read cell values
* a934475 Update variable
* 5b16615 Fix variable bcast
| * 3ceb69a Change default to brieda
| * f2d0d1c Fix ltc68xx read cell voltages Remove not used variables Cstyle
| * f331961 Fix script delivery
| * 2d378e6 Add check min log_rate value [50]
| * d287bc9 Fix board balance performing check on ltc6803
| * fc3f295 Add SETPOINT_PRECISION macro into check v_setpoint procedure
| * aeced67 Enable 16 temperature sensor when t_remote is selected
| * 6535635 Optimize log file to add only selected cells voltages and sensors temperatures
| * b15049e Increase precision to v_setpoint balance precision from 0.01V to 0.002V
| * 3add1c0 Fix lem remote handle procedure Fix init rtc structure
| * 5a75b8b (tag: v1.25R09) Add control to limit string to 80 char
| * 5d34848 Fix c_remote logic 0 == local | 1 == remote
| * 9e8a91f Add support to LEM current CAB family
| * d191a04 (tag: v1.25R08) Try to fix script
| * 5feab90 Remove not usefully initialization linear register
| * 7bc5dcd Fix init ltc6804 configuration register like default
| * f638c05 Add ltc6804 gpio G5/G4 handle
| | * f662dbf Remove external debug variable declaration
| | * df58854 Fix permission about pec counter
| |/  
| * fb776aa Derate current when t_min is less or equals to t_cg_min
| * be642e7 Remove warning about variable not used
| * f6b8b44 Fix delivery script
| * e5ade7e Remove test variables
| * 40f1290 Reduce stack consuption
| * df76c1f Continue safety retain save/read function
| * c9abbd7 Add ALAENG charger support
| * 38b46e3 (tag: v1.25R07) Fix NTC conversion function [wrong cast to 16bit]
| * 14ccdf5 Safety save parameters
| * 0ef3d04 Fix serial RIDLE bit when user plugin/plugout
| * 59a05e6 Add TC into variable.xml documentation
| * 0ae3381 (tag: v1.25R06) Start implement 8 linear daisy chain [not work]
| * e2893c3 Increase ltc number (MAX_LINEAR_CONFS) to 8
| * 934d3fe Add Zivan RE PARALLEL MODE 2 protocol support
| * da91ed7 (tag: v1.25R05) Fix deploy script
| * b001497 Fix linear driver mask
| * 4eeb5da Add error state
| * e891fb0 (tag: v1.25R04) Add validate into retain_update
| * 30942e8 Fix state assign auto_st variable
| * cae0f9a Remove STANDALONE macro
| * 4004af8 Improve readability ltc6804 start voltage conversion function
| * 7a02a16 Fix ltc6804 balance performing function check
| * 47b3c9c cstyle
| * d31d1d0 Finish auto cg ds logic
| * bd1e3a8 Fix init viasat
| * b7429f0 Remove cfgs match ltc6804 driver
| * 50a263c (tag: v1.25R03) Add local deploy option
| * 4fcb21d Add missing initialize cnt_out_of_limit_soc variable. Note: soc was set equal to 1 with two linear
| * 3920e6b Revert "Change 33EP512MU810's compiler version to 1.32"
| * e32a41a Change 33EP512MU810's compiler version to 1.32
| * 4bb2c59 Remove EDS ram declaration
| * 234c89f Update project
| * 2570144 Fix delivery script remove 33EP256MU806 support
| * 0fce9b4 Fix check about into ds current procedure calculation. Bug found in MTV cluster
| * eb6e33a auto charge and discharge
| * e167e13 Decrease stack consuption i2c driver
| * 0888008 Fix mask/filter and can received procedure to handle all packet id
| * 2d93744 Replace memcpy to assign for "eds memory" compliant
| * 14207d3 Fix segfault downloading a log file. const attribute is used to optimize ram consuption A const variable [PSV] is saved in flash than ram instead. We found a problem on dspic33EP512MU810 (maybe a compiler error??): assign a value to aligned structure variable generate an Address Error.
| * 99b36a7 Move serialBuf to eds memory (in 512 version)
| * b0f37aa Add tc_charger support for 02CAN1430/F12
| * e887d4b Add define iface pkt id
| * 5e1608d Add sn init value
| * 6b545f2 Fix check about eid and sid packet received
| * d7f83c2 Increase attempts ds1307 init
| * 352509d Add macro VOLT_INC into charger module
| * 85f4a72 (tag: v1.25R02) Reduce return size time_init procedure
| * 51b5c71 Remove windows return char
| * 3a1c3ef Remove not used return variable
| | * aab13e5 Add Serial register trace for debug purpouse
| |/  
| * 908948a In battery_serial_callback() add serial drop character counter
| * 1eac38c Add db serial char drops variable
| * 4fe9043 Fix reset log_num by adding a code line incorrectly removed in previously commit
| * f1e2337 Complete remote temperature sensors
| * 2f3fec4 Start to implement remote temperature sensor
| * 11ef3f6 cstyle
| * f746962 Fix tc charger procedure
| * 3a89a9a Enable receving ext canid packet
| * 187d67f Fix set balance for cells with id > 8 and id < 12
| * 7c12246 Change balance test
| * ed8b7fd Prepare to save log_numer in boot variable
| * 9b41421 Remove not usefully variables
| * c7f5ee3 Fix start flash program address for dspic33EP512MU810
| * 1ffb345 Set conversion time to [10ms, 80ms]
| * cf70e17 Change log limit to 2000
| * bdecd9a Add cache to fatfs library
| * 6fb4868 Move disk initialize on board_start
| * 45895ec Remove second f_mount call to allow disk_initialize in board_start
| * 4a70889 Fix configuration
| * a80509b Remove unsued variable in ltc6803 driver
| * cdc6d69 Fix default missing warning
| * 498a82a Add TC charger support
| * d6d41b6 Fix project
| * d86890e Fix dimension mask for ltc
| * 7c0ba68 Fix ltc6803 driver to allow daisy chain configuration
| | * 6092c4a Project Update
| |/  
| * 6c54363 Change sw2 logic about balance performing
| * 8d479e4 Save retain when log file is created. It needs to ensure you do not overwrite log files whenever a segfault happens
| * 9115835 Update configurations
| * cd0d16a (tag: v1.25R01) Revert "Set voltages not used to zero"
| * 6e273b6 Fix delivery script to disable delete all dirty folder
| * 01a0c2d Update P33EP256MU806 linker script to add crt_start
| * e02578b Update delivery script to handle all supported arch
| * c2f6462 Update project to add dspic33ep256mu806 configuration
| * 42664a2 update project
| * 6b8c069 Fix can driver macros read/write queue for eds memory.
| * a5b1377 Add retry to internal RTC init procedure.
| * bad2da0 Delete not used gld file
| * 1f61a43 Update p33EP512mu810 gld file
| * e598adc Update project
| * 5ad82de Can buffer in __eds__ space
| * f43df3e Project update
| | * 89e18b2 update project
| | * f4d23d6 Update gld p33EP512MU810
| | * 24643b0 Add original p33EP512MU810 gld
* | 1652360 update super user permission
 /  
| * 1fc4ccb add eltek charger to variable
| | * 950016f update project
| | * 43c093f Change balance logic.
| | * 1c46bdd Upgrade project
| | * 37adfa3 Upgrade p33EP256MU810 script file for xc16 v1.31
| | * 9ffd8a5 Set voltages not used to zero
| | * 9c0c70a Fix project
| | * b77c78f Fix send multicell
| | * 11e2b02 Start fix multi cells send
| |/  
| * 570df3a Fix send fixed packet
| * ef79261 (tag: v1.25) Workaround to fix sdcard
| * 227a5d3 Fix project
| * e75a9f7 Fix analog current reader
| * 116856e Fix mapping in serial driver
| * e39a09d Add multiarch build to delivery script
| * c5eeb60 Fix switch spi linear dspic33EP256MU806/dspic33EP256MU810
| * eb099d2 Update configuration
| * f298d6c Move remap_pin with unlock RPIN register
| * 21d9d00 Add 2 configuration for dspic33EP256MU806 and dspic33EP256MU810
| * 5bb4715 Fix gld app flash mapping
| * 8295766 Improve readability
| * f1ddbbf Add fix for MPO address
| * d38821b Add support maping hardware pin
| * 3162211 Add scheme reference
* | bc3c013 Minor fix
* | 2e6f4b7 Fix balance procedure
* | 4b50cfe Add define message name like documentation
* | 5965dd2 Add ltc selection capability between ltc6803, ltv6804
* | 16fb97c Force cast enumeration in spi_drv
* | e107146 Fix ltc6803 driver prevent malloc error by barrier
* | 74214b4 First release ltc6804 driver work
* | 3b60d54 Fix typo charger
* | 5ef5c42 Set t_min and t_max value to zero when t_sensor is equal to zero
* | 8d6d96d Remove infinite loop when t_sensor is equal to zero
* | a29dc92 Fix set current date function
* | 3dfa42b Add ltc6804 Driver with daisy chain support
* | 3bc9f55 Add variable description to delivery folder
* | b794411 Fix typo
* | 299f6ca Fix ltc6803 driver reduce stack ram use
* | ea9d7e0 Update variables documentation
* | 662a9a5 Fix balance with ltc6803 with daisy chain configuration
* | e1d7853 Fix driver ltc6803 to allow write multi configs
* | a665429 Fix read cell
* | 5d46aad Set voltages linear pointer 1
* | f1f7e87 Fix ltc6803 driver
* | d8d574d Add support ltc6803 daisy chain
* | 107b956 Revert "Start implement ltc6803 daisy chains support"
* | 6b65c63 Start implement ltc6803 daisy chains support
|/  
* 038c7e0 (tag: v1.24) Fix condition limit check
* f53a37e Filter to limit soc
* 206ebf2 Revert "Change soc logic to set limit value whether OV or UV occured"
* a203fdd Fix typo
* 42cd67f Change soc logic to set limit value whether OV or UV occured
* a4a8c95 In battery_serial_callback drop packet with Id not APP_ID
* 86df0f0 add variable description
| * 42f1e74 In battery_can_callback drop packet with Id not APP_ID
|/  
* 3bc748f (tag: v1.23) Remove wrong added file
* e2e2374 Cluster add clt_vmin_on and clt_vmax_on
* 8ae63c3 Remove infinite loop on iface packet
* cefbad0 Fix test infinite loop and allow restart
* 8235d0d Continue fix about can_bcast infinite loop
* 1a1d103 Remove infinite loop when configurable and fixed packet are empty
* dc1df8d (tag: v1.22) Remove debug variable ad0 and ad1
* a8e06a7 Fix typo in charger source
* 149dc8e Save boot var Remove comment out code
* d516a33 Add Eltek charger support Fix charge cstyle
* 1a4e256 Fix display logic
* 31f8d92 Add display elithion for cluster logic
* 31cd9b3 (tag: v1.21) Fix cluster limit not in range to 20
* 0de84c6 Set can_bcast default to 0x11
* cb6c6b8 Fix check mask about bcast
* 71aca43 Add different broadcast packet send values.
* 18dd1f6 Add counter filter cluster not in range
* 3ddc5e7 Remove flt_cnt from log
* b2aa73d (tag: v1.20) Add filter counter error sw
* e9726db Remove cell filter
* 8b28bf4 fix min value filter to 1.0
* 69549a8 Add new cells voltage filter delta
* 4e3259f Fix clt_i_ds calculation
* c5ddd1d Cluster fix min clt_soc to 1. Note zero only when a bms is unlinked
* f563d61 Fix bug soc calculation When a cell is less than v_empty_soc soc must be set to 1
* 6ab7ca5 (tag: v1.19) Set WDT timeout to 4sec from 1sec
* 744aad8 (tag: v1.18) Refix temperature init
* 64930a6 Fix init temperature values
* 6ec3aa9 Write contactor gpio when status change Fixfilter to 0.8
* 00b1422 (tag: v1.17) Cstyle
* 5d8ddfc Skip folder on list file
* 2e0da7f Fix clt_num_online calculation
* 0c2ba7e Increase db size to 210 variables
* b83ef2d fix end user permission
* 2aaa782 (tag: v1.16) Change v_cell_flt permission
* 7cb9b78 Add new timer contactor
* 7819592 Fix project remove hts221
* a46e6a9 Disable read linear values for approximately 500 msec after closing contactor
* 51b795b ltc6802 add initialized field
* b9de650 Fix undervoltage
* 6f7f851 Fix filter formula in ltc6803__convert_voltages()
* e88f58b Add v_cell_flt for voltage measure filtering. Init value to 0.2 Add v_flt to ltc6803_t structure Apply filter in ltc6803__convert_voltages
* 94a5672 Fix ROUND macro for negative value
* 44d6172 replace clt_i_serial with current
* 581fdc5 Remove clt_sw from clt_i_ds logic
* d325681 Fix clt_vmax/clt_vmin round Fix clt_num_online counting procedure
* f086b7f Ref. 91 Add clt_i_cg and clt_i_ds procedure
* 1a4ecf4 Update database
* 31eed98 Minor fix
* bda5f95 cstyle
* 0dbd546 Fix init temp current cluster
* 1b293f2 In can_schedule_handler() fix producer_t overflow
* f051307 Remove all option in delivery history to show only current branch commits
| * 88370fb Fix board_handle_discharge and board_handle_charge start condition
| * 9031958 Continue to implement hts221
| * c465c26 Start to implement hts221 driver
| | * 5906f31 Fix feed_tel logic
| | * b82d6e1 Fix cluster_not_in_range calculation
| | * 4d58994 Fix cluster not_in_range
| | * 2417218 Ref. 97 Add clt_sw.charge_hysteresis to enable_charge
| | * bf11786 Add contactor error to enble_discharge
| | * 8536962 Fix clt_sw declaration
| | * 72e6bae Add not_in_range flag to clt_sw
| | * 067e7d9 Ref. 92 clt_current sum all online in/out current
| | * 917b40e Ref. 95 Implement clt_sw Ref. 90 Round clt value (incomplete)
| | * 47ec464 Ref. 83 Optimize timer clt_tmr send
| | * 7b472ab Move contact_error to sw Move balance_performing to sw2
| | * 213c803 Fix clt_v_serial round
| | * edda503 Add check overwrite in parser canbus line
| | * 8298561 Add cached search in parse fields
| | * a150e2d Move cg_i_out and cg_v_out to own module
| | * 76a38b8 Add debug var lneflag
| | * eaf3325 Fix cluster enable discharge when offline bit is on
| | * 86b6261 Set bms_current to retain to save value in manual mode
| | * 1487176 Fix typo error in parser doc
| | * 12b4e76 Fix error log status
| | * 0081c49 (tag: v1.15) Add frozen cg_ds_mode option (0x4)
| | * 5414b51 Add remove dirty folders by script delivery
| | * 9f4fea0 Fix board handle discharge and board handle charge start condition
| |/  
|/|   
* | 9299cd4 (tag: v1.14) Add viasat reset to restart internal machine
|/  
* a192ac7 (tag: v1.13) Remove set i_calib to 255 when i_zero_ofs || i_sensitivity are equals to zero
* 943289a Sort variables db
* fe2d379 Fix .gitignore file
| * 0fe23e8 Fix i_calib reset from 255 In board_handle_current reduce zero epsilon value
|/  
* 73d90a4 In board_handle_current_calibration do not use i_calib as state machine variable In board_handle_current_calibration_sensitivity reduce zero epsilon value
* 1341872 fix bug end temp conversion
* e1fa369 Add ad0 pin 2 and ad1 pin3 current connector Remove get_battery_state function
* b9e8be7 Fix can_tmr change
* 3c3579a set to bms check for power off state machine when pwr_mode change
* dc71748 Set internal_err to zero when board is switch on.
* 318a975 Add internel_err variable
* 04064aa Remove arithmetic on a pointer to void
* f595fd5 Increase code readability.
* 4d39d1f Fix protocol to get error when sd card was removing during bms run. Replace sd_card bit name sw2 to sd_card_error.
* 690ebe4 Disable fchange when noupdate is enable.
* 712905a (tag: v1.12) In protocol cmd_a_set_var check value changed before save and call f_change
* 5bdd463 Split A/D conversion 12bit for current and 10bit for temperature
* d139962 Remove malloc db table
* 57030d3 Remove btree not usefully
* 668ad7b (tag: v1.11) Add viasat hysteresis 0.02V on turn on
* fdf0fa7 Viasat add VS_CON_POWER (mosfet to enable power)
* 177563b Fix broadcast commands
* 3549c99 (tag: v1.10) Fix soc logic on canbus display ELITHION
* 7a85e1e (tag: v1.09) Fix log list fields
* 7800956 Restore local_soc value on start up
* d0a5d35 Fix check version function
* 3272f55 Start to support broadcast command. Broadcast command have id == 0 Note: set_var need to check version before write value
* 732be8f Fix bms_current permission to allow edit by manufacturer user
* e9a932b Add cnt_current variable
* 81b752c Fix display ELITHION soc level
* ae5a0d7 Remove some warning about not initialized variables
* 8ef1d4d Increase security buffer overflow
* c701b19 Remove unused variable
* dad6a84 Remove duplicate include
* cc62cc3 Fix and improve bms_current Add have_sht_bms variable to get information about  whether bms have a shunt circuit on board or not. Increase precision to function soc calculation. Add function to set soc function. Invert sign bms_current variable.
* cf87f94 (tag: v1.08) Remove unused variable
* 2df4848 Fix temperature conversion
* 5956d22 Add bms_current variable to DB Add board_read_current_shunt() Fix temp enable pin reset
* 568898a Add A/D channel AN18 for bms current Activate AD2 and set A/D resolution to 10bit
* a8f0e2a Add wdt refresh in retain_update
* 9e0a0c0 Fix project
* aafd3c8 Remove not used variable
* cd1979f Fix warning
* 20783b1 Remove not used battery state name array
| * 0d8e5d7 Drop next packet if current packet is in progress
* 3116af3 Add display ELITHION LED Handle Blue   = Full Charge Green  = Power Yellow = Warning Orange = Error Temp. Red    = Error Volt.
* bf836ab Fix cstyle
* 74ec22c WDT enable with 1sec period
* 6ec79d1 Add Makefile to ignore list
* 6cbca78 Remove Makefile
* 4f5f56a Remove noupdate
| * ca0a202 Board. Fix interrupt priority init to 0
| * 34d31b6 Serial. TX not in interrupt Single buffer for Tx and Rx Interrupt. Use INTCON2.GIE bit to enable and disable global interrupt
|/  
* d204317 Serial use USART2
* cdbbcfd Serial protocol schedule timer to 10ms Fix ext switch check during balancing phase in monostable and bistable handler
* 3fd98c8 Remove serial_producer and serial_consumer.
* 5f40659 Try to eliminate reject.
* 9e5146d Board init TRISG register of serial pin Set serial baud rate at 500000
| * 346133a Minor fix
| * 80b433e Set serial baudrate to 500000
| * f91e25a Fix address error about malloc
| * 4b75b32 Fix warning about sign/unsign missmatch
|/  
* 6fd74c1 serial. Read duumy data in serial_flush Add serialTxComplete flag Flush serial after protocol timeout
* ac0820d minor fix
* 8aaccf8 Revert "Remove division by zero when t_sensor is equal to zero"
| * f2d592a Serial: change interrupt priority RX 4, TX 5, TMR4 3 Read 1 char by time from serial Reset RX and Tx interrupt flags at the end of interrupt routines
| * 87caac7 Rx interrupt priority 7 Clear serial buffer if serial error occurred Read 256 byte in serial_schedule_callback
| * 9dba51b Reset serial_error flag Change rx and tx interrupt priority to 5
* 6cdd682 Fix handle fan and heater
* 21755cf Remove division by zero when t_sensor is equal to zero
* 1f279b3 (tag: v1.07) Update mplabx project
* b17deb9 Remove recalibrate current
* 316cfbd Fix serial send handler
* 40d2680 Fix rtc handle
| * 97a3d8c Project Update
| * 43822a2 Project Update
|/  
* 1314876 i2c_drv. delete write to Tx and Rx register in init phase before I2CEN
* e221a50 Force turn off power supply at BMS_POWER_OFF in monostable mode.
| * 14829fb Project Update
|/  
* d2ab2f6 Fix warning
* ae0ce17 Add Write buffer to serial Add consumer and producer list to serial Add handle_serial_protocol_packet() and battery_serial_callback() in battery
| * f87e295 Force turn off power supply at BMS_POWER_OFF
|/  
* 7730043 Fix climatic handler. Add Peltier cells procedure handler. clim_cfg = 0 --> Fan/Heater on Shunt            1 --> Fan on BMS            2 --> Heater on BMS            3 --> Peltier cells
* 60d9088 (tag: v1.06) Fix timer counter and soc precision. NOTE: last_tick must be update as soon as possible after tm_diff is calculated.
* c43b46f Change permission to current field
* 66616e0 Set counter timers writable only by manufacturer user
* b9fc58c Remove useless header declaration
* e6824c0 Fix counter timer. Change counter timer from hours to seconds.
* 0927cd8 Convert to unix format
* f534ba6 Replace with function
* 4dd93ef Move up declaration
* 57efce2 Add barrier to rx data check pecs malloc
* 5acd046 Linear. Test atomic malloc. Disable global interrupt before call
* 61f34c7 Round current to 1 decimal
| * e932ecc Change mplabx project
| * cb53da1 Change RawVoltage union structure
|/  
* 135a708 Cluster CS_BROKEN force enable_discharge and enable_charge to 0
* 8a7ebfa T2 scheduler tick to 2ms
* da78462 Save back trace on MathError
* cecc8c0 Fix save backtrace on run.
* 2f6cf43 Remove standalone
* 0a61b88 Stack Trace in Address Error
* 52d1580 Cluster. Fix off_line flag In cluster_foreach_element_of_line force an element_packet of master.
* 95ccc26 Fix warning c30 compiler
| * 7517b5e Stack Trace in address error, math error and stack error
|/  
* 7081e09 Fix warning about CERT C. Prevent division by zero when capacity is equal to zero.
* 3cce425 Fix CERT C warning
* 201c623 Avoid access violation when malloc fail in btree source
* 6ee86c9 Fix some clang static analysis
* 70c325f Fix memory pointed to by 'tmp' is freed twice
* ac8ede8 Remove baseid and canbitrate
* ecd9c36 Rename some db variables
* 82edf1a Fix some warnings
* 81f47a0 Fix some waring about parasoft tool
* 49a16ef Cstyle
* e1fa538 Fix parasoft warning
* f868509 Fix iface handle can allow parsing when bms is not the interface.
* 135df9a Implement coredump
* d06ee9c Fix .gitgnore file adding swp files
* 967fc27 Ref.67 Fix status word balance_performing logic when cluster is enable
* ad59b96 Ref.74 Fix temp cluster current declaration
* d2a59d1 Free correctly memory when check retain write fail
* 2d9b35c Ref.80 Rename clt_el_state to clt_state
* 40d68f0 Move boot flash address to flash.h
* 3433ccd Fix board_updtate_boot_var call
* 398336b Add board_update_boot_var to save baseid and can_bitrate in the 2nd block of aux flash
* 521d120 Project update
* d7af6e0 Test __eds__ with C30 compiler
* 660dc50 Project Update
| * 2f8f917 Update bootvar on change baseid or can_bitrate
| * da3e91d Disable parser_error on iface config bits when cluster is not enabled
| * fd2527d Remove wrong function battery_balance_on and replace it with balance_performing bit instead.
| * 1d94aba Set project compiler to 1.26 version
| * 25afa02 Set baseid and can_bitrate only when project is built with STANDALONE macro and retain is not valid
| * c392c26 Remove warning about PRO compilation project
| * d8e1f4b Revert init baseid: Now application get baseid from bootloader
| * 0c4cd45 Revert "Fix cluster_offline logic"
| * 7c60c1d Increase heap to 14500
| * ced407d Fix sign cluster current
| * 74f9ce9 Disable iface packet when cluster is disable
| * 30ab270 Add iface_bid base id to send iface packet. iface_1.id = iface_bid iface_2.id = iface_bid + 1 iface_3.id = iface_bid + 2
| * 1936841 Fix permission ifaceid variable
| * bbb9907 Remove internal error bit in status word 2
| * 5b4ea7f Set sw2 viasat_nocharge bit only when viasat management is enabled
| * f86d064 Ref. 70 Limit ifaceid between iface_mn to iface_mx
| * 7894e50 Ref.75 Replace name clt_v_min, clt_v_max to clt_v_se_min/clt_v_se_max.
| * 094e255 Ref.73 Remove model_cutoff
| * 4c84a26 Change balance logic: use clt_v_min like balance voltage target
| * 997bcdb Disable display packet on initial
| * 828c49b Fix close loop parsing iface config strings.
| * 3318f16 Fix elithion display logic
| * 165ae72 Add handle extern display 0 - NONE 1 - ELITHION
| * 9bd5b8d Fix cluster_offline logic
| * b2cc257 Fix handle iface packet
| * 45105bb Fix iface parser and add parser_error result
| * 837dd1b Add cmd format
| * e729137 Remove code comment out
| * 45dbd6f Exit on cg_current is calculated
| * 0909b0e Rename clt_to to clt_tmo Fix retain iface_mn/iface_mx
| * c2f34ba Fix warning about unsigned/signed mismatch
| * 116cecc Fix connect sensor type
| * 5fab1fa Replace i_sensitivity to i_sensity Fix typo stby_time
| * 4e00a69 Fix name charge_time / discharge_time / standby_time Set max long variable name to 12 char
| * c00949b Export t_avg variable
| * f735e3f Remove trailing line
| * d783262 Fix max temperature calculation procedure. Now t_max can assume a negative value
| * bcfebe0 Switch to derating current when temperature min is less than zero celsius.
| * 0a35497 Fix charger logic
| * 1fb9cae Export cg_i_ac variable
| * 2f6500f Fix typo charging current calculation
| * d929007 Fix conversion time to 20ms
| * 4d45eb5 REfix delivery
| * 3b1ab43 Fix typo delivery
| * 3dd2fd0 Fix voltage average calcultation
| * 13ccae3 Add delvery script
| * 2d1818d (tag: v1.05) Filter temperature
| * 8c30c54 Change charging current logic
| * 089ab10 Remove charge phases. NOTE: START TO IMPLEMENT LOGIC LIKE MASSIMILIANO AND ANDREA
| * 94da502 Remove charger extern declaration
| * cd09e33 Remove STRING_DT from parser
| * 1c01837 Cstyle
| * 3643684 Fix cstyle db
| * 0a06912 Replace model variables
| * 3242bdb Replace cell_cutoff_voltage to model_cutoff
| * 90a81c6 Replace cell_nominal_volt to model_v_nom
| * 1a57206 Remove cell_internal_res
| * 6cf5845 Remove cell_rated_capacity
| * e5b737f Replace cluster_offline to clt_offline
| * 3502899 Replace cluster_unlinked to clt_unlinked
| * b6cfc5e Replace cluster_soc clt_soc
| * f4b3bb4 Replace cluster_current to clt_current
| * f09333e Replace cluster_voltage to clt_voltage
| * 4951018 Replace cluster_vcdiff to clt_v_sbl
| * 63135da Replace cluster_vcmax to clt_v_max
| * fc07e11 Replace cluster_vcmin to clt_v_min
| * 231731b Replace cluster_vdelta clt_v_delta
| * 59c4f5a Replace block_voltage to clt_v_blk
| * 659fc2b Replace line_soc to clt_socline
| * 4c939b2 Replace serial_current to clt_i_serial
| * 2603dc1 Replace serial_voltage to clt_v_serial
| * 11528a0 Replace element_unlinked to clt_el_ulk
| * 86ac4f3 Replace element_state to clt_el_state
| * 25ffda0 Fix edn ctrl packet len
| * 1f31e31 Replace cluster_timer to clt_tmr
| * cca1851 Fix some warning
| * b4197e1 Replace start_time to clt_tstart Replace cluster_ts to clt_to
| * 9c1fe96 Replace start_time to clt_tstart
| * 5acfeeb Replace cluster_map to clt_map
| * b1f1f33 Replace cluster_addr to clt_addr
| * 80d3cb8 Replace cluster_enable to clt_en
| * b012ae8 Replace cluster_interface to clt_iface
| * 5c03c05 Replace iface variables
| * 40a2df5 Replace iface_timer to iface_tmr
| * afc781f Replace soh_at_nominal to soh_at_nom
| * d5702dc Replace nominal_cycles to nom_cycles
| * 4ac557a Replace dmax_current to i_ds_max Replace can_termination to can_term
| * e27b964 Replace dmin_current to  i_ds_min
| * c54ca32 Replace dmin_abs_current to i_ds_min_abs
| * 6370a56 Replace dmax_abs_current to i_ds_max_abs
| * 912e641 Replace max_unbalance/max_unbalance_wrn to bal_gap/bal_gap_wrn
| * 3862484 Replace balance_duty to bal_duty Replace min_voltage_balance to v_min_bal
| * cd0e7f3 Replace can_timer to can_tmr
| * 0391fdf Fix model var init
| * b4c8619 Remove useless function in ltc6803 driver
| * 11116a5 ltc6803 remove function useless
| * 8d2b9dd Replace kwh_charge/kwh_discharge to kwh_cg/kwh_ds
| * ae4dfff Reduce ram utilization
| * e77e745 Reduce static ram
| * 46b6987 Replace viasat_enable to viasat_en
| * 19fe908 Replace temp_curr_wrn to t_ds_wrn
| * 8698005 Replace v_discharge_1/2 to v_ds_1/v_ds_2
| * b8768ba Replace fanheater prefix to clim
| * 8e171ec Reduce size filed in retain entry
| * 677b3e4 Replace v_charge_2 to v_cg_2
| * 7157013 Continue replace variable name
| * 1017d71 Replace voltage_empty_soc to v_empty_soc
| * 41d1ed2 Replace nopeak/peak_timer and voltage_full_soc
| * a7bfcbd Replace charging_current to cg_current
| * 27dbdbc Replace parser_error to parser_err
| * 373346d Replace setpoint to v_setpoint
| * c6dff0d Replace i_max_charge to i_cg_max
| * 272e76e Replace current_limit to i_filter
| * 1e55263 Replace i_calib variable
| * 8a9488a Replace some variables
| * d20f7fd Fix name module charge
| * 433abda Replace gap_max_hysteresis to cg_hys_gap
| * 8a1b9f9 Replace min_voltage_wrn to v_min_wrn
| * e04f423 Replace mac_voltsgr_wrn to v_max_wrn
| * 69011b8 Replace cell_user_min_volt to v_min_user
| * c97b3e4 Replace cell_user_max_volt to v_max_user
| * 0d8a300 Replace cell_vmin to v_min
| * 53c1de4 Set cdate init to zero
| * 4707f75 Fix rtc and t_sensor limit
| * b65bef9 Start to implement change rtc date. Add CONNECT macro to connect variable and Cstyle
| * c7f9f2b Giroscope remove spi init from driver
| * 8082099 Add current derate used to set ctrl current when cells temperature are under zero celsius.
| * 616826a Add charger current min to limit current control
| * c5a44bd Cstyle
| * d8bf4ea Fix charger logic
| * 6a3ca97 Remove typo on charger reply handle
| * 6367344 Try to fix charger
| * 776032c Fix warning
| * e114a96 Fix can received buffer Note: seg faut after 5 minute
| * c4ac9e8 Fix building on dspic33EP512MU810
| * c5fde7e Comment out cdate
| * 1b0765b export missing variable chrg_current_ac
| * dfe74a7 Replace cell_vmax to v_max
| * 99cc410 Add date datatype and cdate
| * 8c62682 Remove useless variable user_pec_err_limit and create a constat macro
| * 341d957 Replace pec_err_count_0/1 to lin0/1_pec_cnt
| * 83cb246 Replace linear_1_num_cell lin1_ncell
| * af73a07 Cstyle
| * 7424dc3 Cstyle
| * 66953f2 Replace linear_0_num_cell to lin0_ncell
| * a2a7f2a Replace temperatures to temp
| * 18422bc Replace cell_tmin to t_min
| * a902162 Remove useless function get_min_temperature
| * 9a437c3 Fix parser adding UB,UW,UD to handle signed/unsigned type
| * 8361611 Remove useless function
| * b9de0a5 Replace cell_tmax to t_max
| * 1a07046 Cstyle
| * 14c7e07 Ref.59 Fix save on log temperature and voltage cell values
| * ea88204 Add current ac in charger
|/  
* 7e8e66a can_drv enable 3 Rx buffer fifo
* 20264d5 Can test 2 RX buffer
| * 02d9f6e change edn ctrl packet
| * d0921d4 increase to 800ms protocol timeout
| * 3719ff4 charger enable retain
|/  
* f9599be Bug 27. Verify condition after timeout elapsed.
* 2b24f7d Replace min_temp_dis_wrn to t_ds_min_wrn
* 18ff4a2 Replace max_temp_dis_wrn to t_ds_max_wrn
* 1d95912 Add pwr_mode_change to restore monostable and bistable state machine
* 1ecfd10 Add pwr_mode_change
* 4282678 Fix db declaration
* 116b7e8 Replace min_temp_chr_wrn to t_cg_min_wrn
* c9ce85c Fix typo
* 0a80c9a Replace max_temp_chr_wrn to t_cg_max_wrn
* 1065216 Remove comment
* 7e1162a Fix set change function to current_sens_type and t_sensor
* d864117 Replace min_temp_dchrg to t_ds_min
* e43f87f Replace max_temp_dchrg to t_ds_max
* 7120a86 Replace min_temp_chrg to t_cg_min
* 375d382 Replace max_temp_chrg to t_cg_max
* ddf0cdc Add t_sensor change
* e2ff740 Replace temperature_sensor with t_sensor
* a412acc Replace feedback_enable to feed_tel
* dbf9cc8 Replace lock_warning to lock_wrn
* 4598475 Update project
| * f4e99be Offset and Sensitivity for each type of sensor Offset multiply by 1000 Add current_sens_type_change to current_sens_type variable item
| * 8d8a7c2 Add fchange field to variable item
|/  
* 88437ca Replace delay_dchrg_on/off to del_ds_on/off
* 900d5f9 Enable building dspis33EP512MU810
* e8b3df3 Replace delay_chrg_on/off to del_cg_on/off
* 053e269 Replace canpacket_1/2/3/4 to fram1/2/3/4
* d04ee04 Replace cg_dis_mode to cg_ds_mode
* cb7a1ed Replace power_auto_off_time to pwr_auto_off
* 17fcc7d REplace delay_pwr_off to del_pwr_off
* 8b22b8b Replace ifacepacket_1/2/3 iface1/2/3
* 9725773 Replace delay_pwr_on to del_pwr_on
* af43eb7 Replace power_mode to pwr_mode
* f50b141 Replace need_chrg to need_cg
* a34d81d Replace serialnumber to sn
* 74b7d14 Replace fw_version to fw_ver
* 10059e1 Remove redundant cluster_tp variable
* 70c7c04 Fix um max_unbalance and max_unbalance_wrn
* 595d339 Replace database
* b214680 Add standby/charge/discharge time
* 32a43f2 Remove waring not used
* 1222356 Fix warning
* eb6e0db Fix not initialized variables
* a66ae7b Revert "Update FatFs library to R0.12"
* 159d5a6 Move variable declaration to db.c
* 252262b Add pick kit to conf
* a37b595 Update FatFs library to R0.12
* 8bb1c04 Implement protocol delete file command. Note: Error list is changed!!
* 4863dc3 Add cg_dis_mode to switch security logic. 00 = charge -> enable_charge , discharge -> enable_discharge 01 = charge -> enable_charge , discharge -> enable_battery 10 = charge -> enable_battery, discharge -> enable_discharge 11 = charge -> enable_battery, discharge -> enable_battery
* 2ca99a2 Remove warning about unused parameter
* 179231c Fix Um to current_zero_ofs and curren_sensitivity
* 5aa3b53 Refix filter_undervoltage at standby state
* a2a0ae3 Fix filter_undervoltage
* eaee80a Increase temperature hysteresis
* 181db7a Add check about temperatue_sensor
* 93fc303 Fix sw ov_occurred / uv_occurred when almost voltages reached abs limit Fix sw/sw2 initial status
* 89919e3 Remove filter voltages not equal to zero when cell_vmin and cell_vmax are calculated.
* c756917 Add max current limit +/- 1000.0f
* 6b09fac Fix UM
* 55b5458 Fix size and um about current_adc
* 4833faf current_sensitivity multiply by 1000.0
* 4d76c85 Fix lem sensor calibration
* f2dd072 Add min_limit temp variable in discharging current
* 54d13ea state variable set to readonly remove num_cells variable from exported list
* 07a39a8 Fix sign discharging current peek/nopeek replace cell_vmax to cell_vmin in line replace dmax_current to dmin_current in line
* de4a1df Fix retain dmax_abs_current and temp_curr_wrn
* 4f31e7f update mplabx project
* b545af0 save discharging current to log file
* c577894 Fix temperature average calculation
* e1ecaac fabs(current_target) have to be less than current_limit
* 3e946b0 Fix logic
* 67a987a Fix battery update remove board_update
* ec60055 Delete cal_err Set current_calibration to 255 to signal calibration error or invalid current sensitivity
| * a31e9dc Calibrate only one time at BS_INITIAL
| * c390a82 Fix reset soc Ref. 50
| * c7eefaa Fix log splitting
|/  
* 2a779b1 Add cal_err to trace errors in calibration process or no calibration at all. Can protocol timeout reset to 200ms
* f97daa9 Calibrate timeout protocol
* fd49cca Add splitting file when log_size > 2MB
| * a0e9a8b Set Protocol Timeout to 2000msec from 200msec
|/  
* 980e961 Avoid division per zero to ntc_convert_temperature function
* 92919f0 Fix enable logic viasat
* 2be2c72 increase heap
* 4c87436 Revert "Revert "Fix handle current calibration: reset current_calibration when command is""
* 4093773 Export current_limit and remove max_voltage_limit and min_voltage_limit
* 9fb3d23 Revert "Fix handle current calibration: reset current_calibration when command is"
* ff8cafb Fix handle current calibration: reset current_calibration when command is not correct
* c90a421 SEt CALIBRATION command to: 1 = ZERO 2 = SENSIVITY
* 144c90a Add check values readonly permission.
* 8fe4b6c Fix parser check range to avoid buffer overflow
* c7f88b8 Fix set default value to CANBITRATE and BASEID when ratain is not valid
* c4f0625 Add soc to log file
* b55df23 Fix log field
* d5978f6 Fix .gitignore file and add missing file
* fb8be18 Update project mplabx
* 698a591 Set default baseid and canbitrate only whether STANDALONE is defined
* 5d4c9d7 Fix status word bug Ref 37
* 94bcc27 fix balance procedure
* 4e58961 Fix balance logic
* 3b81396 Fix status word
* dc0effa Fix warning
* f15bd9c Add trim to parser line
* 4e91bdd Close already opened file when command open file is performed.
* 28a47c6 Fix create_packet_reply_accept with data buffer null
* 720cedf Fix error check null pointer
* 5fe0d82 enum protocol_error_code_t aligned with bootloader Configuration bits ALTI2C1 ON. I2C1 is on alternate pin (69, 70)
* 5a464b6 Fix parser_error [bit0 == error config1... bit3 == error config4]
* d16a2d8 minor fix
* 1fade47 Cstyle
* c7cc98c Put inline convert temperature
* 0707c69 Minor improvement in linear driver
* 8e62f40 Add check null return malloc in protocol
* 58c1b68 Fix error read voltages when linear is not present
* ffcd49a Fix sign discharging_current note: parameter are positive but discharging_current is negative to underline is discharging. Current Sensor can be mount reverse but current_sign is used to fix. All bms logic use positive sign to charging current and negative to discharging.
* e2bb0e8 Add delay (200ms) to exit from BS_INITIAL to wait linear init. Remove current_max_charge/current_max_discharge. Fix status word using charging_current / discharging_current to current_in_range Remove current_in_range from enable_charging/enable_discharging
* a71c10d Export max_unbalance_wrn. Replace max_diff_unbalance to max_unbalance
* 897fa65 Export max_diff_unbalance. Ref 25 Set default value to min_voltage_balance to 3.2f
* 9c6326c Bug12 board_bms_is_powered reset after auto off request
* 364f3f3 Extend soc range limit to all battery state. Ref. 28
* 142c46e Revert "Bug11 set st_mono to 1 to force rising edge for bms power on."
* 05cb276 Bug12 initialize st with enum value Modify condition to evaluate AutoOff
| * 45b6027 Fix protocol errors
|/  
* dec8ce6 Bug11 set st_mono to 1 to force rising edge for bms power on.
* 6c4f1ff Add error_send_block to protocol enum errors code
* 2c3a919 cstyle
* 47740ec Bug11 Create board_handle_power_bistable and board_handle_power_monostable Monostable: pulse falling not requested for state changing. Accept bistable commands
| * e2faf6b Add minimal voltage check to allow balance. Export to db min_voltage_balance
|/  
* a0b0483 cstyle
* 7316157 Fix monostable procedure
* c96bc68 Cstyle
* 3d060c4 Remove trailing spaces
* 911db42 Remove waring about static function no implemented
* 637c026 Export temperature error limits
* cdb3309 Fix Bug11 e Bug12
* 45417d0 Project Update
| * 6135cfe Add temperature hysteresis into sw logic. Ref. 23
| * 18679b0 Save ov_occurred into retain value
| * 6eaf165 Add reached_abs_voltage_limit to enable discharge logic
| * 6699c00 Fix script batch cut commit
| | * 65f0619 Fix typo version.bat
| |/  
| * 0ef94dd Try to refix batch
| * 7525acc refix
| * 715864b fix version batch script
| * 576ea6d Add small commit reference in fw_version variable
| * d5d0ff2 Change current_sign datatype from real to sint and replcate um
| * 9b35385 Comment out not used cell model variables
| * cb8e79f Remove space
| * 54ff603 Export delay charge and discharge open/close
| * fbf61fc Add need_chrg variable to show when battery need to be charged
| * 5b9c04d Set mem_waring to zero if lock_warning is off
| * 1bff18b Replace undervoltage_occurred and overvoltage_occurred to uv_occurred and ov_occurred Export uv_occurred variable
| * 6c6ee57 Replace power mode enumeration name
| * fb461ea Remove voltage_diff from variable db
| * a568d1e Fix enable/disable viasat
| * f4975d8 Improve dirty handle in version.bat script Fix typo version.sh
| * 051d6c1 fix typo in version.sh script
| * 469f704 Add parser_error a variable that it return smaller line index where parser fault
| * ccceb17 fix script version to handle local commit
| * c0090e2 Fix syntax
| * 8a3f309 Update script batch to get dirty when commit is not tagged
| * 96224cf Update script bash to get dirty when commit is not tagged
| * 96e25bf Force log_status to zero when log_enable is disable
| * d79eb5d Remove drop packet debug variable
| * 2d16d22 Remove setpoint_enable Now balance is performed with this row: voltages[i] > cell_vmin + max_diff_unbalance) || (voltages[i] - setpoint > 0.01)
| * e22830a Replace and export sw2 limits
| * 5a343ee CStyle
| * 173c851 (tag: v1.04) Fix some warning
| * 3502cb3 Fix no standalone version
| * 64fabfe Fix warning
|/  
* cab4121 protocol fix casting
* 23e169c Fix can initi about standalone version
* 982be9f cstyle
* 89307d8 Minor fix
* cda6eb8 Fix adress error in protocol handle
* 6bd0e3b Replace errcode with error
* da230c1 Add STANDALONE macro
* c0ca407 cstyle
* 14b6e46 protocol can_id offset to 0xC protocol ad cmd_a_abort
* 1bb9da9 project update
| * 55c6ca6 Remove mcv file
|/  
* 628258a exclude *.map
* 2befbcc protocol add error code
* 6305d8d noupdate on reset
* 0849cef Add noupdate command
* 9b3ed59 Remove battery source hardware dependecy
* 2d616d2 Minor fix
* 51ee58a Fix some warning
* f1c75bd Remove duplicate code and minor fix
* 8f8188c Add missing update number of cells
* 311795a Cstyle
* 328c71e Implement i2c_wait to improve readability
* 931ec97 cstyle
* ed81018 i2c_drv timeout value depend on speed settings
* e2824eb Update hts221 driver
* 5f1b8d1 Fix i2c address hts221 sensor
* 5a146fb Add missing include
* 0704d97 Add data time into log file header
* 9cb718b Fix typo
* ade06d9 Remove empty line
* fed95cc Add long register to ic2 read and write
* 45f15f9 Fix mask to get mount from DS1307 rtc driver
* c9874ec Fix i2c write reg
* e7f38d5 Add check rtc data
* 652da8a Fix i2c read reg
| * 4445684 project update
|/  
* f6f0647 i2c_drv adjust timeout in interrupt flag check
* cf1c157 i2c_drv fix flag check in start condition
* 9a61d55 Fix while check register
| * d6d1258 project update
| * b7cdf52 project update
* 617965e Fix offset value
* ed47cf8 Add a bit ofs to ifs register bit
| * 118734d project update
* c60b203 Fix check/reset function
| * e2cdac7 project update
* 122a8f6 Re-merge with Luca's version
* 3d0f5bf project update
* 2a8cb8f hts221 add change i2c api
* 8f0007d Prevent wrong code about change reg address
| * d76401f i2c_drv tx and rx byte function fixed and tested without slave device
* 29a293c ADD ADDr
* 38d6651 Add break on retain check write fail
* 30ec885 minor fix
* 6a27bcc Fix protocol size check [there is a problem with subdir]
* 0d69a90 Add return on i2c_start/ i2c_stop / i2c_restart
* 012c5d2 Fix i2c init procedure
* f1ab046 Fix i2c api
* c5d441a Enable i2c
* 0a012d7 Fix write/read i2c
| * 7bd18e3 project update
* 0a1c085 Change i2c api
* 08edcf3 CStyle
* 8d5b8ae Start to integrate rtc
* 4a7e5f9 Fix read i2c
* 81c3bdc Move spi init buses from driver to board init
* a7a9edc Update gld script
* a740afc Update commands protocol
* ab38ad1 Fix i2c api
* a934024 Replace constant name in ds1307 driver
* 286f9e5 Minor fix
* e31d685 Complete rtc driver
* c542266 Start to implement ds1307 driver.
* 09b1ef1 start to implement hts221 sensor driver
* 65f805b Cstyle
* 0c6274e Timeout on check header fails
* c265f11 cstyle
| * 11080bd project update
|/  
* 5a89a0b protocol cmd_a_get_fblk check block number
* 00ede09 reply reject add debug parameter for test
* c0ab2b6 test log
* a9976d0 Reject packet during process command
* de27a0d fix buf
* 22d0d90 increase speed
| * 50480a1 Project update
|/  
* 244b37f fix log
* ffe4a45 Fix mutex
* 652800a sd_card rename sdcard_presence as sdcard_error. Add sdcard_check battery sw2.sdcard is set when sdcard error
| * 7d2ae7e Remove format sd on reboot
|/  
* 041618e Fix mutex acquire/release
* 07cc6c2 Refix mutex
* 793b727 Remove trailing spaces
* b59dda4 Finish mutex
* 6651504 Start to implement mutex to allow reentrant read/write on sdcard
* a1f2ce8 cstyle
* fb3b719 protocol send file
* 0125fc5 Update project
* 6d7a648 Project Update
* ad0666c Update Project
* 2b9eadb Update project
| * 62fa00f Remove simulation parameter from log
| * e58dd55 Change name protocol command
| * e4dd34a Fix cstyle
| * d5b128e Fix sd log multi-reply
| * dcfeb97 cstyle
| * d69de13 protocol: fix reply TODO: we need to implement command with multiple reply. We decided that the client continues to ask and the server sends a EOF when data to send are finished.
| * cb1b138 log: Fix zero log
| * 6899257 fix error
| * e9c79ec protocol: Add get list file command
| * 79ae292 Change protocol reply packet. Increase header packet timeout.
| * 816a928 baseid change only on reboot
| * acfcf17 Set end string char in variable description name
| * 47ac999 Replace board_temp_sensor to temperature_sensor
| * 2f358f6 start gyroscope
| * cf74ddb Minor fix
| * a76bc8a spi_drv: Return error spi read with size equal to zero
| * adf3419 spi: fix spi_init buffer overflow
| * 01426fd protocol: add missing include header
| * 44c3ca1 cluster: remove comment out code
| * caa3724 protocol: adding reboot command with saving parameters.
| * e8bb058 battery: add serial numer
| * 9178f10 board: reduce variable name
| * d789959 battery: cstyle peak current
| * 83a4477 battery: remove redundant / wrong code into peak procedure
| * 4ee1b11 battery: fix peak procedure
| * 0649dac battery: fix discharging current procedure
| * c22150b cstyle
| * 107ae31 Fix soc with soh capacity
| * 2d3c7f8 battery: fix cycles
| * 0fd6b41 cluster: fix default iface timer value
| * 6b18c5a battery: fix unit misure
| * 96c8be3 battery: fix cycles variable
| * e95be82 Remove math error
| * 16e784a Implement discharging current
| * f02ead7 Implement soh algorithm
| * bf53684 Remove define useless
| * af4fd94 charger: start to implement charger logic and EDN support
| * 1ddfd88 Start to implement chargers handle
| * 87d3ad5 minor fix
| * 7dd79c7 all: continue documentation
| * 2db9e83 all: fix document style to use with doxygen
| * b08b0d6 Start to fix code documentation using doxygen style
| * 4840416 Add doxygen configuration
| * c2654e3 Update gitignore
| * 8e08cc0 parser: fix notes about string format
| * 65f59b4 db: fix header
| * 3cc89a0 all: fix header include
| * 3c5a4ed sdcard: fix include order
| * cd1beab Add missing include
| * 648f14d cluster: Remove useless fucntion
| * 6e3c774 cluster: minor fix
| * d3a5027 can_drv: fix producer
| * e9d9fca cluster: implement cluster packer
| * afaf293 parser: replace typeout from extended nane to initial letter BYTE-> B WORD -> W DWORD -> D REAL -> R
| * ee0d52e all: Remove union compiler problem
| * 7734c2c parser: allow offset not order declaration
| * 04f467e parser: add check about max offset field to limit at 7
| * 274e68c parser: add check max field number to limit at 8
| * a5ab5cf Parser: remove useless string duplicate
| * 0c016cb Enable canpacket_4
| * 1a6130f Fix db_search
| * 80eb5a1 Fix error about compiler problem
| * 6f95935 parser: detect error on coef declaration
| * 1a899fe parser: fix trailing space
| * 98fb783 Add some notes about parser
| * 43c1e79 Add parser
| * 5b8817d Replace name iface variable (min, max)
| * dbc9586 Add db_search function
| * c95bd54 Fix style
| * 7368dfb Fix interface logic
| * 31b5b96 export interfaceid
| * fdcdb5f (tag: v1.03) Fix can comunication: Can overflow handle Timeout reset
| * 4444529 cstyle
| * 0280482 Log minor fix
| * 26e4a39 Refix main
| * a0720b9 Fix main loop
|/  
* 26508a5 can_drv producer tick set to 2ms from 1ms
* a719a30 Fix check is full write can packet queue
* 3dbf9a1 Reduce wait time on can send queue is full
* d963a63 Remove volatile variable option
* 8f992b0 can driver: remove unused variable
* ac03e21 Try to fix comunication bug
* 3d03bf5 Fix interface "reinit" timeout
* ac9e22e minor fix
* 91e8591 Project update
* c754000 Fix enumeration declaration
* 7bda10d fix gitignore
| * e05299f Cluster add cluster_interface, clucter_interfaceid_min max and inc
* 0dec642 Fix git ignore file. Remove version.h
* 5b99afe Enable protocol check_header Send reply_reject if crc error
* 08b34e5 Enable crc bms Fix error bloking protocol receving procedure Fix decode packet
* 5978c03 Remove trail space
* fd14c10 Remove typo
* 3c69bc8 Fix decode pdo block (blockid it was not correct) minor fix
* 5fd5576 add commit luca
| * abdfe9e Cluster fix pdo_element decode and encode Protocol enable crc16 check
| * cf39d2a battery.c add timeout on can_protocol_handler
|/  
* af609eb Battery.c  if cluster_enable use cluster_vcmin in battery_handle_balance
* 164967b fix soc cluster add offline
* 19290df Fix soc temp
* 3f13dc7 Fix online_present
| * 1d1b7a2 cluster.c fix cluster_soc
|/  
* 604a4af cluster.c fix encode and decode for pdo_block
* bc8986c fix line error
* ee1302e Fix protocol can two pdo Fix online_present
* 2e46dbd Init block_voltage cstyle
* 1b56948 cluster: new address mapping 3(block)+4(element)+7(line) can_drv: fix producer for can_protocol_handler
* 921bffb Reduce protocol packet schedule time
* c4416bf cstyle
* 3e5f87b Cluster fix cluster_voltage. Battery add a producer for handle_can_protocol_packet
* e810101 fix currents
* f0f4721 Cluster: fix serial_current
* 2c1c21f Add simulation
* 5ed6644 Line unliked don't reset block data
* bbc3698 Replace line_unliked with element_unlinked
* c1d9a49 Fix master of line filter
* 91b6e31 remote line offline
* ed5ca78 Cluster check cluster_addr respect to cluster_map Minor bug fix in cluster_element_present and cluster_serial_present
| * 0c0b348 Decrease writing can queue
|/  
* bfb1455 Bug fix temp_serial_unlinked assignment
* b802e56 Minor fix
* 1e6d3ef minor fix
* 6a0e725 Replace vline to vserial
* d41ce7b Fix cluster_offline Remove block_offline
* 6c2fb69 cluster_masters_present to check if all masters have sent pdo_block packet
* 62fbe92 Try to fix cluster_unlinked
* b76bd54 Fix cluster_current, cluster_voltage and block_voltage
* a1fc79e Fix serial_soc, block_soc, cluster_soc with 3 master without slave
* afdadc3 Fix block_offline flags Fix cluster present utility function.
* 83c3bfe Remove a no-sense variable im_interface.
* 5a1b9c1 remote_enable_discharge and remote_enable_discharge wrong settings in foreach_element_of_serial Add first interface functions.
* 6882518 Macro CTC(X,MSG) disable for Old microchip compiler
| * 3dbf9cb Temp fix scheduling update
| * abbcaa4 Fix status word
| * 2f8c0eb Fix block_offline, already not work
| * 77b2123 Fix error variable state Try to fix block_voltage
| * b8c3b3f Implement cluster dimension
| * 856f3a8 Fix offline and add not in range flags
| * c4c7acf Fix encode/decode pdo element
| * 606506b Add serial data handling Change PDO_ELEMENT compact sw
| * c84e46a Reset remote enable discharge and enable discharge on element timeout
| * 1f84da0 Fix remote sw
| * 0c1f3b3 Remove under/over temperature discharging from enable charge (by Andrea and Massimiliano)
| * f2b99d6 Test map with 3 block 1 line 3 element master: OK status word
| * f905764 Try to fix offline handling: fix vbus
|/  
* d615b2e Add block and cluster data handle
* b57df16 Fix line_current
* 36aa145 Implement decode block data
* 808588c Fix encode pdo_block
* a63290a Minor fix
* 3482e6f Start to implement line_flags
* 72d03a7 Fix line_vmin/line_vmax Start to implement block data
* bad2a38 Replace master_sw to line_flags
* 4322533 Cstyle
* 18b3efe Fix name too long
* 3631b13 Add compiletime check function Add compiletime check variable name long
* 82522ac Revert condition to improve readability
* 0fb9fc8 Minor fix
* afdb85a Add cluster state machine
* 4317ac5 Replace serial_fault bit to line_fault
* 4ef6ec5 Fix socline calculate
* ea9d8ba Rename cluster_vserial to vline
* f1d3204 Fix protocol
* ec2df22 Remove c99 code
* c800c7b vserial must to be zero on timeout
* cb88438 Fix Linked/Unlinked logic Fix vserial calculate
* 0a95b69 Minor fix
* 8f0a403 Replace parallel_id to line_id
* 6041f12 Replace pdo names serial>>element parallel>>block
* 8cd5f5f Set default can_timer to 300 ms
* 9e7aa28 Move up variable declaration
* 7cc5cfb Fix cluster add producer call
* ef518c7 cluster cluster_update_elementdata and cluster_timeout_elementdata bug fix
| * e93467d Add produre tick changeable on run
|/  
* ea89339 cluster Add cluster_timeout_serialdata to handle timeout in pdo_serial packet receive Reneame SERIAL -> ELEMENT and PARALLEL -> LINE
* fde9ed4 minor fix
* 650a6e7 Add producer cluster
* 41cb351 Fix cluster timer variable
* e7aad33 Minimal fix
* fddcd08 Fix send packet
* 189b971 Some test
| * 160c280 can_drv Test
|/  
* 91deb36 can_drv test version. Test to fix critical lock when sending can packets
* 5b1b547 can_drv Add producer_t object. An object that sendcan packet with guaranteed tick Producer method can_add_producer and can_schedule_handler
* 892f508 Try to fix schedule canpacket
* 20f9247 Cstyle
* 55ad878 can_drv Add write buffer for write queue. can_send_packet queue packets in ecan1_msgbuf_w can_send_handler is scheduled in Timer2 interrupt routine with 1ms tick
* e16da4c Fix bistable re-enable
* 242d856 Fix encode procedure, and filter packet. TODO: send can buffered
* 6f1aece Fix crc8 procedure
* 59da9b0 Fix bug accessing union
* 36aff08 Cluster cluster_decode_serial_data conforming to specs clusetr_update_serial_data fix cluster values update
* 71d5f3b add encode
* 5dad30e Cluster cluster_update_serialdata add flag to signal timeout cluster_decode_serialdata
* 39c6d0b cluster
* 604c4ef Fix cluster
* 8de5c6c cluster cluster_update_serialdata initial development
| * a72f089 Minimal fix
| * f112c7b Start to implement serial cluster pdo
|/  
* 1990b9d Cluster master_status bit0 renamed as offline pdo_serial_t and pdo_parallel_t align struct to bit cluster_handle_can template
* 4e0f2b8 Start to validate packet and decode data
* c6772f9 Add cluster states
* 46d35a4 Fix name
* d0a7560 Add crc8 utils function
* 3729596 Remove cluster_enable used cluster_addr instead. If cluster_addr == 0x0 cluster logic will be not enable
* 0d987b4 Add call to cluster init
* fdf4b66 Fix declaration variable
* ef1d993 Fix building project
* 83d035a Start cluster implementation
* 150c833 minor fix
* d3955d8 Add board_handle_fanheater for fan and heater handle (RD0 and RD1) Add variables to enable and disable, check temperature with hysteresis for fan and heater handling Add variable to enable SW can line termination
| * 1603312 Move protocol to different PDO baseid + 0xF
| * 0fc8a84 Add Busoff and tx e rx register
| * 9c8dfa3 Disable serial printf
|/  
* a0d0be1 Replace long name
* 2b82373 Set charging_current to zero when enable_charge is equals to zero
* cf9a42c Remove variable with long name
* 5f3d42b Remove discharging current handler function
* 227c804 Remove not used variable
* 3d9f243 SD Card Add sdcard_check_presence flag. No more sd card check presence in sdcard_detect() after sd card declared non present.
| * dac3ebd Fix current charge handle Add charger handle
|/  
* be01730 Reduce delay calling sdcard_detect in log module
* 81c9f90 (tag: v1.02) Move csdinfo script to tools folder
* 785cb5d Bug fix serial_init() no more called without Console.c Add serial_init() in board_init().
* 4708335 Fix bug set variable
* 7e44bf9 Add multiple variable description
* 5c5184d Continue support new types
* 8a1da24 Add support to new types
* 3dafd7a Fix UM and other minor bug
* b607f05 Continue adding UM
* 0c0918e Add um field
* 713119b Reduce variable name down to 20 char
* 37ab887 Fix send variable
* 3ec2c0e Minor protocol fix
* 4f8e1b7 Replace SERIAL_BUFLEN with MAXPACKET_LEN. No serial reference into protocol source
* 1183925 cstyle
* affa6b1 Cstyle
* adef590 Command cmd_get_var in protocol Fix access to variables and check max number of variables
| * a2c4428 Cstyle!
|/  
* 946e182 Command cmd_get_var in protocol Handle nmemb field to send n db variables in one protocol frame responce
* b0f703f Add nmemb field to protocol and reduce size field.
* b4c5597 Add hex layout to sw, sw2 and baseid variable
* f31bc6a Fix error during packet reassembling (ass missing crc)
* fefa2b6 Protocol. add cmd_a_set_var
* bf7c239 Add check header method
* ccbb5f4 Fix remake stream from packets bug. CStyle
* 862adf9 Fix list size command
* 834e8f0 Implement btree_count utils function
* 25c9b2d Test protocol
* c5a6544 Reverse RTR_FLAG
* b4b4162 Fix error
* c9a0d98 battery_can_callback deferred Add PTR_SIZE and CRC_SIZE in protocol.h
* d69c1ab Fix error protocol with Luca
| * 7d00a9d Project .mcp update
|/  
* 6971d76 Replace strcpy with strncpy
* 058f778 cstyle
* 0fc8446 Fix leak on protocol
* 6125113 Start implement reply
* 08d6676 Start to implement canbus buffer
* 18a37e1 Implement analize request
* c7943b5 Update protocol
* 9c71779 Start to implement general protocol
* 821b732 Fixed range balance duty
* a0de848 Comment out debug message
* 7056465 Export number of temperature sensors
* 2d6bc01 Read when balancing is not performing. Fix setting up number of cells
* ac05cd9 Fix initialization about linear. Now it is possible to specify the number of cells.
* 6ca05d3 Add pause from read linear 0 to linear 1
* 36c7c94 Add linear test
* 8feb894 Cstyle
* e59fa5a Indentazione!!!! Sara' la ventesima volta che la metto a posto.
* 2dd5fce Add voltage_full_soc and voltage_empty_soc variable
* 65c6f5c Fix bug ON/OFF viasat when sdcard is not present.
| * 756607b Buffered serial_read() and serial_write()
| * ecf94a5 Update Project
|/  
* 80c56b9 add enable log
* 3c96fe1 Increase reactivity current filter Decrease voltage hysteresis gap
* 55b16c0 Improve readability sw handle procedure
* 7f8826e Improve readability viasat internal state machine
* 3980e35 Add missing file header btree.h
* ecf5e85 Fix show id in showdb command
* 44e9961 Fix search db var function
* c5dbb90 Fix bug insert into btree
* 7d2ab62 cstyle
* 49d4d41 Enable error trace
* 583e64f Start to replace hash map with btree
* 1b7c421 Add category field vars
* a926fba Add display field vars
* 2535ef8 Add permission field on db vars
* b12b081 Monostable switch off. Enable_battery bit switch off on rising edge of pulse
* 43e3f99 Flag enable_battery
| * d2d13e6 Minor fix
| * 206d202 Fix current on can packet
| * ee224e5 Fix enable battery logic
| * 12dba28 Add enable battery to enable charge and discharge.
|/  
* 4730b4b Reduce hash table malloc down to 150 entry. Note internal code set  to 256 entry.
* 4c150bd Add board_power_state() to check BMS power state Flag enable_battery assigned using board_power_state()
| * 4820cc7 Fix send current and recalibrate
|/  
* b49517c Set viasat output also when viasat is not enable Implement sw2 warning about charging and discharging temperature Rename enable_viasat warning to viasat_nocharge
* fc4c317 Add filter under voltage. !Filter && (Check || Occurred)
* b74c909 Fix header file
* d2d49e0 Start to implement sw2 calculation
* 109d1f5 Fix parameters
* 8caa492 Fix packet to use battery on Ape Ambra
* 6f3c351 Reset on turn off
* c488aba minor fix warning
* 05fdca2 cstyle
* 92469e2 Soc auto-calibrate soc is set to 100 when cell_vmin is great than cell_user_max_voltage and is set to 1 when cell_vmin is less than cell_user_min_voltage.
| * e51a9a1 Handle Auto Power only if power mode is Monostable. Save to flash moved from main to board_handle_power just before power supply switch Off
|/  
* 788762c Add function to get whether balancing is on
* 986873f Change base time auto off to allow long time
* e12fb81 Fix monostable power mode
* a2e065a Viasat force power off when BMS off
* 467b945 Fix viasat
* a056707 Add check parameter
| * c689583 Monostable implementation Auto Power Off
| * 154fa16 Update Project
|/  
* 4d9b03d Viasat implementation
* e87a033 Add viasat delay
* 0efd6de Start to implement viasat handle
* bb7bf42 Add date field in log structure header
* a2b0950 Fix memory leak on an error reading voltages occurs
* f7700ff minor fix
* 46db527 Start to implement viasat
* f663325 Remove giroscope reference and fix building
* c9fa4c7 Rename source file
* f42acde Fix header
* a6ba90a Start to implement viasat
* 717fe81 Add serial code variable
* c4efd56 Fix header style
* 69fafcc Reduce use static memory: Long variable name make increase static memory in hash declaration. So I reduced memory usage by changing variable name
* 223afe8 Reduce memory usage
* 97ea270 Fix capacity calculation with csd v2 Fix print version csd
* c2a2eaf Fix log structure
* c7d2d68 logger fix file format
* 258317f Fix CID handling
* 1793589 Add csd v1 handling
* a482ffd fix csd register declaration and function to get sector count
* ba02b53 sdcard
* 80bd369 Add missing file
* 665f1a1 Add python script to decode csd reg
* f9160e4 Fix reinit log
* 50c62dc Start to fix sdcard low level
* 5faad98 Cstyle
* 587c78c Add log procedure
* bfe13a9 Set fatfs to tiny version
* 84ea3a0 Fix console to use FATFS and list directory function
* a527c34 Add FatFS library
* 37539d1 Remove fat16/32 File IO Library
* 7868f1d Fix error bug init sdcard
* d85d699 sdcard update start procedure
* d234d89 Add command to format sd card and list files
* 488525a Mount file system only when sdcard is present
* c9127c2 fix git ignore file
* 43f36e5 cstyle
* 765a5bf cstyle
| * d758935 FAT Test libreria per formattazione SD e scrittura / lettura file
|/  
* 9b5216f Fat Aggiunta libreria http://ultra-embedded.com/fat_filelib/
* 84cc03b Add missing file
* 57666ac Change fat api
* b8a77c6 Add fatfs library
* d18ee28 remove old fat api
* 20161b6 Add fat header
* f84cb8e SDCARD Bug fix in sdcar_init() su chiamata sdcard_start()
* 115e230 add reboot all
* 8788679 SD CARD Aggiunta funzione lettura CID sdcard_detect() attiva, ovvero riconosce runtime presenza sdcard
* 600c292 Fix macro can receive
* 047e9fb fix command reboot
* 0414b33 Add handle can packet battery
* 3d37db6 Call callbacks only when read is valid
* f6adf28 Add schedule can consumer callbacks
| * 35f1f3e SD CARD Aggiunto test 6 per testare scrittura blocco 1 SD sui vari modelli di SD usati in Archimede Energia
| * da46e92 Reteain Analisi per malfunzionamento dopo reset e reload Resa atomica inizializzazione flash retain ovvero dopo retain_validate() retain_update() Corretto cast variabile blk_id nelle funzioni di lettura e scrittura flash
|/  
* 6e7ef67 Minor fix charge handling
* 4819910 Add charger variable to db
* 4dea732 Fix procedure to handle chargers
* bb29be8 Start implement charger handle
* 5a171e4 Fix name api
* fa50e43 cstyle
* 1ae97a5 Add reload and noerror command
* b99522f Add status word2
* 939bf7b Add select-able can send packet timer.
* d89aa4c Remove defines useless
* 621cfc1 Change sdcard_write api
* 467ed4d Change sdcard_read api
* 8578721 Fix function name like all project style. Remove local function declaration useless.
* a42adea Fix minor error
* cbe6717 CStyle
* f0d31ab Add BOOTUP packet
| * 385d026 SD CARD
|/  
* 83ad609 Add can_bitrate variable
* 1c3375f (tag: v1.01) Add DWORD showdb support
* ef531de Fix save on shutdown
* 24f560d Fix duty balance
* 9a05861 Rename offset to csize local variable
* 974e2b8 Minor fix
* 4b683aa Fix showdb address error.
* 16869fb Disable linear with num cell equal to zero
* 299920b Add version handle
* ba1d4de Add version.h to ignore list
* 50a51b2 (tag: v1.00) Add version header script generator
* 1af0119 Remove send packet
* 41195c1 Start to fix error sw
* 17c9f79 Fix state BS_TRANSITIONAL
* 7bd270a cstyle
* fd29e85 Add notes about brusa charger
* a7706a5 Fix BS_INITIAL state to disable send not initialized data.
* a2fe86a Add chargers source
* 3bebcae Fix init cells value
* 1f8f1ce Add function to get when balance is performing.
* e3d5841 Fix reset
* 77520e0 Add setpoint and minor fix
* fcbadc6 Minor fix
* 5e5a008 Add RETAIN_START to select start point retain memory
* 71704ff Save retain values once when bms shutting down
* eaa3afe Add option to select adc current sensor
* f3869f7 FIX MATH ERROR!!!!
* 53c6fab Fix missing call parameter
* 5833742 Disable watchdog
* 7dc866b Fix address error
* 0a3adfc Board
* 0604b0b Fix diff voltage
* ebb1db3 Fix error using tick
* 8b2adbc Rename sw2 not used flag
* 6259092 fix cstyle
* bbac7e6 Fix coloumb counting only at charge and discharge state
* 2629261 Fix missing operator
* ff84a24 Time uint32 per variabili ad 1ms
| * 1b846d9 Re-enable linear
| * 3f68546 Remove unsigned/signed warning
| * f0607c6 Fix CStyle
|/  
* 260c97a Board
* af7c875 Fix max voltage
* 97f874f Fix typo about cell_vmax, cell_vmin
* 98a8a14 Remove setting sensor type to LEM in calibration procedure.
* cfe1553 Fix fixed packet creation
* f0666f2 Fix min max temperature calculation
* 6ca8e71 Add temperature coeff into soc evalutation
* 82260e4 Fix some warning cpptest tool
* ccc2d71 Minor change
* 8837f57 Cstyle
* d0896e0 Fix warning about pointer mismatch
* ce156e8 Disable watchdog in debug mode. Note: MplabX defines this macro into Makefile, so we need to check in Mplab.
* 3532ec6 Remove warning variable not used
* 3491615 Add string can packet config
* 3d45bec Add STRING_DT support
* 50378ec Fix bug about serial_printf introduced by previous commit
* 6035087 Fix warning about used signed and unsigned
* f1b0e29 Time
| * 0af1301 Update project
| * 9ea0d70 Fix some waring about PSoft software
|/  
* 0acef89 Fix SOC algorithm estimation
* 7f3d5f1 Enable soc
* 25d48aa Procedura di calibrazione corrente Duty cycle gestione bilanciamento
* 58cfc38 board.c e board.h
* 2f9f26e Convert file to unix
* b967b69 spi_drv
* f17b13c Add flags to init spi
| * fafb2b6 VAriato file di progetto !
* c675cd5 Fix initialize all cell voltage
* 4caff0f Remove white line
* dfbda91 Revert "Disable ltc"
* 825b51b Disable ltc
* c351bc3 Start to develop lis3dh driver
| * e99f8d5 cstyle
| * bc0057b fix code to handle when a linear is not present
|/  
* 31200ef Remove warning about pointer of type 'void *' used in subtraction
* 0034a3a Replace flash_write/flash_read to flash_aux_write/ flash_aux_read
* d8fdf81 Move back flash read/write to retain.c
* 44c52d4 minor fix
* 6b536dd Remove warning about unused variable
* 5d55bbc Fix comment
* 8cbe338 Replace name function like archimede standard
* 708be26 Move flash function from retain module to flash module
| * 1faa4b5 Moduli Time
|/  
* ede871b Modulo Retain
* 9e45d1c Add utility function to show size add command to save and invalidate retain remove settemperature use set instead
* 3f19cd3 Fix flash_read and flash_write
* d18cb54 Revert Luca merge to fix flash operations
* 92c5366 Add static assert to check size
* ed630eb Add set variable console command Remove useless setcurrent and setvoltage console command.
* 945c946 Add call init/update retain
* 1035857 Replace strsep with another implementation because old version doesn't handle multi-delim. Also this version add null terminator to token
* 894065c Add get db item function
* 3bd0cb5 start retain
* 83cc7e6 Add option field to db entry
* d58110d Add read and write retain function. cstyle
* f60066a Fix Header
* 5e777db Fix typo
* 63e5117 Cstyle
* f54c576 Fix i2c_detect utility
* 4c2f453 i2c continue core driver
| * 4af8ed7 Moduli retain
* 7b348a2 Remove warning about not used variable
* 3293dc4 cstyle
* ada854d i2c fix typo
* 3d4497b Continue implement i2c core driver
* bc806b5 Remove useless files
| * aeb0e69 Moduli Retain
|/  
* 7b505be Add handle current charge and current discharge
* 70a91e6 Minor fix
* 67409e4 Add charge hysteresis bit to enable/disable charging
* 56b0147 Negate logic over current to get a status word value like old logic. In this way we get 0x7300 when all is ok.
* b374f59 Calibration shunt
* 03048d2 Fix test over current
* cd7722c Replace wait_balanacing with over_current
* e538c6c Set to pickkit
* 1e8414f Fix packet structure
* 3b583fd Fix gitignore file like mplabx
* 2dcea46 Fix attribute packet
* f515a8d Update i2c
* 484e4e0 Change status word charge_hysteresis == battery_overvoltage_occurred
* 6607bf8 Fix status work checked by Andrea Gallarate
* 82f8395 Fix typo balance function
* c4f253b Moduli Retain
* e1638f2 Compilatore
| * e5fa150 Print out linear balance configuration register.
| * 539e662 Implement retain note: we need std=gnu99 flag to use list.
| * c8684ab Update status word 2 declaration
| * 568fe2d Remove battery state number value from ls command
| * 7510762 Add balance and fix status word
| * b85d1fa Fix spi initialize
| * b880647 Remove linear function not implemented
* d255cee Modulo Time.c
| * 83bba3f spi: avoid bus initialization already initialized
|/  
* 408707b Add i2c_transfer api
* 8773af3 Create list reatain variable
* 889cdce Start to implement retain list variables
* e2e1296 Add one configuration for each linear
* 40c7c29 Fix i2c device structure add channel
* dbc7c94 Fix i2c error
* a8eec9b Add i2c api
* eabceb9 Removed some warnings
* 8eaa9bc Fix error pec_count
* f6a8da7 Remove warning about operation on 'can_packet_num' may be undefined
* 552355b Delay power off to second
* 16643b8 Fix status word enable battery bit
* a61308c Fix typo message
* b653963 Fix comment function in this mplax can get information.
* 7d9b295 Cstyle
* 0ca8439 Refix typo
* e0f835f Add current vref variable
* c97d2b0 Modulo Board.c e Board.h
| * f546307 Add list
| * 52d7fe1 Fix typo
| * e144d44 Update db with retain parameter
| * d0d4aac Fix comment
|/  
* e460e0d Fix header licence
* 5b3f2f9 Add retain api
* c0732bc Remove already declared variable Fix time to send can
* 8b82a94 Fix send cell voltages
* b0e3c29 Add missing prototype declaration
* 0e5499d Fix send cell voltage on can bus
* 904bd72 Fix typo about read temperature
* 2e19d02 Start can protocol
* f105a3a Filter temperature
* 7fc0e5a Add can_send_packet utils function
* 2d4fab6 Initialized can bus into board source
* 24a1c17 Fix comment
* 3d6ced5 Implement status word calculation Move battery status calculation in a function Set to zero temperature values to sensors are not present
* e0a1c79 Fix current conversion. Now user can set parameter in simply way: - board_current_sign = current sign - board_current_x_ofs = x converter offset - board_curren_sens = sensibility read from allegro datasheet
* a376066 Remove old comment
* 9423983 Fix typo
* 55edfc3 Remove unused variable
* 9bca2d5 Add word print in showdb command
* ee68019 Disable SOC charge filter coef
* 4e24b3c Add ofs and sens parameter to get right current values
* 1a8ba39 replace variable cell name
* 409e4d5 Add sorted showdb command
* e6d0d1f Add unique id
* d0ceb91 show board current
* 8ed9956 Fix read current adding V_NOISE
* f836bcf Add read current filtered
* cd6767a Add license at ntc header
* 9c23cb3 Remove test code
* d678627 Add send RTR and EXT can packet
* f2682d5 set static option to can_test
* b1b8b0e Add read current function from adc
* a438551 Board
| * 2f2ad33 Fix read linear values procedure
|/  
* 584c38f Board.c
* 869fa05 Move drop packet at bottom in can_send
* 62f0e3c Cstyle
* 1cf47f8 Increase readability ntc utility convertion function.
* cd3b080 Fix NTC_B constant value
* 5dff7e2 Add ntc convertion function utility
| * 7a43e6a A/D converter
|/  
* b62f046 Fix typo
* e46232e add status word calculate procedure
* 4c88dee Fix console with read all linear voltages
* 2f8291c Start adc conversion
* 38dd15c Replace name liear parameters
* c7db4a3 Add two voltage fields to define better the charging/discharging trend
* b6adc13 Add board api to get power switch state
* c8b3cdd Fix default cell capacity
* 4d18ab5 Disable spi debug
* 2010ad3 Add read cell voltage
* 89f3e33 Add status word declaration
* 418c4b6 Add ability to read second linear
* 7628da7 White line
* e5aa280 Remove white line spi_drv
* 5284be0 spi_drv cstyle
* bc80b87 Remove useless code in can_drv driver
* da75425 Remove white space and cstyle
* b843a8e Remove white space
* b1e9f7b Moduli CAN
* 3fec185 Call new board functon to read from linear
* d06b515 Move console calls from main to board module
* 54fbf97 Add state machine to read from linear
* e6e0e89 Comment out voltages reading from battery module
* 3138356 Add clear register command to ltc6803 driver
* 7d412a2 Increase readability ltc6803 driver
* 41fd5df Fix leak in ltc6803 driver
* a574422 Fix header declaration style
* 21b926c Add debug print string to spi_drv
* fc3340c Remove useless file
* 012c5bc Fix style ltc6803 driver
* fe08bf9 Fix delay open/close contactor like Massimiliano Maiolo suggestion
* eab5769 Increase db and add check to add entry
* da7cd20 Add cell to db and read values from board. Note: I get an error when I read from linear
* 962225d Remove useless comment
* 180db59 Add to linear driver cell number. Set to zero voltage if cell is not present.
* 3b45171 Move interrupt functions below
* d6ad171 Configure Analog inputs
| * 532c2a2 ANALISI OCCUPAZIONE RAM
| * 45b0a4a Moduli can_drv. Test in NORMAL_MODE a 250000. Utilizzo di can_spy. Risoslto problema trasmissione pacchetti errati. Il problema era dovuto ad un settaggio sbagliato del parametro Fcan per probabile errore su Data Sheet
* 66f1e78 Make re-entrant board_charge_enable and board_discharge_enable function
* a5085f5 split temperature and voltages
* 13a1f76 Add comment new board function
* 82627e5 Add handle led function
* c7e4e06 Add handle charge/discharge contactor
| * ef3dff9 p
|/  
* 26c081a Fix test serial init
* 2dbed73 Fix header copyright
* 58fce56 Add option to serial_init and new function serial_flush
* 685d395 Add baud option in serial_init function
* a8b47eb Fix typo
* d88b54e Fix comment
* 569d0aa CStyle
* 017d7e6 Add function to set mode can
* 6316258 Cstyle
* 876b1d9 Replace name in can driver
* f542ec2 Moduli can_drv Settati parametri per tutti i bit rate, compreso 1MBit Testati sempre in LoopBack Aggiunta gestione buffer circolare di ricezione Testata ricezione in pullback e corretta compilazione buffer circolare
* 75f98f8 Moduli can_drv Test in loopback mode con sola R di terminazione Impostazioni tempi di Bit. Foglio excel per il calcolo Gestione DMA0 e DMA2 con interrupt handler Introduzione test di Acceptance Filter Filter0 con Mask0 Test degli interrupt handler legati alla periferica Test ricezione
* 446ac14 Fix init canbus
* 77676d5 Add licence into all sources file
* baeadf2 update project mplabx file
* a8e4552 remove board reference from main like documentation project
* 766d1f3 some fix linear driver minor error and add licence text
* d809663 Fix test linear
| * 59e0edf can_drv: inizializzazione flags errori
| * e5cbba8 SPI4 inizializzata secondo schema che risulta corretto Ripristinata board.c e board.h
* 49758c6 Fix serial_printf
* 6d6d8a7 Fix calculation buffer size
| * cffcbe7 SPI4 Inizializzazione secondo schema che risulta corretto Ripristinata board.c e board.h con gestione Led
* ff6f395 Update console with new serial_printf function
* 4459c64 Add serial_printf function
* a701e6d SPI4 Inizializzazione secondo schema Ripristinata board.c e board.h
* 8eb8a0c Fix read/write blocking function
* 7fa14c9 Fix cs pin numer
* c90070b Fix selection cs pin number on ltc6803 driver
* fa00b11 Add blocking read/write function on spi driver
* 459f172 fix typo
* 2e53e90 Cstyle
* 5847f15 Fix macro to create can parameter table
* 8127be4 Add board init and remove comment useless
* 95992be cstyle
* d55b691 Remove linear reference from battery.c like documentation
* cfc652b Add csn parameter
* 5b51aa9 Start gyroscope driver
* 4744fa6 Fix correct led state
* 3a67b4b Fix header
* 15ff29e Minor fix can source
* fddb4b8 Start contactor handle
| * d7d04b9 Fix header
| * 2500881 Start contactor handle
|/  
* 09350b7 Create a simply function to handle led.
* 2f44c94 Update main file
* 644c605 Cstyle
* 8ddecc2 Update serial header
* b95b10d Remove global interrupt initialization from serial.c
* 7363e83 Add missing time file
| * 492cf15 Mappatura SPI4 per giroscopio
| * 1807699 SPI4
| * c63f74d spi_drv per SPI3
| * e9eed33 Update main file
| * 6681fd1 Update serial header
| * daf55d5 Remove global interrupt initialization from serial.c
| * 8ada099 Add missing time file
|/  
* d029c1d Update sources for test canbus
* 3de4db1 Replace io.h and io.c to  board.h board.c
* db840b1 cstyle
* 585e8ac Rename mcp file
| * d200600 Can DMA
| * a5dd6f7 DMA Can
| * 91e3f09 DMA Can
| * 124fc53 Modulo board.c e board.h Modulo time.c e time.h
|/  
* 5f06d00 Attivazione Spegnimento
* dc153ca Build MPlab
* bddf746 initial
