CppCheck Report

Statistics

Total issues found: 4

Issues by severity:

  • information: 2

  • style: 2

power_button.c

Location: components\power_button\src\power_button.c

Style: unusedFunction

The function ‘powerButtonInit’ is never used.

CWE: 561

21static unsigned int pressCounter = 0;   /**< Counter for key presses. */
22static unsigned int releaseCounter = 0; /**< Counter for key releases. */
23
24void powerButtonInit(void)
25{
26    currentState = INIT;
27    pressCounter = 0;

Style: unusedFunction

The function ‘powerButton’ is never used.

CWE: 561

37 * how many consecutive calls with the key pressed/released are required to acknowledge the
38 * state transition.
39 */
40void powerButton(void)
41{
42    boolean powerKeyPressed = FALSE;
43    boolean keyStatus = RteIsKeyPressed(POWER_BUTTON_KEY);

platform_types.h

Location: platforms\platform_types.h

Information: missingIncludeSystem

Include file: <stdint.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.

1#ifndef platform_types_h_
2#define platform_types_h_
3
4#include <stdint.h>
5
6#ifndef NULL
7#ifndef __cplusplus