VesiScan BASIC origin: Piezo + IMU firmware initial code

- nRF52840 + SoftDevice S140 BLE firmware
- Piezo ultrasound TX driver (2MHz, 8ch MUX)
- ICM42670P IMU 6-axis driver
- Echo AFE chain (ADA2200 + ADC121S051)
- BLE NUS command parser (mpa/mpc/mdc/mec/maa/msp)
- FDS flash config storage
- pc_firm parser and ADC driver included

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Charles Kwon
2026-03-11 10:40:20 +09:00
parent 72f5eb3cd9
commit 8129f55216
47 changed files with 8459 additions and 2887 deletions

View File

@@ -3,7 +3,7 @@
* @author CandyPops Co.
* @version V1.0.0
* @date 2022-09-05
* @brief
* @brief
******************************************************************************/
#include <stdint.h>
@@ -21,7 +21,7 @@
#include "nrf_bootloader_info.h"
#include "nrf_delay.h"
#define POWER_HOLD NRF_GPIO_PIN_MAP(0,8) // power hold port for medithings device
#define POWER_HOLD NRF_GPIO_PIN_MAP(0,8) // power hold port for medithings device
static void on_error(void)
{
@@ -90,7 +90,7 @@ int main(void)
nrf_gpio_cfg_output(POWER_HOLD);
nrf_gpio_pin_set(POWER_HOLD); // The medithings device performs power hold when the power button is pressed for 3 seconds.
// And then, The medithings device loads the bootloader.
// Must happen before flash protection is applied, since it edits a protected page.
nrf_bootloader_mbr_addrs_populate();