NavHAL 0.1.0
NAVRobotec's architecture-agnostic HAL for embedded systems.
Loading...
Searching...
No Matches
test_gpio.c File Reference
#include "core/cortex-m4/gpio_reg.h"
#include "navhal.h"
#include "unity.h"
#include <stdint.h>
Include dependency graph for test_gpio.c:

Macros

#define CORTEX_M4
#define UNITY_OUTPUT_COLOR
#define TEST_PIN   GPIO_PC09
#define TEST_AF   GPIO_AF07

Functions

void test_hal_gpio_setmode (void)
void test_hal_gpio_getmode (void)
void test_hal_gpio_digitalwrite_sets_pin_high (void)
void test_hal_gpio_digitalwrite_sets_pin_low (void)
void test_gpio_set_alternate_function (void)

Macro Definition Documentation

◆ CORTEX_M4

#define CORTEX_M4

◆ TEST_AF

#define TEST_AF   GPIO_AF07

◆ TEST_PIN

#define TEST_PIN   GPIO_PC09

◆ UNITY_OUTPUT_COLOR

#define UNITY_OUTPUT_COLOR

Function Documentation

◆ test_gpio_set_alternate_function()

void test_gpio_set_alternate_function ( void )

◆ test_hal_gpio_digitalwrite_sets_pin_high()

void test_hal_gpio_digitalwrite_sets_pin_high ( void )

◆ test_hal_gpio_digitalwrite_sets_pin_low()

void test_hal_gpio_digitalwrite_sets_pin_low ( void )

◆ test_hal_gpio_getmode()

void test_hal_gpio_getmode ( void )

◆ test_hal_gpio_setmode()

void test_hal_gpio_setmode ( void )