28 lines
872 B
C
28 lines
872 B
C
/* ------------------------------------------------------------------
|
|
* -- _____ ______ _____ -
|
|
* -- |_ _| | ____|/ ____| -
|
|
* -- | | _ __ | |__ | (___ 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);
|
|
}
|