blob: 59a9097f43b73d3a46f972d40fc3c6f98b12bc70 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
/*
* File: main.c
* Author: naopross
*
* Created on May 1, 2018, 6:18 PM
*/
#include <stdio.h>
#include <stdlib.h>
// #include "mcc_generated_files/mcc.h"
#include "hal/uart1.tpp"
#include "hal/pin.tpp"
extern "C" {
#include <xc.h>
}
int main(int argc, char** argv)
{
pin<4> led1(&LATEbits, &TRISEbits, &PORTEbits);
pin<6> led2(&LATEbits, &TRISEbits, &PORTEbits);
pin<7> led3(&LATEbits, &TRISEbits, &PORTEbits);
led1.set(1);
led2.set(1);
led3.set(1);
while (true) {
}
return 0;
}
|