Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update cellular platform header APIs #166

Merged
merged 8 commits into from
May 21, 2024

Conversation

chinglee-iot
Copy link
Member

@chinglee-iot chinglee-iot commented May 9, 2024

Description

Cellular interface makes use of the platform header to abstract FreeRTOS dependency.

In this PR:

  • Move the following FreeRTOS functions and data structure to platform and add CELLULAR_CONFIG_PLATFORM_FREERTOS for backward compatibility. Default to 1 to define the following macros.
  #define PlatformQueueHandle_t    QueueHandle_t
  #define PlatformEventBits_t      EventBits_t
  #define PlatformBaseType_t       BaseType_t
  #define PlatformTickType_t       TickType_t
  #define platformTRUE             pdTRUE
  #define platformFALSE            pdFALSE
  #define platformPASS             pdPASS
  #define platformFAIL             pdFAIL
  #define platformMAX_DELAY        portMAX_DELAY
  #define PlatformQueue_Create     xQueueCreate
  #define PlatformQueue_Send       xQueueSend
  #define PlatformQueue_Receive    xQueueReceive
  #define PlatformQueue_Delete     vQueueDelete
  • Add CELLULAR_CONFIG_ASSERT config. Default value is configASSERT
  • Remove critical section dependency. The common layer function is not thread safe.

Test Steps

N/A

Checklist:

  • I have tested my changes. No regression in existing tests.
  • [] I have modified and/or added unit-tests to cover the code changes in this Pull Request.

Related Issue

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@chinglee-iot chinglee-iot requested a review from ActoryOu May 9, 2024 04:30
@chinglee-iot chinglee-iot requested a review from aggarg May 17, 2024 04:56
@chinglee-iot chinglee-iot merged commit aff376d into FreeRTOS:main May 21, 2024
10 checks passed
@chinglee-iot chinglee-iot deleted the update-platform-header branch May 21, 2024 04:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants