initial commit

This commit is contained in:
Lauchmelder 2022-01-20 12:34:33 +01:00
commit 1e778fc163
12 changed files with 431 additions and 0 deletions

15
include/gpio.h Normal file
View file

@ -0,0 +1,15 @@
#include "stdint.h"
// Functions for peeking/poking into memory
void poke(int64_t addr, uint32_t val);
uint32_t peek(int64_t addr);
int32_t gpio_call(uint32_t pin, uint32_t reg, uint32_t value, uint32_t field_size);
uint32_t gpio_set (uint32_t pin, uint32_t value);
uint32_t gpio_clear (uint32_t pin, uint32_t value);
uint32_t gpio_fselect(uint32_t pin, uint32_t value);
uint32_t gpio_pull (uint32_t pin, uint32_t value);
void gpio_setAltMode5(uint32_t pin);