Compare commits
No commits in common. "c10dc0352f689c41e38d9d6b1cb68a2872b34e0c" and "58aaf7466913580acb0a96af5c4be587a7179931" have entirely different histories.
c10dc0352f
...
58aaf74669
4
.gitignore
vendored
4
.gitignore
vendored
@ -85,7 +85,3 @@ dkms.conf
|
|||||||
*.exe
|
*.exe
|
||||||
*.out
|
*.out
|
||||||
*.app
|
*.app
|
||||||
|
|
||||||
#Exceptions
|
|
||||||
bin/w800
|
|
||||||
!bin/build/w800/lib/
|
|
||||||
|
8
.vscode/settings.json
vendored
8
.vscode/settings.json
vendored
@ -1,8 +0,0 @@
|
|||||||
{
|
|
||||||
"files.associations": {
|
|
||||||
"nano_shell_interface.h": "c",
|
|
||||||
"wm_include.h": "c",
|
|
||||||
"wm_osal.h": "c",
|
|
||||||
"wm_os_config.h": "c"
|
|
||||||
}
|
|
||||||
}
|
|
24
Makefile
Normal file → Executable file
24
Makefile
Normal file → Executable file
@ -44,33 +44,27 @@ COMPONENTS_$(TARGET) += \
|
|||||||
$(TOP_DIR)/platform/drivers/libdrivers$(LIB_EXT) \
|
$(TOP_DIR)/platform/drivers/libdrivers$(LIB_EXT) \
|
||||||
$(TOP_DIR)/platform/sys/libwmsys$(LIB_EXT) \
|
$(TOP_DIR)/platform/sys/libwmsys$(LIB_EXT) \
|
||||||
$(TOP_DIR)/src/network/libnetwork$(LIB_EXT) \
|
$(TOP_DIR)/src/network/libnetwork$(LIB_EXT) \
|
||||||
$(TOP_DIR)/src/os/libos$(LIB_EXT)
|
$(TOP_DIR)/src/os/libos$(LIB_EXT) \
|
||||||
|
$(TOP_DIR)/src/app/libapp$(LIB_EXT)
|
||||||
ifeq ($(USE_NIMBLE), 1)
|
ifeq ($(USE_NIMBLE), 1)
|
||||||
COMPONENTS_$(TARGET) += \
|
COMPONENTS_$(TARGET) += \
|
||||||
$(TOP_DIR)/src/bt/libblehost$(LIB_EXT) \
|
$(TOP_DIR)/src/bt/libblehost$(LIB_EXT)
|
||||||
$(TOP_DIR)/src/app/libapp$(LIB_EXT)
|
|
||||||
else
|
else
|
||||||
COMPONENTS_$(TARGET) += \
|
COMPONENTS_$(TARGET) += \
|
||||||
$(TOP_DIR)/src/bt/libbthost_br_edr$(LIB_EXT) \
|
$(TOP_DIR)/src/bt/libbthost$(LIB_EXT)
|
||||||
$(TOP_DIR)/src/app/libapp_br_edr$(LIB_EXT)
|
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
|
||||||
LINKLIB = \
|
LINKLIB = \
|
||||||
$(TOP_DIR)/lib/$(CONFIG_ARCH_TYPE)/libwlan$(LIB_EXT) \
|
$(TOP_DIR)/lib/$(CONFIG_ARCH_TYPE)/libwlan$(LIB_EXT) \
|
||||||
|
$(TOP_DIR)/lib/$(CONFIG_ARCH_TYPE)/libbtcontroller$(LIB_EXT) \
|
||||||
$(TOP_DIR)/lib/$(CONFIG_ARCH_TYPE)/libdsp$(LIB_EXT)
|
$(TOP_DIR)/lib/$(CONFIG_ARCH_TYPE)/libdsp$(LIB_EXT)
|
||||||
|
|
||||||
ifeq ($(USE_NIMBLE), 1)
|
|
||||||
LINKLIB +=$(TOP_DIR)/lib/$(CONFIG_ARCH_TYPE)/libbtcontroller$(LIB_EXT)
|
|
||||||
else
|
|
||||||
LINKLIB +=$(TOP_DIR)/lib/$(CONFIG_ARCH_TYPE)/libbtcontroller_br_edr$(LIB_EXT)
|
|
||||||
endif
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
ifeq ($(USE_LIB), 1)
|
ifeq ($(USE_LIB), 1)
|
||||||
LINKLIB += \
|
LINKLIB += \
|
||||||
|
$(TOP_DIR)/lib/$(CONFIG_ARCH_TYPE)/libapp$(LIB_EXT) \
|
||||||
$(TOP_DIR)/lib/$(CONFIG_ARCH_TYPE)/libwmarch$(LIB_EXT) \
|
$(TOP_DIR)/lib/$(CONFIG_ARCH_TYPE)/libwmarch$(LIB_EXT) \
|
||||||
$(TOP_DIR)/lib/$(CONFIG_ARCH_TYPE)/libwmcommon$(LIB_EXT) \
|
$(TOP_DIR)/lib/$(CONFIG_ARCH_TYPE)/libwmcommon$(LIB_EXT) \
|
||||||
$(TOP_DIR)/lib/$(CONFIG_ARCH_TYPE)/libdrivers$(LIB_EXT) \
|
$(TOP_DIR)/lib/$(CONFIG_ARCH_TYPE)/libdrivers$(LIB_EXT) \
|
||||||
@ -79,12 +73,10 @@ LINKLIB += \
|
|||||||
$(TOP_DIR)/lib/$(CONFIG_ARCH_TYPE)/libwmsys$(LIB_EXT)
|
$(TOP_DIR)/lib/$(CONFIG_ARCH_TYPE)/libwmsys$(LIB_EXT)
|
||||||
ifeq ($(USE_NIMBLE), 1)
|
ifeq ($(USE_NIMBLE), 1)
|
||||||
LINKLIB += \
|
LINKLIB += \
|
||||||
$(TOP_DIR)/lib/$(CONFIG_ARCH_TYPE)/libblehost$(LIB_EXT) \
|
$(TOP_DIR)/lib/$(CONFIG_ARCH_TYPE)/libblehost$(LIB_EXT)
|
||||||
$(TOP_DIR)/lib/$(CONFIG_ARCH_TYPE)/libapp$(LIB_EXT)
|
|
||||||
else
|
else
|
||||||
LINKLIB += \
|
LINKLIB += \
|
||||||
$(TOP_DIR)/lib/$(CONFIG_ARCH_TYPE)/libbthost_br_edr$(LIB_EXT)\
|
$(TOP_DIR)/lib/$(CONFIG_ARCH_TYPE)/libbthost$(LIB_EXT)
|
||||||
$(TOP_DIR)/lib/$(CONFIG_ARCH_TYPE)/libapp_br_edr$(LIB_EXT)
|
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
13
app/main.c
13
app/main.c
@ -172,7 +172,7 @@ void user_main(void *param)
|
|||||||
tls_uart_rx_callback_register(TLS_UART_1, &(uart1_rx_callback), NULL);
|
tls_uart_rx_callback_register(TLS_UART_1, &(uart1_rx_callback), NULL);
|
||||||
|
|
||||||
//we test the NRF lib here
|
//we test the NRF lib here
|
||||||
/*NRF24L01P_t NRF;
|
NRF24L01P_t NRF;
|
||||||
shell_printf("Checking NRF setup."NEW_LINE);
|
shell_printf("Checking NRF setup."NEW_LINE);
|
||||||
shell_printf("Setting SPI to 1 Mhz : %d."NEW_LINE, tls_spi_setup(SPI_DEFAULT_MODE, SPI_CS_ACTIVE_MODE, 8000000));
|
shell_printf("Setting SPI to 1 Mhz : %d."NEW_LINE, tls_spi_setup(SPI_DEFAULT_MODE, SPI_CS_ACTIVE_MODE, 8000000));
|
||||||
shell_printf("NRF begin : %d."NEW_LINE, NRF24L01P_begin(&NRF));
|
shell_printf("NRF begin : %d."NEW_LINE, NRF24L01P_begin(&NRF));
|
||||||
@ -192,10 +192,10 @@ void user_main(void *param)
|
|||||||
NRF24L01P_writeAckPayload(&NRF, 1, ack_pl, sizeof ack_pl);
|
NRF24L01P_writeAckPayload(&NRF, 1, ack_pl, sizeof ack_pl);
|
||||||
NRF24L01P_startListening(&NRF);
|
NRF24L01P_startListening(&NRF);
|
||||||
shell_printf("NRF PA level : %d"NEW_LINE, NRF24L01P_getPALevel(&NRF));
|
shell_printf("NRF PA level : %d"NEW_LINE, NRF24L01P_getPALevel(&NRF));
|
||||||
|
NRF24L01P_printDetails(&NRF);
|
||||||
|
/*uint8_t payload[32] = "Hello W801";
|
||||||
|
shell_printf("Sending payload : %d"NEW_LINE, NRF24L01P_write(&NRF, payload, sizeof payload));
|
||||||
NRF24L01P_printDetails(&NRF);*/
|
NRF24L01P_printDetails(&NRF);*/
|
||||||
//uint8_t payload[32] = "Hello W801";
|
|
||||||
//shell_printf("Sending payload : %d"NEW_LINE, NRF24L01P_write(&NRF, payload, sizeof payload));
|
|
||||||
//NRF24L01P_printDetails(&NRF);
|
|
||||||
|
|
||||||
nano_shell_server_task_stack = tls_mem_alloc(sizeof(u32) * NANO_SHELL_SERVER_TASK_STK_SIZE);
|
nano_shell_server_task_stack = tls_mem_alloc(sizeof(u32) * NANO_SHELL_SERVER_TASK_STK_SIZE);
|
||||||
if(nano_shell_server_task_stack != NULL)
|
if(nano_shell_server_task_stack != NULL)
|
||||||
@ -250,7 +250,7 @@ void user_main(void *param)
|
|||||||
|
|
||||||
tls_os_time_delay(pdMS_TO_TICKS(pulse_rate));
|
tls_os_time_delay(pdMS_TO_TICKS(pulse_rate));
|
||||||
|
|
||||||
/*if(nrf_irq)
|
if(nrf_irq)
|
||||||
{
|
{
|
||||||
bool tx_ok, tx_fail, rx_ready;
|
bool tx_ok, tx_fail, rx_ready;
|
||||||
NRF24L01P_whatHappened(&NRF, &tx_ok, &tx_fail, &rx_ready);
|
NRF24L01P_whatHappened(&NRF, &tx_ok, &tx_fail, &rx_ready);
|
||||||
@ -265,6 +265,7 @@ void user_main(void *param)
|
|||||||
}
|
}
|
||||||
|
|
||||||
nrf_irq = false;
|
nrf_irq = false;
|
||||||
}*/
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user