mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-03-25 16:43:28 +00:00
msp432p401lp-cc256x: support BOOST-CC2564MODA
This commit is contained in:
parent
0e19a6f090
commit
64d059d526
@ -121,9 +121,18 @@ sm.c \
|
|||||||
spp_server.c \
|
spp_server.c \
|
||||||
uECC.c \
|
uECC.c \
|
||||||
|
|
||||||
|
# CC2564B
|
||||||
|
# - BOOST-CC2564MODA
|
||||||
|
# - EM Wireless BoosterPacket with CC2564B module
|
||||||
|
# INIT_SCRIPT = bluetooth_init_cc2564B_1.8_BT_Spec_4.1
|
||||||
|
|
||||||
|
# CC2564C
|
||||||
|
# - EM Wireless BoosterPacket with CC2564C module
|
||||||
|
INIT_SCRIPT = bluetooth_init_cc2564C_1.4
|
||||||
|
|
||||||
PORT_SOURCES = \
|
PORT_SOURCES = \
|
||||||
btstack_chipset_cc256x.o \
|
${INIT_SCRIPT}.o \
|
||||||
bluetooth_init_cc2564C_1.4.o \
|
btstack_chipset_cc256x.o \
|
||||||
hal_flash_bank_msp432.o \
|
hal_flash_bank_msp432.o \
|
||||||
main.o \
|
main.o \
|
||||||
startup_msp432p401r_${COMPILER}.o \
|
startup_msp432p401r_${COMPILER}.o \
|
||||||
|
@ -203,23 +203,16 @@ static uint8_t * tx_buffer_ptr = 0;
|
|||||||
static void (*rx_done_handler)(void);
|
static void (*rx_done_handler)(void);
|
||||||
static void (*tx_done_handler)(void);
|
static void (*tx_done_handler)(void);
|
||||||
|
|
||||||
/*
|
|
||||||
Pin 3: BTTX=UCA2RXD-P3.2
|
|
||||||
Pin 4: BTRX=UCA2TXD-P3.3
|
|
||||||
Pin 19: BTSHUTDN=GPIO-P2.5
|
|
||||||
Pin 36: BTRTS=GPIO-P6.6
|
|
||||||
Pin 37: BTCTS=GPIO-P5.6
|
|
||||||
*/
|
|
||||||
|
|
||||||
// #define BLUETOOTH_DEBUG_PORT GPIO_PORT_P5
|
// #define BLUETOOTH_DEBUG_PORT GPIO_PORT_P5
|
||||||
// #define BLUETOOTH_DEBUG_PIN GPIO_PIN0
|
// #define BLUETOOTH_DEBUG_PIN GPIO_PIN0
|
||||||
|
|
||||||
#if 0
|
|
||||||
// Unclear
|
|
||||||
#define BLUETOOTH_TX_PORT GPIO_PORT_P3
|
#define BLUETOOTH_TX_PORT GPIO_PORT_P3
|
||||||
#define BLUETOOTH_TX_PIN GPIO_PIN2
|
#define BLUETOOTH_TX_PIN GPIO_PIN2
|
||||||
#define BLUETOOTH_RX_PORT GPIO_PORT_P3
|
#define BLUETOOTH_RX_PORT GPIO_PORT_P3
|
||||||
#define BLUETOOTH_RX_PIN GPIO_PIN3
|
#define BLUETOOTH_RX_PIN GPIO_PIN3
|
||||||
|
|
||||||
|
#if 0
|
||||||
|
// BOOST-CC2564MODA (CC2564B BoosterPack)
|
||||||
#define BLUETOOTH_RTS_PORT GPIO_PORT_P6
|
#define BLUETOOTH_RTS_PORT GPIO_PORT_P6
|
||||||
#define BLUETOOTH_RTS_PIN GPIO_PIN6
|
#define BLUETOOTH_RTS_PIN GPIO_PIN6
|
||||||
#define BLUETOOTH_CTS_PORT GPIO_PORT_P5
|
#define BLUETOOTH_CTS_PORT GPIO_PORT_P5
|
||||||
@ -228,10 +221,6 @@ Pin 37: BTCTS=GPIO-P5.6
|
|||||||
#define BLUETOOTH_nSHUTDOWN_PIN GPIO_PIN5
|
#define BLUETOOTH_nSHUTDOWN_PIN GPIO_PIN5
|
||||||
#else
|
#else
|
||||||
// EM Wireless BoosterPack with CC256x module
|
// EM Wireless BoosterPack with CC256x module
|
||||||
#define BLUETOOTH_TX_PORT GPIO_PORT_P3
|
|
||||||
#define BLUETOOTH_TX_PIN GPIO_PIN2
|
|
||||||
#define BLUETOOTH_RX_PORT GPIO_PORT_P3
|
|
||||||
#define BLUETOOTH_RX_PIN GPIO_PIN3
|
|
||||||
#define BLUETOOTH_RTS_PORT GPIO_PORT_P3
|
#define BLUETOOTH_RTS_PORT GPIO_PORT_P3
|
||||||
#define BLUETOOTH_RTS_PIN GPIO_PIN6
|
#define BLUETOOTH_RTS_PIN GPIO_PIN6
|
||||||
#define BLUETOOTH_CTS_PORT GPIO_PORT_P5
|
#define BLUETOOTH_CTS_PORT GPIO_PORT_P5
|
||||||
@ -607,9 +596,10 @@ static void packet_handler (uint8_t packet_type, uint16_t channel, uint8_t *pack
|
|||||||
}
|
}
|
||||||
// assert correct init script is used based on expected lmp_subversion
|
// assert correct init script is used based on expected lmp_subversion
|
||||||
if (lmp_subversion != btstack_chipset_cc256x_lmp_subversion()){
|
if (lmp_subversion != btstack_chipset_cc256x_lmp_subversion()){
|
||||||
printf("Error: LMP Subversion does not match initscript!");
|
printf("Error: LMP Subversion does not match initscript!\n");
|
||||||
printf("Your initscripts is for %s chipset\n", btstack_chipset_cc256x_lmp_subversion() < lmp_subversion ? "an older" : "a newer");
|
printf("Your initscripts is for %s chipset\n", btstack_chipset_cc256x_lmp_subversion() < lmp_subversion ? "an older" : "a newer");
|
||||||
printf("Please update Makefile to include the appropriate bluetooth_init_cc256???.c file\n");
|
printf("Please update Makefile to include the appropriate bluetooth_init_cc256???.c file\n");
|
||||||
|
btstack_assert(false);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user