mirror of
https://gitea.osmocom.org/sim-card/simtrace2.git
synced 2026-03-17 05:38:33 +03:00
minimal testprog (not working)
This commit is contained in:
20
minimal/test.c
Normal file
20
minimal/test.c
Normal file
@@ -0,0 +1,20 @@
|
||||
#include "include/pio.h"
|
||||
#include "include/board.h"
|
||||
|
||||
#define sam3s2
|
||||
|
||||
const Pin statusled = {LED_STATUS, PIOA, ID_PIOA, PIO_OUTPUT_0, PIO_DEFAULT};
|
||||
const Pin statusled2 = {LED_STATUS2, PIOA, ID_PIOA, PIO_OUTPUT_0, PIO_DEFAULT};
|
||||
|
||||
int c_entry()
|
||||
{
|
||||
// PIO_OER = 0x00060000;
|
||||
PIO_Configure(&statusled, PIO_LISTSIZE(statusled));
|
||||
PIO_Clear(&statusled);
|
||||
|
||||
PIO_Configure(&statusled2, PIO_LISTSIZE(statusled));
|
||||
PIO_Set(&statusled2);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user