CT-Lab_11_ModularCodingAndL.../project/app/toggle.c

28 lines
872 B
C
Raw Permalink Normal View History

2022-12-16 08:38:09 +01:00
/* ------------------------------------------------------------------
* -- _____ ______ _____ -
* -- |_ _| | ____|/ ____| -
* -- | | _ __ | |__ | (___ Institute of Embedded Systems -
* -- | | | '_ \| __| \___ \ Zuercher Hochschule Winterthur -
* -- _| |_| | | | |____ ____) | (University of Applied Sciences) -
* -- |_____|_| |_|______|_____/ 8401 Winterthur, Switzerland -
* ------------------------------------------------------------------
* --
* -- Project : CT2 lab - Linking
* --
* -- $Id$
* ------------------------------------------------------------------
*/
#include <stdint.h>
#include "toggle.h"
#include "write.h"
#define LED 0x60000100
static uint8_t value = 0xC6;
void toggle(void)
{
value ^= ~0;
write8(LED, value);
}