Servo & PWM support for LPC1768 (#7500)

This commit is contained in:
Bob-the-Kuhn
2017-08-14 14:40:13 -05:00
committed by Scott Lahteine
parent 859fa35287
commit 97444391e0
10 changed files with 739 additions and 86 deletions

View File

@@ -30,6 +30,7 @@ extern "C" {
#include <stdarg.h>
#include "arduino.h"
#include "serial.h"
#include "LPC1768_PWM.h"
static __INLINE uint32_t SysTick_Config(uint32_t ticks) {
if (ticks > SysTick_LOAD_RELOAD_Msk)
@@ -86,6 +87,9 @@ int main(void) {
HAL_timer_init();
extern void LPC1768_PWM_init();
LPC1768_PWM_init();
setup();
while (true) {
loop();