SoC common: gpio_key: optimize code [1/1]

PD#SWPL-166381

Problem:
1. The value of key_id should not be fixed from xHeadKey.
2. vGpioIRQInit() should be called before vKeyPadInit().

Solution:
Correct them to prevent possible future bugs.

Verify:
T3/AR301 A5/AV400 SC2/AH212

Change-Id: I77ed679315ebe645ed9ec52703e4afae2ee3cb29
Signed-off-by: Huqiang Qin <huqiang.qin@amlogic.com>
36 files changed
tree: e969dfc009503a146f92dcdc46441a51fd43b644
  1. demos/
  2. lib/
  3. scripts/
  4. change_log.txt
  5. check.sh
  6. clean
  7. directories.txt
  8. LICENSE
  9. mk
  10. README.md
README.md

Getting Started

For more information on Amazon FreeRTOS, refer to the Getting Started section of Amazon FreeRTOS webpage.

To directly access the Getting Started Guide for supported hardware platforms, click the corresponding link in the Supported Hardware section below.

For detailed documentation on Amazon FreeRTOS, refer to the Amazon FreeRTOS User Guide.

Supported Hardware

The following MCU boards are supported for Amazon FreeRTOS:

  1. Texas Instruments - CC3220SF-LAUNCHXL.
  2. STMicroelectronics - STM32L4 Discovery kit IoT node.
  3. NXP - LPC54018 IoT Module.
  4. Microchip - Curiosity PIC32MZEF.
  5. Espressif - ESP32-DevKitC, ESP-WROVER-KIT.

Windows Simulator To evaluate Amazon FreeRTOS without using MCU-based hardware, you can use the Windows Simulator.