Roy_01
|
75ec90e6d9
|
style: clean up the code
|
2024-06-27 21:30:37 +08:00 |
|
chain40
|
46ce36d71c
|
feat: 專案整理及架構調整, 使用 #define 致能/禁用各功能
|
2024-05-21 21:20:29 +08:00 |
|
chain40
|
ca3e0ebb69
|
j_scope
|
2024-04-26 00:49:33 +08:00 |
|
chain40
|
3c0822efe3
|
feat: 實作檔案系統 fs_dir, 輸出目錄
|
2024-04-10 21:26:34 +08:00 |
|
chain40
|
939f4034da
|
feat: 實作檔案系統 fs
1) spi 傳送的資料長度定為 2 byte (easyDMA 支援最大長度)
2) 建立 block_dev_drv_if
3) 實作 gd25d10c driver
4) 移植 littleFS
5) 建立讀寫測試範例
|
2024-04-10 08:01:20 +08:00 |
|
chain40
|
669f0f0c48
|
feat: 實作 dac / adc / timer 功能整合測試 (測試中)
1. DAC 使用 TIME2 控制輸出的間隔時間, 最短週期可至 100us
2. ADC 使用 TIME3 控制輸出的間隔時間
2-1. 如果是 1 CH, 最短週期可至 100us
2-2. 如果是 2 CH, 最短週期可至 200us
2-3. 如果是 3 CH, 最短週期可至 300us
2-6. 如果是 6 CH, 最短週期可至 600us
... 依此類推. TIMER3 可支援 6 組比較值
3. SW 控制未實作
|
2024-04-03 00:38:52 +08:00 |
|
chain40
|
77071869b2
|
feat: 新增 builtin-saadc driver 使用 mcu 內建的讀取 adc 值
1. 參考電壓只有兩個選擇 a. 0.6v (預設), b. VDD/4
2. 訊號輸入方式 a. single end(預設), b. differntial
3. 由於 ref 預設是 0.6v 在 gain = 1 的條件下, 輸入訊號不得大於 0.6v
4. 承上, 在 gain = 1/6 的條件下, 輸入訊號不得大於 3.6v
5. ads8691 的 gain 設定目前暫只支援 VREF_NP_xPxxx, 不支援 VREF_P_xPxxx
|
2024-04-01 09:57:54 +08:00 |
|
chain40
|
76d08f50bf
|
1. set adc_gain default to NP_GAIN_3P000
2. add testing functionality for dev_mode (ex: led、dac、adc、gpio、spi)
|
2024-03-30 09:28:16 +08:00 |
|
chain40
|
d9a2a7b4e2
|
feat: 實作 sw_drv, sw_drv_if, adgs1412 driver
1. sw_t 是一個 64位元的資料結構, 最大可支援 64 pin sw (adgs1412 最多支援 16 顆)
|
2024-03-29 00:28:42 +08:00 |
|
chain40
|
31c691c7c5
|
feat: 實作 ads8691 driver 以及 adc_drv_if 實作
1. 預設 spi2 為 mode 0, 當 ads8691 初始化完成後, 將 spi2 切為 mode 2
2. 承上, 所以 adc driver 要比 dac driver 更早初始化
3. 將來會將 spi mode 整合 spi transfer, 雖然週邊共用 spi 但是可以每個週邊使用自己的 mode
4. 當調整增益, 更改輸出格式, 切換輸入來源時會把 m_flush_data 設為 1, 在讀 ad 值時會先預讀一次更新量測的結果
|
2024-03-22 07:29:06 +08:00 |
|
chain40
|
e3c969b3e1
|
feat: 移植並實作 vis_rst(), 建立 dac_drv 架構
|
2024-03-11 23:40:55 +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 |
|
chain40
|
a404a98c25
|
fix: gpio 初始化過調整, 移除 enable_6994_callback()
|
2024-02-01 10:00:32 +08:00 |
|
Roy_01
|
0e90206dda
|
fix: spim2 support multi-task & isr callback.
|
2024-01-03 17:36:37 +08:00 |
|
Roy_01
|
7eb82ae895
|
style: updated code style
|
2024-01-03 14:40:04 +08:00 |
|
Roy_01
|
2bf247c103
|
new twi0 (i2c0)
|
2023-12-27 14:50:14 +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 |
|
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
|
92ec0d79a1
|
bugfix: increase hvn_tx_queue_size for high freq notify
|
2023-08-01 16:15:13 +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
|
28d1d31402
|
[note]
|
2023-07-26 13:45:14 +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
|
c1d841239d
|
[note] Merge branch 'device_info_srv'
|
2023-07-25 09:37:41 +08:00 |
|
Roy
|
216c9c40f8
|
add device info service
|
2023-07-24 16:50:04 +08:00 |
|
Roy
|
d563e23105
|
[note] Merge branch 'gatt'
|
2023-07-24 16:37:49 +08:00 |
|
Roy
|
c42b96a6eb
|
handle BLE_GAP_EVT_PHY_UPDATE_REQUEST for phy update request
|
2023-07-24 16:22:43 +08:00 |
|
Roy
|
d9c1bf6a49
|
add gatt initialization
|
2023-07-24 16:04:25 +08:00 |
|
Roy
|
55db0df3d9
|
add manuf_specific_data(custom data) in advertising packet
|
2023-07-24 14:18:54 +08:00 |
|
Roy
|
06171ec3ae
|
[note] Merge branch 'ble' into develop
|
2023-07-24 11:56:18 +08:00 |
|
Roy
|
52f75b1969
|
add le_gap.c / le_adv.c
[roy: could scan device]
|
2023-07-20 16:57:32 +08:00 |
|
Roy
|
e23abeb2d8
|
add nrf_sdh_freertos_init()
|
2023-07-20 16:48:41 +08:00 |
|
Roy
|
c42094626a
|
enable ble stack
|
2023-07-20 16:24:56 +08:00 |
|
chain40
|
b1a2410bc4
|
add freertos src, and create led1_task / led2_task
|
2023-05-06 09:51:10 +08:00 |
|
chain40
|
be090ba669
|
add nrf log feature
|
2023-05-05 00:04:09 +08:00 |
|
chain40
|
d8aa03950d
|
add .clang-format
|
2023-05-04 23:57:19 +08:00 |
|
chain40
|
fcc8f6ba44
|
project init
|
2023-05-04 23:16:45 +08:00 |
|