+// SPDX-License-Identifier: MIT
+
#include <stdio.h>
#include <stdint.h>
#include <fcntl.h>
#include <endian.h>
#include "pi-net.h"
#include "pi-net-enums.h"
-#include "../../../config_file/config_file.h"
-#include "../../../gpio/ps_protocol.h"
+#include "config_file/config_file.h"
+#include "gpio/ps_protocol.h"
uint32_t pinet_u32[4];
static const char *op_type_names[4] = {
void pinet_init(char *dev) {
// Initialize them nets.
+ (void)dev;
+}
+
+void pinet_shutdown() {
+ // Aaahh!
}
uint8_t PI_MAC[6] = { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 };
uint8_t PI_IP[4] = { 192, 168, 1, 9 };
void handle_pinet_write(uint32_t addr, uint32_t val, uint8_t type) {
- int32_t r;
+// int32_t r;
switch (addr & 0xFFFF) {
case PINET_CMD_READ: