finish command

This commit is contained in:
2025-08-12 19:56:56 +08:00
parent 9b3d19cffa
commit 05cebe979d
5 changed files with 215 additions and 67 deletions

View File

@@ -39,6 +39,8 @@ OF SUCH DAMAGE.
#include "command.h"
#include <stdio.h>
bool g_status_switch = false;
/*!
\brief main function
\param[in] none
@@ -52,12 +54,6 @@ int main(void)
systick_config();
rs485_init();
// rcu_periph_clock_enable(RCU_GPIOA);
// gpio_mode_set(GPIOA, GPIO_MODE_OUTPUT, GPIO_PUPD_NONE, GPIO_PIN_1);
// gpio_output_options_set(GPIOA, GPIO_OTYPE_PP, GPIO_OSPEED_50MHZ, GPIO_PIN_1);
// gpio_bit_set(GPIOA, GPIO_PIN_1);
led_init();
printf("Hello USART0!");