#ifndef __TEST_BSP_H__ #define __TEST_BSP_H__ #include "test.h" #include "rtc_rx8010.h" #include "lib.h" #include "entity.h" #include "board.h" #include "hart.h" #include "rtc_rx8010.h" #include "eeprom_m95.h" #include "eeprom_fm24.h" #include typedef enum { RTC_WRITE = 0, RTC_READ = 1, } rtc_opt_e; // RTC测试程序 BOOL test_rtc(uint8_t opt, rtc_date *data); // 测试回路电流 BOOL test_loop_current(float32 *cur); // 测试ADC通道 BOOL test_adc(uint8_t chan, uint16_t *adc); // 测试温度 BOOL test_temperature(float32 *temp_f); // DAC测试IP输出控制 BOOL test_ip_putput_dac(uint16_t value); // PWM测试IP输出控制 BOOL test_ip_putput_pwm(float32 duty_percent); // 测试DCDC电压 BOOL test_dcdc(float32 *vol); // 测试GPIO BOOL test_gpio(GPIO_TypeDef *port, uint16_t pin); // 测试PWM输出控制 BOOL test_pwm_out(float32 current); // 测试LCD BOOL test_lcd(void); // 测试M95-写 BOOL test_eeprom_m95_write(m95_number_e num, uint8_t *buf, uint16_t len); // 测试M95-读 BOOL test_eeprom_m95_read(m95_number_e num, uint8_t *buf, uint16_t len); // 测试FM24-写 BOOL test_eeprom_fm24_write(void); // 测试FM24-读 BOOL test_eeprom_fm24_read(void); // 测试按键,通过HART测试 BOOL TEST_BUTTON(void); // hart cache测试 void hart_cache_test(void); // 自检 BOOL selftest_lc02(void); // 驱动测试 void bsp_test(void); // 功耗测试 void power_test(void); #endif // __TEST_BSP_H__