32ESPecial Version 1.00 (#9)
This release reworked the initialization code to provide more robust initialization, especially when no USB stick is present. It incorporates [Version 1.0 of SystemK](Software/SystemK#9). This is the first release for the [32ESPecial Blaster Kits](https://link.clubk.club/2025002). Co-authored-by: Joe Kearney <joe@clubk.club> Reviewed-on: #9
This commit is contained in:
parent
14ec8fe280
commit
e12ee17973
67 changed files with 1232 additions and 649 deletions
|
|
@ -5,5 +5,6 @@ idf_component_register(
|
|||
"."
|
||||
REQUIRES
|
||||
"SystemK"
|
||||
"System_Events"
|
||||
"driver"
|
||||
)
|
||||
|
|
|
|||
|
|
@ -21,6 +21,7 @@
|
|||
*/
|
||||
|
||||
#include <SystemK.h>
|
||||
#include <System_Events.h>
|
||||
#include <IR.h>
|
||||
#include <driver/gpio.h>
|
||||
#include <driver/rmt_tx.h>
|
||||
|
|
@ -272,7 +273,7 @@ static void Initialize_Receive_Task(void)
|
|||
}
|
||||
}
|
||||
|
||||
void Initialize_IR(SemaphoreHandle_t init_complete)
|
||||
void Initialize_IR()
|
||||
{
|
||||
KLOG_INFO(TAG, "Initializing IR...");
|
||||
|
||||
|
|
@ -375,7 +376,8 @@ void Initialize_IR(SemaphoreHandle_t init_complete)
|
|||
ESP_ERROR_CHECK(rmt_enable(Right_Rx_Channel));
|
||||
ESP_ERROR_CHECK(rmt_receive(Right_Rx_Channel, &Right_Rxd_RMT_Data, sizeof(Right_Rxd_RMT_Data.pulsetrain), &Rx_Config));
|
||||
|
||||
xSemaphoreGive(init_complete);
|
||||
xEventGroupSetBits(Get_System_Events(), SYS_IR_READY);
|
||||
KLOG_INFO(TAG, "Initialization complete.");
|
||||
}
|
||||
|
||||
static inline void PrintPulseTrainToConsole(TimedPulseTrain_T *train)
|
||||
|
|
@ -440,4 +442,4 @@ void Disable_IR_Transmit()
|
|||
{
|
||||
gpio_set_level(IR_TX_RIGHT_ENABLE, 1);
|
||||
gpio_set_level(IR_TX_LEFT_ENABLE, 1);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -22,6 +22,6 @@
|
|||
|
||||
#include "esp_err.h"
|
||||
|
||||
void Initialize_IR(SemaphoreHandle_t init_complete);
|
||||
void Initialize_IR();
|
||||
void Enable_IR_Transmit();
|
||||
void Disable_IR_Transmit();
|
||||
void Disable_IR_Transmit();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue