mirror of
https://gitee.com/dashuaibran/jyker
synced 2025-09-27 03:09:12 +08:00
26 lines
525 B
C++
26 lines
525 B
C++
#include "encoder_calibrator_stm32.h"
|
|
#include "Platform/Memory/stockpile_f103cb.h"
|
|
|
|
void EncoderCalibrator::BeginWriteFlash()
|
|
{
|
|
Stockpile_Flash_Data_Begin(&stockpile_quick_cali);
|
|
}
|
|
|
|
|
|
void EncoderCalibrator::EndWriteFlash()
|
|
{
|
|
Stockpile_Flash_Data_End(&stockpile_quick_cali);
|
|
}
|
|
|
|
|
|
void EncoderCalibrator::ClearFlash()
|
|
{
|
|
Stockpile_Flash_Data_Empty(&stockpile_quick_cali);
|
|
}
|
|
|
|
|
|
void EncoderCalibrator::WriteFlash16bitsAppend(uint16_t _data)
|
|
{
|
|
Stockpile_Flash_Data_Write_Data16(&stockpile_quick_cali, &_data, 1);
|
|
}
|