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:
@@ -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();
|
||||
|
||||
|
||||
@@ -73,7 +73,7 @@
|
||||
<LExpSel>0</LExpSel>
|
||||
</OPTXL>
|
||||
<OPTFL>
|
||||
<tvExp>1</tvExp>
|
||||
<tvExp>0</tvExp>
|
||||
<tvExpOptDlg>0</tvExpOptDlg>
|
||||
<IsCurrentTarget>1</IsCurrentTarget>
|
||||
</OPTFL>
|
||||
@@ -336,7 +336,7 @@
|
||||
|
||||
<Group>
|
||||
<GroupName>Application</GroupName>
|
||||
<tvExp>1</tvExp>
|
||||
<tvExp>0</tvExp>
|
||||
<tvExpOptDlg>0</tvExpOptDlg>
|
||||
<cbSel>0</cbSel>
|
||||
<RteFlg>0</RteFlg>
|
||||
|
||||
@@ -96,68 +96,15 @@
|
||||
// <h> DFU mode enter method
|
||||
|
||||
//==========================================================
|
||||
// <e> NRF_BL_DFU_ENTER_METHOD_BUTTON - Enter DFU mode on button press.
|
||||
//==========================================================
|
||||
|
||||
#ifndef NRF_BL_DFU_ENTER_METHOD_BUTTON
|
||||
#define NRF_BL_DFU_ENTER_METHOD_BUTTON 1
|
||||
#define NRF_BL_DFU_ENTER_METHOD_BUTTON 0
|
||||
#endif
|
||||
// <o> NRF_BL_DFU_ENTER_METHOD_BUTTON_PIN - Button for entering DFU mode.
|
||||
|
||||
// <0=> 0 (P0.0)
|
||||
// <1=> 1 (P0.1)
|
||||
// <2=> 2 (P0.2)
|
||||
// <3=> 3 (P0.3)
|
||||
// <4=> 4 (P0.4)
|
||||
// <5=> 5 (P0.5)
|
||||
// <6=> 6 (P0.6)
|
||||
// <7=> 7 (P0.7)
|
||||
// <8=> 8 (P0.8)
|
||||
// <9=> 9 (P0.9)
|
||||
// <10=> 10 (P0.10)
|
||||
// <11=> 11 (P0.11)
|
||||
// <12=> 12 (P0.12)
|
||||
// <13=> 13 (P0.13)
|
||||
// <14=> 14 (P0.14)
|
||||
// <15=> 15 (P0.15)
|
||||
// <16=> 16 (P0.16)
|
||||
// <17=> 17 (P0.17)
|
||||
// <18=> 18 (P0.18)
|
||||
// <19=> 19 (P0.19)
|
||||
// <20=> 20 (P0.20)
|
||||
// <21=> 21 (P0.21)
|
||||
// <22=> 22 (P0.22)
|
||||
// <23=> 23 (P0.23)
|
||||
// <24=> 24 (P0.24)
|
||||
// <25=> 25 (P0.25)
|
||||
// <26=> 26 (P0.26)
|
||||
// <27=> 27 (P0.27)
|
||||
// <28=> 28 (P0.28)
|
||||
// <29=> 29 (P0.29)
|
||||
// <30=> 30 (P0.30)
|
||||
// <31=> 31 (P0.31)
|
||||
// <32=> 32 (P1.0)
|
||||
// <33=> 33 (P1.1)
|
||||
// <34=> 34 (P1.2)
|
||||
// <35=> 35 (P1.3)
|
||||
// <36=> 36 (P1.4)
|
||||
// <37=> 37 (P1.5)
|
||||
// <38=> 38 (P1.6)
|
||||
// <39=> 39 (P1.7)
|
||||
// <40=> 40 (P1.8)
|
||||
// <41=> 41 (P1.9)
|
||||
// <42=> 42 (P1.10)
|
||||
// <43=> 43 (P1.11)
|
||||
// <44=> 44 (P1.12)
|
||||
// <45=> 45 (P1.13)
|
||||
// <46=> 46 (P1.14)
|
||||
// <47=> 47 (P1.15)
|
||||
|
||||
#ifndef NRF_BL_DFU_ENTER_METHOD_BUTTON_PIN
|
||||
#define NRF_BL_DFU_ENTER_METHOD_BUTTON_PIN 25
|
||||
#endif
|
||||
|
||||
// </e>
|
||||
|
||||
// <q> NRF_BL_DFU_ENTER_METHOD_PINRESET - Enter DFU mode on pin reset.
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user