最新一般有刷加无刷
This commit is contained in:
@@ -37,13 +37,17 @@
|
||||
#include "by_rt_button.h"
|
||||
#include "by_fan_control.h"
|
||||
|
||||
uint32_t send_reset = 0x0D;
|
||||
int main(void)
|
||||
{
|
||||
TYPE_UNION test_data[BY_FRAME_DATA_NUM];
|
||||
clock_init(SYSTEM_CLOCK_144M);
|
||||
system_delay_init();
|
||||
debug_init();
|
||||
|
||||
by_frame_init();
|
||||
for (int i = 0; i < 3; i++) {
|
||||
by_frame_send(&send_reset);
|
||||
}
|
||||
encoder_quad_init(TIM3_ENCOEDER, TIM3_ENCOEDER_MAP3_CH1_C6, TIM3_ENCOEDER_MAP3_CH2_C7);
|
||||
ips200_init(IPS200_TYPE_SPI);
|
||||
while (imu660ra_init());
|
||||
@@ -52,7 +56,7 @@ int main(void)
|
||||
vol_init();
|
||||
by_rb_init();
|
||||
by_buzzer_init();
|
||||
by_frame_init();
|
||||
|
||||
by_pwm_init();
|
||||
|
||||
Page_Init();
|
||||
@@ -63,7 +67,6 @@ int main(void)
|
||||
bt_printf("ok\r\n");
|
||||
|
||||
while (1) {
|
||||
|
||||
// printf("pwm:%lu,%lu,%lu,%lu\r\n", pwm_duty_ls_g, pwm_duty_rs_g, pwm_duty_lb_g, pwm_duty_rb_g);
|
||||
Page_Run();
|
||||
by_frame_parse(&test_data[0].u32);
|
||||
|
||||
Reference in New Issue
Block a user