Skip to content

Instantly share code, notes, and snippets.

@avr-programmierung
Created May 14, 2019 11:01
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Embed
What would you like to do?
ATmega88 @ 1MHz EEPROM 03
/* eeprom_03.c ATmega88 @ 1MHz */
#include <avr/io.h>
#include <avr/eeprom.h>
uint8_t byte_buffer[3]; // Deklaration eines Arrays mit dem namen byte_buffer mit 3 Feldern
int main(void)
{
// Funktionsaufruf und Übergabe der Parameter
eeprom_read_block((void*)byte_buffer, (const void*) 0, (size_t) 3);
while(1)
{
asm ("NOP");
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment