Solar panel
Loading...
Searching...
No Matches
old_main.c File Reference
#include <xc.h>
#include <stdint.h>
#include <stdbool.h>
#include <stdio.h>
#include "lcd/lcd.h"
#include "pwm.h"
#include "measure.h"
#include "modbus.h"
#include "uart.h"

Go to the source code of this file.

Macros

#define _XTAL_FREQ   64000000L
 

Functions

void init_hw ()
 
void main (void)
 

Variables

uint8_t tmpStr [30]
 
uint16_t u
 Voltage in milliovolts.
 
uint16_t i
 Current in microamperes.
 
uint16_t p
 Power in microwatts.
 
uint16_t offset
 
uint16_t pwm = 512
 

Macro Definition Documentation

◆ _XTAL_FREQ

#define _XTAL_FREQ   64000000L

Definition at line 18 of file old_main.c.

Function Documentation

◆ init_hw()

void init_hw ( )

Initialize clock, buttons, leds and interrupts

Definition at line 22 of file old_main.c.

◆ main()

void main ( void  )

Definition at line 43 of file old_main.c.

Variable Documentation

◆ i

uint16_t i

Current in microamperes.

Definition at line 37 of file old_main.c.

◆ offset

uint16_t offset

Definition at line 40 of file old_main.c.

◆ p

uint16_t p

Power in microwatts.

Definition at line 38 of file old_main.c.

◆ pwm

uint16_t pwm = 512

Definition at line 41 of file old_main.c.

◆ tmpStr

uint8_t tmpStr[30]

Definition at line 35 of file old_main.c.

◆ u

uint16_t u

Voltage in milliovolts.

Definition at line 36 of file old_main.c.