apply latest local changes

This commit is contained in:
jhChun
2026-03-23 16:22:25 +09:00
parent 35d6956de2
commit be3ebc9a63
16 changed files with 252 additions and 395 deletions

View File

@@ -14,7 +14,6 @@
* - IMU: ICM42670P 6축 가속도/자이로 (I2C, 0x68)
* - 온도: TMP235-Q1 아날로그 센서 (SAADC AIN3)
* - 배터리: 분압 회로 (SAADC AIN2, 1/3 프리스케일)
* - 압력: 2채널 압력센서 (SAADC AIN7/AIN4)
* - 전원: POWER_HOLD(P0.8) 자가유지 회로, POWER_BUTTON(P1.8) 입력
*
* [소프트웨어 부트 시퀀스 — main() 함수]
@@ -121,6 +120,7 @@
#include "parser.h" /* 새 바이너리 명령 파서 (dr_cmd_parser) */
#include "debug_print.h" /* 디버그 출력 매크로 (DBG_PRINTF) */
#include "fstorage.h" /* Flash Storage 래퍼 (FDS 초기화/저장/로드) */
#include "dr_piezo.h" /* 피에조 초음파 드라이버 */
#define HARDWARE_VERSION "VB0HW0000"
@@ -346,7 +346,7 @@ static void minimal_gpio_init(void)
nrf_gpio_cfg_output(POWER_HOLD);
nrf_gpio_pin_set(POWER_HOLD);
power_gpio_init();
DBG_PRINTF("[GPIO] Minimal OK (BTN=%d)\r\n", nrf_gpio_pin_read(POWER_BUTTON));
}
@@ -635,8 +635,7 @@ static void nus_data_handler(ble_nus_evt_t * p_evt)
{
cmd_type_t = CMD_BLE;
ble_got_new_data = true;
DBG_PRINTF("[NUS] RX len=%d\r\n", p_evt->params.rx_data.length);
/* 콜백에서는 복사만 하고, 메인 루프에서 처리 */
if (p_evt->params.rx_data.length <= BLE_NUS_MAX_DATA_LEN)
{
@@ -1783,6 +1782,10 @@ int main(void)
g_log_enable = true;
DBG_PRINTF(" parser OK\r\n");
// PHASE 7.7: 피에조 드라이버 초기화 (GPIO/GPIOTE/Timer/PPI + 전원)
dr_piezo_system_init();
DBG_PRINTF(" piezo OK\r\n");
// PHASE 8: 완료
DBG_PRINTF("\r\n========================================\r\n");
DBG_PRINTF(" READY [%s]\r\n", SERIAL_NO);