Commit Graph

72 Commits

Author SHA1 Message Date
chain40 0d40e8a2bc fix: 將 spi2 設定為 mode 2, 配合 MAX5136 / ADS8691 2024-03-12 22:34:09 +08:00
chain40 e3c969b3e1 feat: 移植並實作 vis_rst(), 建立 dac_drv 架構 2024-03-11 23:40:55 +08:00
chain40 3968bb1a5b add dev_mode 2024-03-08 22:52:57 +08:00
Roy_01 566101b7c8 update led driver 2024-03-08 15:39:35 +08:00
Roy_01 6d8edfbf40 gpio相關的函式都放在edc20_pin_ctrl.c (包含gpio、spi、i2c) 2024-03-08 11:16:01 +08:00
Roy_01 0c9b8d2b8d 1. gpio_init() before initializing TWI and SPI
2. spi2 use spi mode 0
MAX5136 (spi mode 2, maybe it can't work, but it's actually work)
ADS8691 (spi mode 0~3)
ADGS1412 (spi mode 0/3)
GD25D10CTIGR (spi mode 0/3)
2024-03-05 17:27:40 +08:00
Roy_01 e6621dee5a define each series of Elite 2024-03-05 17:25:47 +08:00
chain40 f1e8f66a39 feat: 實作 le_event_notify() / le_data_notify() 2024-03-05 07:42:52 +08:00
chain40 f192bb44c5 feat: 實作 edc2.0 / eis 2.0 樣板 2024-03-05 00:39:25 +08:00
chain40 0b3d60d1b3 fix: 將 EDC service 改為 ELITE service, 提供一致的存取面 (data/inst/event) 2024-03-04 22:58:02 +08:00
chain40 a310520643 fix: EDC service 相容性修改 (cc2650)
1) 修改 edc srv 的 UUID 類型, 由 vendor specific UUID (128-bit) 改為 Bluetooth SIG UUID (16-bit)

2) dis service 新增 sys_id 欄位, 確保 edc src 建立的 char handle 可對應 0x21, 0x24, 0x27

3) edc src 改使用 data (uuid: 0xFFF2) / inst  (uuid: 0xFFF3) / evet (uuid: 0xFFF4) 三個 char
2024-03-02 22:47:03 +08:00
chain40 b476520494 fix: 修改 edc srv 的 UUID 類型, 由 vendor specific UUID (128-bit) 改為 Bluetooth SIG UUID (16-bit) 以相容 cc2650 2024-02-18 21:57:01 +08:00
chain40 d3803c43ae fix: 修改廣播封包格式以相容 cc2650
1. adv package: UUID (0xFFF0)
2. scan response package: cc2650 定義的內容
3. adv interval 設定為 75ms (多裝置環境下, 降低廣播封包碰撞的機會)
2024-02-01 10:00:36 +08:00
chain40 a404a98c25 fix: gpio 初始化過調整, 移除 enable_6994_callback() 2024-02-01 10:00:32 +08:00
chain40 9916809ddf fix: 將 led 的 spi 通訊改為 mode 0 (依照 datasheet) 2024-02-01 10:00:29 +08:00
Roy_01 cfe55c5e23 fix: code go to breaking point during I2C initialization
1. do nothing when i2c transfer completed
2. take away virtual_data
3. spi frequency change to 8M
2024-01-24 17:26:33 +08:00
Roy_01 50ef6af023 fix: i2c support multi-task & isr callback. 2024-01-16 10:03:51 +08:00
Roy_01 d3114ed49f fix: 修正 rtt 顯示異常的問題 2024-01-03 17:44:14 +08:00
Roy_01 0e90206dda fix: spim2 support multi-task & isr callback. 2024-01-03 17:36:37 +08:00
Roy_01 443f38e90c fix: clear_bus_init 設為 true
1. 確保不會有某個 i2c slave device 把 sda pin pull
2024-01-03 14:44:21 +08:00
Roy_01 7eb82ae895 style: updated code style 2024-01-03 14:40:04 +08:00
Roy_01 385b5ad471 new develop tool: change_led、gpio_output、gpio_input、spi2、i2c0 2023-12-27 15:10:01 +08:00
Roy_01 2bf247c103 new twi0 (i2c0) 2023-12-27 14:50:14 +08:00
Roy_01 c4bb2fec1f new spim2 2023-12-27 14:43:07 +08:00
Roy_01 0e9a2baa56 new spim1 for LED use 2023-12-27 13:42:32 +08:00
Roy_01 9faf9f8692 updated many pin configuration and enable RT6994 after one second 2023-12-27 11:56:38 +08:00
Roy_01 4cecf11510 modify the LED pin configuration, enable 5V and 12V power 2023-12-27 10:08:32 +08:00
chain40 d6f62f8b22 add led driver 2023-10-24 20:59:27 +08:00
chain40 fb60d3c254 create dfu service 2023-09-27 07:27:44 +08:00
chain40 c45c81e0ac use nrfutil create OTA file 2023-09-26 22:47:35 +08:00
Roy 3cf2a1453d update IDE setting 2023-08-02 10:27:09 +08:00
Roy 5e8cab7512 clear regular data queue when connected 2023-08-01 16:31:11 +08:00
Roy ca2c177949 remove PHY request when connected event.
1. 2M PHY can be requested from either slave or master device.

2. In Elite device, the 2M PHY be requested from master device.
2023-08-01 16:30:00 +08:00
Roy ad35d558e4 reset edc char notify enable status 2023-08-01 16:27:33 +08:00
Roy d585a711ac bugfix: fix BLE_UUID_EDC_EVENT_CHAR error 2023-08-01 16:24:36 +08:00
Roy afcd31c12f To achieve maximum throughput for the BLE dongle.
1. Set the maximum connection interval to 20ms.
2. Refactory pseudo_data_task()
3. Decrease size of regular_data_q
2023-08-01 16:23:07 +08:00
Roy 92ec0d79a1 bugfix: increase hvn_tx_queue_size for high freq notify 2023-08-01 16:15:13 +08:00
Roy 82f8018af1 upgrade toolchain and add syscalls.c file 2023-07-31 16:20:01 +08:00
Roy afa267e0be bugfix: fix wrong offset for checksum
bugfix: fix channel_len (group_length) field miss
2023-07-27 16:49:24 +08:00
Roy e3c1a5a579 implement edc_regular_data feature
1. create 2 pseudo task, update freq = 1KHz
2. add regular_data_notify_demo.py for validation
2023-07-27 16:43:53 +08:00
Roy e27421d2bf update gap/gatt configurtion 2023-07-27 15:55:48 +08:00
Roy 41759ddfaf update GAP/GATT configure for ATT MTU
1. set gap data length = 251
2. set gatt mtu = 247
3. increase gap event length (events per connection interval)
4. increase ram usage for softdevice
2023-07-27 15:55:00 +08:00
Roy 059305ecbf main.c code refactoring
1. remove led1_task, led1_task.
2. send phy update request when conncted.
3. le_evt_handler() ouput more ble event information
2023-07-26 14:49:51 +08:00
Roy 06184562e8 update freertos configuration
1. remove unused functions
2. increase freertos heap size to 32KB
3. increase max of priorities
2023-07-26 13:49:39 +08:00
Roy 28d1d31402 [note] 2023-07-26 13:45:14 +08:00
Roy 2c4e6a921f 1.create battery task
2.define le_edc_bat_volt_update(). sending notification with the battery volt characteristic , if notification is enable,

1. define on_connect()
2. define on_disconnect()
2023-07-25 17:27:10 +08:00
Roy d0706fa05c set the battery voltage characteristic as a notification characteristic Part 1.
1. register handler for ble events
2. add edc_ccc_update() for CCCD (client characteristic configuration descriptor)
2023-07-25 17:19:06 +08:00
Roy 399fdf6a45 create EDC battery volt characteristic, and support read only 2023-07-25 14:33:35 +08:00
Roy 8f45c844cd create EDC service 2023-07-25 13:24:43 +08:00
Roy c1d841239d [note] Merge branch 'device_info_srv' 2023-07-25 09:37:41 +08:00