summaryrefslogtreecommitdiff
path: root/2.3-1/src/c/hardware/avr/includes/AVRPeripheralPWM.h
diff options
context:
space:
mode:
authorsiddhu89902015-12-17 14:48:36 +0530
committersiddhu89902015-12-17 14:48:36 +0530
commit02f2862023bb34146f6a0a96c2795bebe97e7c47 (patch)
tree9d2075243dcba13e417edb0929846f49b03aeac3 /2.3-1/src/c/hardware/avr/includes/AVRPeripheralPWM.h
parenteac39cdc77ad5fdaf7b245cbce5c92f105ac75bf (diff)
downloadScilab2C-02f2862023bb34146f6a0a96c2795bebe97e7c47.tar.gz
Scilab2C-02f2862023bb34146f6a0a96c2795bebe97e7c47.tar.bz2
Scilab2C-02f2862023bb34146f6a0a96c2795bebe97e7c47.zip
Code generation for Arduino changed. DC motor added to Arduino
Diffstat (limited to '2.3-1/src/c/hardware/avr/includes/AVRPeripheralPWM.h')
-rw-r--r--2.3-1/src/c/hardware/avr/includes/AVRPeripheralPWM.h27
1 files changed, 27 insertions, 0 deletions
diff --git a/2.3-1/src/c/hardware/avr/includes/AVRPeripheralPWM.h b/2.3-1/src/c/hardware/avr/includes/AVRPeripheralPWM.h
new file mode 100644
index 00000000..80b29f3a
--- /dev/null
+++ b/2.3-1/src/c/hardware/avr/includes/AVRPeripheralPWM.h
@@ -0,0 +1,27 @@
+//This file defines functions prototypes related to PWM.
+//
+// Authors
+// Siddhesh Wani
+//
+
+#ifndef __AVRPERIPHERALPWM_H__
+#define __AVRPERIPHERALPWM_H__
+
+#include <avr/io.h>
+#include "types.h"
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+//Function prototypes
+uint8 u8AVRPWMSetups(uint8 timer, uint8 prescalar, uint8 waveform_mode, uint8 output_mode);
+
+uint8 u8AVRPWMSetDuty(uint8 timer, uint8 duty);
+
+
+#ifdef __cplusplus
+} /* extern "C" */
+#endif
+
+#endif /* !__AVRPERIPHERALPWM_H__ */