fix: ADPT_LE_PIN signal

This commit is contained in:
Roy_01
2025-04-09 14:45:14 +08:00
parent 1b994253e9
commit 14fcc96a25
3 changed files with 9 additions and 9 deletions
+4 -4
View File
@@ -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);
+2 -2
View File
@@ -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,
+3 -3
View File
@@ -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);