diff --git a/project/ble_peripheral/ble_app_bladder_patch/main.c b/project/ble_peripheral/ble_app_bladder_patch/main.c index 3c0c2eb..fe79feb 100644 --- a/project/ble_peripheral/ble_app_bladder_patch/main.c +++ b/project/ble_peripheral/ble_app_bladder_patch/main.c @@ -617,6 +617,7 @@ static void nrf_qwr_error_handler(uint32_t nrf_error) /* 비동기 MAA TX 완료 핸들러 (전방 선언) */ extern bool maa_async_on_tx_ready(void); extern bool maa_async_is_busy(void); +extern void maa_async_abort(void); /* 2026-03-17: BLE 콜백에서 블로킹 방지 — 명령을 버퍼에 저장 후 메인 루프에서 처리 */ static volatile uint8_t pending_cmd_buf[BLE_NUS_MAX_DATA_LEN]; @@ -1262,7 +1263,8 @@ void uart_event_handle(app_uart_evt_t * p_event) } } -/** @brief UART 초기화 (1Mbps, 흐름제어 없음, 패리티 없음) */ +/** @brief UART 초기화 (1Mbps, 흐름제어 없음, 패리티 없음) — 현재 미사용 (전력 절감) */ +#if 0 static void uart_init(void) { uint32_t err_code; @@ -1289,6 +1291,7 @@ static void uart_init(void) err_code); APP_ERROR_CHECK(err_code); } +#endif static void power_management_init(void) { @@ -1796,7 +1799,8 @@ int main(void) DBG_PRINTF(" parser OK\r\n"); // PHASE 7.7: 피에조 드라이버 초기화 (GPIO/GPIOTE/Timer/PPI + 전원) - dr_piezo_system_init(); + //dr_piezo_system_init(); + dr_piezo_init(); DBG_PRINTF(" piezo OK\r\n"); // PHASE 8: 완료