mirror of
https://github.com/apache/nuttx.git
synced 2026-06-06 00:14:22 +08:00
Merged in young-mu/nuttx (pull request #108)
Enable TM4C1294-launchpad board build
This commit is contained in:
@@ -46,6 +46,8 @@
|
|||||||
#include <nuttx/i2c/i2c_master.h>
|
#include <nuttx/i2c/i2c_master.h>
|
||||||
#include <arch/board/board.h>
|
#include <arch/board/board.h>
|
||||||
|
|
||||||
|
#include <nuttx/drivers/pwm.h>
|
||||||
|
|
||||||
#include "tiva_i2c.h"
|
#include "tiva_i2c.h"
|
||||||
#include "tiva_pwm.h"
|
#include "tiva_pwm.h"
|
||||||
#include "tm4c1294-launchpad.h"
|
#include "tm4c1294-launchpad.h"
|
||||||
@@ -160,6 +162,7 @@ static void tm4c_i2ctool(void)
|
|||||||
*
|
*
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
|
#ifdef HAVE_PWM
|
||||||
void tm4c_pwm_register(int channel)
|
void tm4c_pwm_register(int channel)
|
||||||
{
|
{
|
||||||
FAR struct pwm_lowerhalf_s *dev;
|
FAR struct pwm_lowerhalf_s *dev;
|
||||||
@@ -182,6 +185,7 @@ void tm4c_pwm_register(int channel)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
* Name: tm4c_pwm
|
* Name: tm4c_pwm
|
||||||
@@ -219,7 +223,7 @@ static void tm4c_pwm(void)
|
|||||||
tm4c_pwm_register(7);
|
tm4c_pwm_register(7);
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
#endif # HAVE_PWM
|
#endif
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
* Public Functions
|
* Public Functions
|
||||||
|
|||||||
Reference in New Issue
Block a user