Sha256: cc7c8d9e8872ac3339ca136b534b7c8fdf07e0ff9d7de133dd94ac7c0ead1901

Contents?: true

Size: 414 Bytes

Versions: 6

Compression:

Stored size: 414 Bytes

Contents

#ifndef HARDWARE_ABSTRACTION
#define HARDWARE_ABSTRACTION

#include <stdint.h>

#ifndef TESTING
#define IO_MEM_RD8(ADDR)  (*((volatile uint8_t *)(ADDR)))
#define IO_MEM_WR8(ADDR, VAL_8)   (*((volatile uint8_t *)(ADDR)) = (VAL_8))
#else
/* In testing use fake functions to record calls to IO memory */
uint8_t IO_MEM_RD8(uint32_t reg);
void IO_MEM_WR8(uint32_t reg, uint8_t val);
#endif

#endif /* Include guard */

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
ceedling-0.28.1 plugins/fake_function_framework/vendor/fff/examples/driver_testing/hardware_abstraction.h
ceedling-0.27.0 plugins/fake_function_framework/vendor/fff/examples/driver_testing/hardware_abstraction.h
ceedling-0.25.0 plugins/fake_function_framework/vendor/fff/examples/driver_testing/hardware_abstraction.h
ceedling-0.24.0 plugins/fake_function_framework/vendor/fff/examples/driver_testing/hardware_abstraction.h
ceedling-0.22.0 plugins/fake_function_framework/vendor/fff/examples/driver_testing/hardware_abstraction.h
ceedling-0.21.0 plugins/fake_function_framework/vendor/fff/examples/driver_testing/hardware_abstraction.h