binary Clock
Macros | Functions
hardware.h File Reference

Hardware related definitions (e.g. oscillator speed). More...

#include <stdint.h>
#include "global_defines.h"

Go to the source code of this file.

Macros

#define ON   1
 defines the on state More...
 
#define OFF   0
 defines the off state More...
 
#define F_OSC   8000000UL
 oscillator speec More...
 

Functions

retval_t hardware_init (void)
 
void EEPROM_write (uint8_t address, uint8_t data_to_write)
 
uint8_t EEPROM_read (uint8_t address_to_read)
 

Detailed Description

Hardware related definitions (e.g. oscillator speed).

Macro Definition Documentation

◆ F_OSC

#define F_OSC   8000000UL

oscillator speec

◆ OFF

#define OFF   0

defines the off state

◆ ON

#define ON   1

defines the on state

Function Documentation

◆ EEPROM_read()

uint8_t EEPROM_read ( uint8_t  address_to_read)

Reads from the internal EEPROM

Parameters
[in]address_to_read(uint8_t): Address to read from
[out]data_read(uint8_t): Data read from the address

◆ EEPROM_write()

void EEPROM_write ( uint8_t  address,
uint8_t  data_to_write 
)

Writes to the internal EEPROM

Parameters
[in]address(uint8_t): Address to write to
[in]data_to_write(uint8_t): Data to write

◆ hardware_init()

retval_t hardware_init ( void  )

Initializes all the hardware

Parameters
[out]retval(retval_t): The memory area to copy to.