Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Diff: i2c_mbed_fpga.h
- Revision:
- 15:83bbc18cccbc
- Parent:
- 14:062850afdf38
- Child:
- 16:a0bfe33f8a4a
--- a/i2c_mbed_fpga.h Thu Apr 22 11:35:17 2021 +0000 +++ b/i2c_mbed_fpga.h Wed May 12 10:09:04 2021 +0000 @@ -24,15 +24,23 @@ nv_spd_control_1_val = NV_SPD_CONTROL_1_DEFAULT; nv_spd_control_2_val = NV_SPD_CONTROL_1_DEFAULT; nv_gen_ctrl_val = NV_GEN_CTRL_DEFAULT; - nv_comm_ctrl_val = NV_COMM_CTRL_DEFAULT; - nv_application_cfg_val = NV_APPLICATION_CFG_DEFAULT; + nv_application_cfg_val = NV_APPLICATION_CFG_DEFAULT; + nv_i_zc_th_high_val = NV_I_ZC_TH_HIGH_DEFAULT; + nv_i_zc_th_low_val = NV_I_ZC_TH_LOW_DEFAULT; + nv_di_th_1st_val = NV_DI_TH_1ST_DEFAULT; + nv_di_th_2nd_val = NV_DI_TH_2ND_DEFAULT; + nv_dig_config_val = NV_DIG_CONFIG_DEFAULT; }; int i2c_word_read(char *word); int i2c_word_write(char *word); - int i2c_window_open(); - int i2c_motor_start(); + //int i2c_window_open(); + //int i2c_motor_start(); + + int i2c_config_mode_entry(); + int i2c_skip_app_copy(); + int i2c_soft_reset(); int i2c_set_50k_pwm(unsigned int pwm50k); @@ -75,6 +83,11 @@ unsigned int nv_gen_ctrl_val; unsigned int nv_comm_ctrl_val; unsigned int nv_application_cfg_val; + unsigned int nv_i_zc_th_high_val; + unsigned int nv_i_zc_th_low_val; + unsigned int nv_di_th_1st_val; + unsigned int nv_di_th_2nd_val; + unsigned int nv_dig_config_val; //Position Detection Task/Functions };