Init
This commit is contained in:
parent
012913f2c4
commit
9e9968a56a
|
|
@ -26,6 +26,8 @@ static _Noreturn void Mma_Thread(tMma *env) {
|
|||
// Запуск устройства
|
||||
Mma_InitStage(env);
|
||||
|
||||
bool result;
|
||||
|
||||
for (;;) {
|
||||
|
||||
GpioPinSet(&env->gpios->Led.ledR1, true);
|
||||
|
|
@ -33,10 +35,20 @@ static _Noreturn void Mma_Thread(tMma *env) {
|
|||
GpioPinSet(&env->gpios->Led.ledR1, false);
|
||||
SystemDelayMs(1000);
|
||||
|
||||
uint16_t data = 0;
|
||||
bool result = setSpiSensor(&env->sensorSPI, data);
|
||||
|
||||
// result = setSpiSensor(&env->sensorSPI, SENSOR_TYPE_A, SENSOR_ADR_1, 3);
|
||||
|
||||
asm("nop");
|
||||
|
||||
// result = setSpiSensor(&env->sensorSPI, SENSOR_TYPE_A, SENSOR_ADR_2, 1);
|
||||
|
||||
asm("nop");
|
||||
|
||||
|
||||
|
||||
/*
|
||||
|
||||
|
||||
GpioPinSet(&env->gpios->Led.ledR1, true);
|
||||
SystemDelayMs(1000);
|
||||
GpioPinSet(&env->gpios->Led.ledR1, false);
|
||||
|
|
|
|||
Loading…
Reference in New Issue