Skip to content

Commit

Permalink
# v1.1.0 Update release
Browse files Browse the repository at this point in the history
  • Loading branch information
GabyGold67 committed May 27, 2024
1 parent fe4ca6b commit 184ab12
Show file tree
Hide file tree
Showing 72 changed files with 657 additions and 1,040 deletions.
16 changes: 0 additions & 16 deletions Examples/01_DbncdMPBttn_1a.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@ gpioPinId_t tstMpbOnBoard{GPIOC, GPIO_PIN_13}; // Pin 0b 0010 0000 0000 0000
//gpioPinId_t ledOnPC01{GPIOC, 0b010};
TaskHandle_t tstDefTaskHandle {NULL};
BaseType_t xReturned;

/* USER CODE END PV */

/* Private function prototypes -----------------------------------------------*/
Expand Down Expand Up @@ -163,9 +162,6 @@ static void MX_USART2_UART_Init(void)
{
Error_Handler();
}
/* USER CODE BEGIN USART2_Init 2 */

/* USER CODE END USART2_Init 2 */

}

Expand All @@ -177,8 +173,6 @@ static void MX_USART2_UART_Init(void)
static void MX_GPIO_Init(void)
{
GPIO_InitTypeDef GPIO_InitStruct = {0};
/* USER CODE BEGIN MX_GPIO_Init_1 */
/* USER CODE END MX_GPIO_Init_1 */

/* GPIO Ports Clock Enable */
__HAL_RCC_GPIOC_CLK_ENABLE();
Expand Down Expand Up @@ -227,13 +221,6 @@ void tstDefTaskExec(void *pvParameters)
}
/* USER CODE END 4 */

/* USER CODE BEGIN Header_StartDefaultTask */
/**
* @brief Function implementing the defaultTask thread.
* @param argument: Not used
* @retval None
*/

/**
* @brief Period elapsed callback in non blocking mode
* @note This function is called when TIM9 interrupt took place, inside
Expand All @@ -244,9 +231,6 @@ void tstDefTaskExec(void *pvParameters)
*/
void HAL_TIM_PeriodElapsedCallback(TIM_HandleTypeDef *htim)
{
/* USER CODE BEGIN Callback 0 */

/* USER CODE END Callback 0 */
if (htim->Instance == TIM9) {
HAL_IncTick();
}
Expand Down
27 changes: 2 additions & 25 deletions Examples/01_DbncdMPBttn_1b.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,14 +30,14 @@
//----------------------- End Specific to use STM32F4xxyy testing platform

/* Private includes ----------------------------------------------------------*/
/* USER CODE BEGIN Includes */
//===========================>> Next lines used to avoid CMSIS wrappers
#include "FreeRTOS.h"
#include "task.h"
#include "timers.h"
#include "event_groups.h"
//===========================>> Previous lines used to avoid CMSIS wrappers

/* USER CODE BEGIN Includes */
#include "../../mpbAsSwitch_STM32/src/mpbAsSwitch_STM32.h"
/* USER CODE END Includes */

Expand All @@ -51,7 +51,6 @@ gpioPinId_t tstMpbOnBoard{GPIOC, GPIO_PIN_13}; // Pin 0b 0010 0000 0000 0000
gpioPinId_t ledOnPC00{GPIOC, GPIO_PIN_0}; //Pin 0b 0000 0001
TaskHandle_t tstDefTaskHandle {NULL};
BaseType_t xReturned;

/* USER CODE END PV */

/* Private function prototypes -----------------------------------------------*/
Expand Down Expand Up @@ -99,7 +98,6 @@ int main(void)
/* Infinite loop */
while (1)
{

}
}

Expand Down Expand Up @@ -168,10 +166,6 @@ static void MX_USART2_UART_Init(void)
{
Error_Handler();
}
/* USER CODE BEGIN USART2_Init 2 */

/* USER CODE END USART2_Init 2 */

}

/**
Expand Down Expand Up @@ -213,10 +207,6 @@ static void MX_GPIO_Init(void)
GPIO_InitStruct.Pull = GPIO_NOPULL;
GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_LOW;
HAL_GPIO_Init(ledOnPC00.portId, &GPIO_InitStruct);

/* USER CODE BEGIN MX_GPIO_Init_2 */

/* USER CODE END MX_GPIO_Init_2 */
}

/* USER CODE BEGIN 4 */
Expand All @@ -240,7 +230,7 @@ void tstDefTaskExec(void *pvParameters)
pdTRUE,
tstBttnPtr,
swpEnableCb
);
);
if (enableSwpTmrHndl != NULL){
tmrModRslt = xTimerStart(enableSwpTmrHndl, portMAX_DELAY);
}
Expand Down Expand Up @@ -284,13 +274,6 @@ void swpEnableCb(TimerHandle_t pvParam){
}
/* USER CODE END 4 */

/* USER CODE BEGIN Header_StartDefaultTask */
/**
* @brief Function implementing the defaultTask thread.
* @param argument: Not used
* @retval None
*/

/**
* @brief Period elapsed callback in non blocking mode
* @note This function is called when TIM9 interrupt took place, inside
Expand All @@ -301,15 +284,9 @@ void swpEnableCb(TimerHandle_t pvParam){
*/
void HAL_TIM_PeriodElapsedCallback(TIM_HandleTypeDef *htim)
{
/* USER CODE BEGIN Callback 0 */

/* USER CODE END Callback 0 */
if (htim->Instance == TIM9) {
HAL_IncTick();
}
/* USER CODE BEGIN Callback 1 */

/* USER CODE END Callback 1 */
}

/**
Expand Down
14 changes: 1 addition & 13 deletions Examples/02_DbncdDlydMPBttn_1a.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@ gpioPinId_t tstMpbOnBoard{GPIOC, GPIO_PIN_13}; // Pin 0b 0010 0000 0000 0000
gpioPinId_t ledOnPC00{GPIOC, GPIO_PIN_0}; //Pin 0b 0000 0001
TaskHandle_t tstDefTaskHandle {NULL};
BaseType_t xReturned;

/* USER CODE END PV */

/* Private function prototypes -----------------------------------------------*/
Expand Down Expand Up @@ -95,7 +94,6 @@ int main(void)
/* Infinite loop */
while (1)
{

}
}

Expand Down Expand Up @@ -204,7 +202,7 @@ void tstDefTaskExec(void *pvParameters)
bool tmpBttnWasOn{false};
bool tmpBttnIsOn{false};

DbncdDlydMPBttn tstBttn(tstMpbOnBoard.portId, tstMpbOnBoard.pinNum, true, true, 0, 600);
DbncdDlydMPBttn tstBttn(tstMpbOnBoard.portId, tstMpbOnBoard.pinNum, true, true, 0, 1000);

tstBttn.begin(20);

Expand All @@ -222,13 +220,6 @@ void tstDefTaskExec(void *pvParameters)
}
/* USER CODE END 4 */

/* USER CODE BEGIN Header_StartDefaultTask */
/**
* @brief Function implementing the defaultTask thread.
* @param argument: Not used
* @retval None
*/

/**
* @brief Period elapsed callback in non blocking mode
* @note This function is called when TIM9 interrupt took place, inside
Expand All @@ -239,9 +230,6 @@ void tstDefTaskExec(void *pvParameters)
*/
void HAL_TIM_PeriodElapsedCallback(TIM_HandleTypeDef *htim)
{
/* USER CODE BEGIN Callback 0 */

/* USER CODE END Callback 0 */
if (htim->Instance == TIM9) {
HAL_IncTick();
}
Expand Down
16 changes: 1 addition & 15 deletions Examples/02_DbncdDlydMPBttn_1b.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,6 @@ int main(void)
/* Infinite loop */
while (1)
{

}
}

Expand Down Expand Up @@ -233,7 +232,7 @@ void tstDefTaskExec(void *pvParameters)
pdTRUE,
tstBttnPtr,
swpEnableCb
);
);
if (enableSwpTmrHndl != NULL){
tmrModRslt = xTimerStart(enableSwpTmrHndl, portMAX_DELAY);
}
Expand Down Expand Up @@ -277,13 +276,6 @@ void swpEnableCb(TimerHandle_t pvParam){
}
/* USER CODE END 4 */

/* USER CODE BEGIN Header_StartDefaultTask */
/**
* @brief Function implementing the defaultTask thread.
* @param argument: Not used
* @retval None
*/

/**
* @brief Period elapsed callback in non blocking mode
* @note This function is called when TIM9 interrupt took place, inside
Expand All @@ -294,15 +286,9 @@ void swpEnableCb(TimerHandle_t pvParam){
*/
void HAL_TIM_PeriodElapsedCallback(TIM_HandleTypeDef *htim)
{
/* USER CODE BEGIN Callback 0 */

/* USER CODE END Callback 0 */
if (htim->Instance == TIM9) {
HAL_IncTick();
}
/* USER CODE BEGIN Callback 1 */

/* USER CODE END Callback 1 */
}

/**
Expand Down
15 changes: 0 additions & 15 deletions Examples/05_TgglLtchMPBttn_a.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@ gpioPinId_t tstMpbOnBoard{GPIOC, GPIO_PIN_13}; // Pin 0b 0010 0000 0000 0000
gpioPinId_t ledOnPC00{GPIOC, GPIO_PIN_0}; //Pin 0b 0000 0001
TaskHandle_t tstDefTaskHandle {NULL};
BaseType_t xReturned;

/* USER CODE END PV */

/* Private function prototypes -----------------------------------------------*/
Expand Down Expand Up @@ -95,7 +94,6 @@ int main(void)
/* Infinite loop */
while (1)
{

}
}

Expand Down Expand Up @@ -225,13 +223,6 @@ void tstDefTaskExec(void *pvParameters)
}
/* USER CODE END 4 */

/* USER CODE BEGIN Header_StartDefaultTask */
/**
* @brief Function implementing the defaultTask thread.
* @param argument: Not used
* @retval None
*/

/**
* @brief Period elapsed callback in non blocking mode
* @note This function is called when TIM9 interrupt took place, inside
Expand All @@ -242,15 +233,9 @@ void tstDefTaskExec(void *pvParameters)
*/
void HAL_TIM_PeriodElapsedCallback(TIM_HandleTypeDef *htim)
{
/* USER CODE BEGIN Callback 0 */

/* USER CODE END Callback 0 */
if (htim->Instance == TIM9) {
HAL_IncTick();
}
/* USER CODE BEGIN Callback 1 */

/* USER CODE END Callback 1 */
}

/**
Expand Down
16 changes: 1 addition & 15 deletions Examples/05_TgglLtchMPBttn_b.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,6 @@ int main(void)
/* Infinite loop */
while (1)
{

}
}

Expand Down Expand Up @@ -235,7 +234,7 @@ void tstDefTaskExec(void *pvParameters)
pdTRUE,
tstBttnPtr,
swpEnableCb
);
);
if (enableSwpTmrHndl != NULL){
tmrModRslt = xTimerStart(enableSwpTmrHndl, portMAX_DELAY);
}
Expand Down Expand Up @@ -279,13 +278,6 @@ void swpEnableCb(TimerHandle_t pvParam){
}
/* USER CODE END 4 */

/* USER CODE BEGIN Header_StartDefaultTask */
/**
* @brief Function implementing the defaultTask thread.
* @param argument: Not used
* @retval None
*/

/**
* @brief Period elapsed callback in non blocking mode
* @note This function is called when TIM9 interrupt took place, inside
Expand All @@ -296,15 +288,9 @@ void swpEnableCb(TimerHandle_t pvParam){
*/
void HAL_TIM_PeriodElapsedCallback(TIM_HandleTypeDef *htim)
{
/* USER CODE BEGIN Callback 0 */

/* USER CODE END Callback 0 */
if (htim->Instance == TIM9) {
HAL_IncTick();
}
/* USER CODE BEGIN Callback 1 */

/* USER CODE END Callback 1 */
}

/**
Expand Down
16 changes: 0 additions & 16 deletions Examples/06_TmLtchdMPBttn_a.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@ gpioPinId_t tstMpbOnBoard{GPIOC, GPIO_PIN_13}; // Pin 0b 0010 0000 0000 0000

TaskHandle_t tstDefTaskHandle {NULL};
BaseType_t xReturned;

/* USER CODE END PV */

/* Private function prototypes -----------------------------------------------*/
Expand Down Expand Up @@ -95,7 +94,6 @@ int main(void)
/* Infinite loop */
while (1)
{

}
}

Expand Down Expand Up @@ -196,7 +194,6 @@ static void MX_GPIO_Init(void)
GPIO_InitStruct.Pull = GPIO_NOPULL;
GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_LOW;
HAL_GPIO_Init(tstLedOnBoard.portId, &GPIO_InitStruct);

}

/* USER CODE BEGIN 4 */
Expand Down Expand Up @@ -225,13 +222,6 @@ void tstDefTaskExec(void *pvParameters)
}
/* USER CODE END 4 */

/* USER CODE BEGIN Header_StartDefaultTask */
/**
* @brief Function implementing the defaultTask thread.
* @param argument: Not used
* @retval None
*/

/**
* @brief Period elapsed callback in non blocking mode
* @note This function is called when TIM9 interrupt took place, inside
Expand All @@ -242,15 +232,9 @@ void tstDefTaskExec(void *pvParameters)
*/
void HAL_TIM_PeriodElapsedCallback(TIM_HandleTypeDef *htim)
{
/* USER CODE BEGIN Callback 0 */

/* USER CODE END Callback 0 */
if (htim->Instance == TIM9) {
HAL_IncTick();
}
/* USER CODE BEGIN Callback 1 */

/* USER CODE END Callback 1 */
}

/**
Expand Down
Loading

0 comments on commit 184ab12

Please sign in to comment.