Make avrintel.h an internal header file for libavrdude

This commit is contained in:
stefanrueger
2024-02-14 17:15:21 +13:00
parent 0179026e09
commit e2a10db193
6 changed files with 15 additions and 11 deletions

View File

@@ -156,7 +156,7 @@ add_library(libavrdude
avrftdi_tpi.c
avrftdi_tpi.h
avrintel.c
avrintel.h
libavrdude-avrintel.h
avrpart.c
bitbang.c
bitbang.h

View File

@@ -103,7 +103,7 @@ libavrdude_a_SOURCES = \
avrftdi_tpi.c \
avrftdi_tpi.h \
avrintel.c \
avrintel.h \
libavrdude-avrintel.h \
avrpart.c \
bitbang.c \
bitbang.h \

View File

@@ -9,7 +9,7 @@
* Meta-author Stefan Rueger <stefan.rueger@urclocks.com>
*
* v 1.3
* 22.12.2023
* 14.02.2024
*
*/
@@ -24,7 +24,7 @@
#include <limits.h>
#include <unistd.h>
#include "avrintel.h"
#include "libavrdude.h"
// Given the MCU id return index in uP_table or -1 if not found
int upidxmcuid(int mcuid) {

View File

@@ -1,7 +1,7 @@
/*
* Do not edit: automatically generated by mkavrintel.pl
*
* avrintel.h
* libavrdude-avrintel.h
*
* Microchip AVR8L, AVR8, XMEGA and AVR8X family description of interrupts, configurations and more
*
@@ -9,12 +9,16 @@
* Meta-author Stefan Rueger <stefan.rueger@urclocks.com>
*
* v 1.3
* 22.12.2023
* 14.02.2024
*
*/
#ifndef avrintel_h
#define avrintel_h
#ifndef libavrdude_avrintel_h
#define libavrdude_avrintel_h
#ifndef LIBAVRDUDE_INCLUDE_INTERNAL_HEADERS
#error Do not directly #include <libavrdude-avrintel.h>. Do #include <libavrdude.h> instead.
#endif
typedef struct {
int value; // Value (to be shifted into mask position)

View File

@@ -25,7 +25,9 @@
#include <limits.h>
#include <stdbool.h>
#include <stdint.h>
#include "avrintel.h"
#define LIBAVRDUDE_INCLUDE_INTERNAL_HEADERS
#include "libavrdude-avrintel.h"
#undef LIBAVRDUDE_INCLUDE_INTERNAL_HEADERS
typedef uint32_t pinmask_t;
/*

View File

@@ -21,8 +21,6 @@
#ifndef urclock_private_h__
#define urclock_private_h__
#include "avrintel.h"
// EEPROM or flash cache for bytewise access
typedef struct {
int base, size;