fix: 修复之前提交中的一些问题
This commit is contained in:
@@ -38,6 +38,7 @@
|
|||||||
#include "by_imu.h"
|
#include "by_imu.h"
|
||||||
#include "jj_blueteeth.h"
|
#include "jj_blueteeth.h"
|
||||||
#include "by_buzzer.h"
|
#include "by_buzzer.h"
|
||||||
|
#include "jj_blueteeth.h"
|
||||||
|
|
||||||
void NMI_Handler(void) __attribute__((interrupt()));
|
void NMI_Handler(void) __attribute__((interrupt()));
|
||||||
void HardFault_Handler(void) __attribute__((interrupt()));
|
void HardFault_Handler(void) __attribute__((interrupt()));
|
||||||
|
|||||||
@@ -1,6 +1,8 @@
|
|||||||
#include "jj_blueteeth.h"
|
#include "jj_blueteeth.h"
|
||||||
|
|
||||||
bool bt_rx_flag = false;
|
bool bt_rx_flag = false;
|
||||||
uint8 bt_buffer;//接收字符存入
|
uint8 bt_buffer;//接收字符存入
|
||||||
|
|
||||||
enum bt_order {
|
enum bt_order {
|
||||||
Start_work = 0x01,
|
Start_work = 0x01,
|
||||||
Turn_Left = 0x02,
|
Turn_Left = 0x02,
|
||||||
|
|||||||
@@ -1,7 +1,9 @@
|
|||||||
#ifndef _JJ_BLUETEETH_H_
|
#ifndef _JJ_BLUETEETH_H_
|
||||||
#define _JJ_BLUETEETH_H_
|
#define _JJ_BLUETEETH_H_
|
||||||
|
|
||||||
#include "zf_common_headfile.h"
|
#include "zf_common_headfile.h"
|
||||||
#include "zf_driver_uart.h"
|
#include "zf_driver_uart.h"
|
||||||
|
|
||||||
extern bool bt_rx_flag;
|
extern bool bt_rx_flag;
|
||||||
extern uint8 bt_buffer;
|
extern uint8 bt_buffer;
|
||||||
void jj_bt_init();
|
void jj_bt_init();
|
||||||
|
|||||||
@@ -11,6 +11,7 @@
|
|||||||
Param_Data[_data_tag_].type = _type_; \
|
Param_Data[_data_tag_].type = _type_; \
|
||||||
Param_Data[_data_tag_].cmd = _cmd_; \
|
Param_Data[_data_tag_].cmd = _cmd_; \
|
||||||
Param_Data[_data_tag_].text = _text_;
|
Param_Data[_data_tag_].text = _text_;
|
||||||
|
|
||||||
typedef enum {
|
typedef enum {
|
||||||
DATA_HEAD = -1,
|
DATA_HEAD = -1,
|
||||||
DATA0,
|
DATA0,
|
||||||
@@ -25,10 +26,7 @@ typedef enum {
|
|||||||
DATA_IN_FLASH_NUM,
|
DATA_IN_FLASH_NUM,
|
||||||
DATA_NUM,
|
DATA_NUM,
|
||||||
} data_tag_t;
|
} data_tag_t;
|
||||||
/**
|
|
||||||
* @brief
|
|
||||||
*
|
|
||||||
*/
|
|
||||||
typedef enum {
|
typedef enum {
|
||||||
EUINT32,
|
EUINT32,
|
||||||
EINT32,
|
EINT32,
|
||||||
|
|||||||
@@ -36,7 +36,7 @@ int main(void)
|
|||||||
clock_init(SYSTEM_CLOCK_120M);
|
clock_init(SYSTEM_CLOCK_120M);
|
||||||
system_delay_init();
|
system_delay_init();
|
||||||
debug_init();
|
debug_init();
|
||||||
// mt9v03x_init();
|
mt9v03x_init();
|
||||||
ips200_init(IPS200_TYPE_SPI);
|
ips200_init(IPS200_TYPE_SPI);
|
||||||
by_gpio_init();
|
by_gpio_init();
|
||||||
by_exit_init();
|
by_exit_init();
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
#include "jj_param.h"
|
#include "jj_param.h"
|
||||||
#include "page_ui_widget.h"
|
#include "page_ui_widget.h"
|
||||||
#include "page.h"
|
#include "page.h"
|
||||||
|
|
||||||
#define LINE_HEAD 0
|
#define LINE_HEAD 0
|
||||||
#define LINE_END DATA_NUM - 2
|
#define LINE_END DATA_NUM - 2
|
||||||
static char Text[] = "RealTime Param";
|
static char Text[] = "RealTime Param";
|
||||||
|
|||||||
Reference in New Issue
Block a user