Skip to content

Commit

Permalink
Replace microprocessor-specific 'clock.h' header file by a single, gl…
Browse files Browse the repository at this point in the history
…obal

'clock.h' file.
  • Loading branch information
Jonan CM committed Nov 5, 2013
1 parent 915e9de commit 6bf798a
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 17 deletions.
File renamed without changes.
2 changes: 1 addition & 1 deletion gpcore/hostcom.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
#ifndef HOSTCOM_H
#define HOSTCOM_H

#include "clock.h"
#include "../clock.h"

#define BAUDRATE 9600 //Desired Baud Rate
#define BRGVAL ((FCY/BAUDRATE)/16)-1 //Formula for U1BRG register
Expand Down
14 changes: 0 additions & 14 deletions motorctl/clock.h

This file was deleted.

2 changes: 1 addition & 1 deletion motorctl/pwm.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#ifndef PWM_H
#define PWM_H

#include "clock.h"
#include "../clock.h"

#define TPWM 0.018 /* PWM period: 18 ms */
#define FPWM (1 / TPWM) /* PWM frequency: 50 Hz */
Expand Down
2 changes: 1 addition & 1 deletion motorctl/qei.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

#include <p30fxxxx.h>

#include "clock.h"
#include "../clock.h"
#include "motor_status.h"

#define QEA_MA PORTBbits.RB0
Expand Down

0 comments on commit 6bf798a

Please sign in to comment.