diff --git a/cpg.h b/cpg.h index d54dec9..ab1a873 100644 --- a/cpg.h +++ b/cpg.h @@ -11,10 +11,10 @@ extern "C" #include "elite_board.h" #define VERSION_DATE_YEAR 25 -#define VERSION_DATE_MONTH 3 -#define VERSION_DATE_DAY 28 -#define VERSION_DATE_HOUR 15 -#define VERSION_DATE_MINUTE 35 +#define VERSION_DATE_MONTH 4 +#define VERSION_DATE_DAY 9 +#define VERSION_DATE_HOUR 14 +#define VERSION_DATE_MINUTE 45 const elite_instance_t *cpg_init(void); diff --git a/cpg11_io.c b/cpg11_io.c index 7b90e34..9cf6cc0 100644 --- a/cpg11_io.c +++ b/cpg11_io.c @@ -478,7 +478,8 @@ void cpg11_io_init(void) LED_R_PIN, LED_G_PIN, CS_MEM_PIN, - ADPT_CLR_PIN + ADPT_CLR_PIN, + ADPT_LE_PIN }; const uint32_t pel_pins_default_low[] = { @@ -490,7 +491,6 @@ void cpg11_io_init(void) SPIM_CLK_PIN, SPIM_MOSI_PIN, SPIM_MISO_PIN, - ADPT_LE_PIN, ADPT0_S4_PIN, ADPT0_S3_PIN, ADPT0_S2_PIN, diff --git a/max14802.c b/max14802.c index e5f4691..308cd1d 100644 --- a/max14802.c +++ b/max14802.c @@ -84,7 +84,7 @@ static const uint32_t exclude_io[64] = { static void shift_out(uint8_t *p, uint32_t len) { - nrf_gpio_pin_clear(ADPT_LE_PIN); + nrf_gpio_pin_set(ADPT_LE_PIN); for (int32_t j = len; j > 0; j--) { @@ -100,8 +100,8 @@ static void shift_out(uint8_t *p, uint32_t len) nrf_gpio_pin_clear(ADPT_CLK_PIN); nrf_gpio_pin_clear(ADPT_DIN_PIN); - nrf_gpio_pin_set(ADPT_LE_PIN); nrf_gpio_pin_clear(ADPT_LE_PIN); + nrf_gpio_pin_set(ADPT_LE_PIN); } int max14802_reset(void) @@ -158,7 +158,7 @@ int max14802_get_sw_count(uint32_t *p_sw_count) int max14802_init(void) { nrf_gpio_pin_set(ADPT_CLR_PIN); - nrf_gpio_pin_clear(ADPT_LE_PIN); + nrf_gpio_pin_set(ADPT_LE_PIN); nrf_gpio_pin_clear(ADPT_CLK_PIN); nrf_gpio_pin_clear(ADPT_DIN_PIN);