shit-202408082000

This commit is contained in:
hulk
2024-08-08 19:59:43 +08:00
parent f526aa2b8f
commit ea9e742e72
6 changed files with 48 additions and 66 deletions

View File

@@ -1,30 +1,35 @@
#include <stdio.h>
#include <string.h>
#include <assert.h>
#include <math.h>
#include <stdint.h>
#include "gd32e23x.h"
#include "systick.h"
#include "chirp_smartsonic.h"
#include "soniclib.h"
#include "chirp_bsp.h"
#include "board_init.h"
#include "chirp_board_config.h"
#include "app_config.h"
/*!
\brief LED Turn On
\param[in] none
\param[out] none
\retval none
*/
void sensor_led_on(void) {
gpio_bit_reset(CHIRP_PIN_LED_PORT, CHIRP_PIN_LED_PIN); // PB1 = Lo LED = On
}
/*!
\brief LED Turn Off
\param[in] none
\param[out] none
\retval none
*/
void sensor_led_off(void) {
gpio_bit_set(CHIRP_PIN_LED_PORT, CHIRP_PIN_LED_PIN); // PB1 = Hi LED = Off
}
/*!
\brief LED Toggle
\param[in] none
\param[out] none
\retval none
*/
void sensor_led_toggle(void)
{
gpio_bit_toggle(CHIRP_PIN_LED_PORT, CHIRP_PIN_LED_PIN);