mirror of
https://github.com/Ai-Thinker-Open/Ai-Thinker-Open_RTL8710BX_ALIOS_SDK.git
synced 2026-07-14 14:05:38 +00:00
rel_1.6.0 init
This commit is contained in:
commit
27b3e2883d
19359 changed files with 8093121 additions and 0 deletions
17
Living_SDK/device/bluetooth/nrf51822/nrf51822.c
Normal file
17
Living_SDK/device/bluetooth/nrf51822/nrf51822.c
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
#include <stdint.h>
|
||||
#include <hal/soc/soc.h>
|
||||
|
||||
extern void hci_h4_set_uart_config(uart_config_t *c);
|
||||
|
||||
void nrf51822_h4_set_uart_config()
|
||||
{
|
||||
uart_config_t c = {
|
||||
.baud_rate = 115200,
|
||||
.data_width = DATA_WIDTH_8BIT,
|
||||
.parity = NO_PARITY,
|
||||
.stop_bits = STOP_BITS_1,
|
||||
.flow_control = FLOW_CONTROL_CTS_RTS
|
||||
};
|
||||
|
||||
hci_h4_set_uart_config(&c);
|
||||
}
|
||||
5
Living_SDK/device/bluetooth/nrf51822/nrf51822.mk
Normal file
5
Living_SDK/device/bluetooth/nrf51822/nrf51822.mk
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
NAME := hci_h4_nrf51822
|
||||
|
||||
$(NAME)_SOURCES := nrf51822.c
|
||||
|
||||
GLOBAL_DEFINES += HCI_H4_NRF51822
|
||||
15
Living_SDK/device/bluetooth/nrf51822/ucube.py
Normal file
15
Living_SDK/device/bluetooth/nrf51822/ucube.py
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
src =Split('''
|
||||
nrf51822.c
|
||||
''')
|
||||
component =aos_component('hci_h4_nrf51822', src)
|
||||
|
||||
|
||||
|
||||
global_macros =Split('''
|
||||
HCI_H4_NRF51822
|
||||
''')
|
||||
for i in global_macros:
|
||||
component.add_global_macros(i)
|
||||
|
||||
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue