fix #41 use RXD,TXD in board header

This commit is contained in:
hathach 2019-01-14 12:50:20 +07:00
parent 3611a0579e
commit 2f1eec7118
No known key found for this signature in database
GPG Key ID: 2FA891220FBFD581
5 changed files with 63 additions and 58 deletions

View File

@ -56,10 +56,11 @@ endif
MK := mkdir
RM := rm -rf
# Verbose mode (V=). 0: default, 1: print out CFLAG, LDFLAG 2: print all compile command
ifeq ("$(V)","2")
QUIET :=
QUIET =
else
QUIET := @
QUIET = @
endif
GNU_PREFIX = arm-none-eabi
@ -335,6 +336,8 @@ $(info CFLAGS $(CFLAGS))
$(info )
$(info LDFLAGS $(LDFLAGS))
$(info )
$(info ASMFLAGS $(ASMFLAGS))
$(info )
endif
.phony: all clean size flash sd erase
@ -438,12 +441,12 @@ $(BUILD)/%.o: %.c
# Assemble files
$(BUILD)/%.o: %.S
@echo AS $(notdir $<)
@$(CC) $(ASMFLAGS) $(INC_PATHS) -c -o $@ $<
$(QUIET)$(CC) $(ASMFLAGS) $(INC_PATHS) -c -o $@ $<
# Link
$(BUILD)/$(OUTPUT_FILENAME)-nosd.out: $(BUILD) $(OBJECTS)
@echo LD $(OUTPUT_FILENAME)-nosd.out
$(CC) $(LDFLAGS) $(OBJECTS) $(LIBS) -lm -o $@
$(QUIET)$(CC) $(LDFLAGS) $(OBJECTS) $(LIBS) -lm -o $@
size: $(BUILD)/$(OUTPUT_FILENAME)-nosd.out
-@echo ''

View File

@ -58,8 +58,8 @@
*------------------------------------------------------------------*/
#define RX_PIN_NUMBER 8
#define TX_PIN_NUMBER 6
#define CTS_PIN_NUMBER 7
#define RTS_PIN_NUMBER 5
#define CTS_PIN_NUMBER 0
#define RTS_PIN_NUMBER 0
#define HWFC false
// Used as model string in OTA mode

View File

@ -62,8 +62,8 @@
*------------------------------------------------------------------*/
#define RX_PIN_NUMBER 8
#define TX_PIN_NUMBER 6
#define CTS_PIN_NUMBER 7
#define RTS_PIN_NUMBER 5
#define CTS_PIN_NUMBER 0
#define RTS_PIN_NUMBER 0
#define HWFC false
// Used as model string in OTA mode

View File

@ -58,8 +58,8 @@
*------------------------------------------------------------------*/
#define RX_PIN_NUMBER 8
#define TX_PIN_NUMBER 6
#define CTS_PIN_NUMBER 7
#define RTS_PIN_NUMBER 5
#define CTS_PIN_NUMBER 0
#define RTS_PIN_NUMBER 0
#define HWFC false
// Used as model string in OTA mode

View File

@ -43,17 +43,19 @@
#ifndef SDK_CONFIG_H
#define SDK_CONFIG_H
#include "boards.h"
//==========================================================
// <e> HCI_SLIP_ENABLED - hci_slip - SLIP protocol implementation used by HCI
//==========================================================
#define HCI_SLIP_ENABLED 1
#define HCI_UART_BAUDRATE UART_BAUDRATE_BAUDRATE_Baud115200
#define HCI_UART_FLOW_CONTROL 0
#define HCI_UART_RX_PIN 8
#define HCI_UART_TX_PIN 6
#define HCI_UART_RTS_PIN 5
#define HCI_UART_CTS_PIN 7
#define HCI_UART_FLOW_CONTROL HWFC
#define HCI_UART_RX_PIN RX_PIN_NUMBER
#define HCI_UART_TX_PIN TX_PIN_NUMBER
#define HCI_UART_CTS_PIN CTS_PIN_NUMBER
#define HCI_UART_RTS_PIN RTS_PIN_NUMBER
#define HCI_TRANSPORT_ENABLED 1
#define HCI_MAX_PACKET_SIZE_IN_BITS 8000