#define CLOCK_CONFIG_LF_SRC 0
#define LED_GREEN 0
#define LED_RED 1
#define LEDS_NUMBER 2
#define LEDS_LIST { LED_RED , LED_GREEN }
#define BSP_LED_0 LED_GREEN
#define BSP_LED_1 LED_RED
#define SPI1_SCLK_PIN 29 //SPI CSCLK
#define SPI1_MOSI_PIN 30 //SPI MOSI
#define SPI1_MISO_PIN 31 //SPI_MISO
#define SPI1_CS_PIN 24 //SPI_CS
#define SPI0_CS_PIN 18 // SPI CSN signal.
#define SPI0_MOSI_PIN 15 // SPI MOSI signal.
#define SPI0_SCK_PIN 17 // SPI SCK signal.
#define RESET_PIN 20 //CHIP reset signal.RESET
my app has 4 tasks:
task 1:watch dog and feed dog,
task 2:ble communication,
task 3:spi0 read sensor`s data, Get_BIA_Data(&gSysBreathValues);
task 4:spi1 read sensor`s data. Read_ACC_Value(&gSysACCValues);
the OS and sensors work well, if I comment Get_BIA_Data(&gSysBreathValues) and Read_ACC_Value(&gSysACCValues),P0.00 drive LED well,if I uncomment these 2 sections, the P0.00 is out of contrland blinks tightly and weakly,I am sure that two spi`s driver don`t drive the IO P0.00.
what shoule I do to make it right?