mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2025-12-29 02:20:21 +00:00
*** EFM32 branch ***
1. Add IIC slave mode RX by interrupt function (Now, master mode TX/RX and slave mode RX functions are done) 2. Add Timer1 configuration in timer driver 3. Modify the ACMP default initialization setting 4. Add on/off switch for debug code to reduce size git-svn-id: https://rt-thread.googlecode.com/svn/trunk@1353 bbd45198-f89e-11dd-88c7-29a3b14d5316
This commit is contained in:
@@ -116,7 +116,10 @@ static rt_err_t rt_acmp_control(
|
||||
{
|
||||
rt_bool_t int_en = false;
|
||||
|
||||
#ifdef RT_ACMP_DEBUG
|
||||
rt_kprintf("ACMP: control -> init start\n");
|
||||
#endif
|
||||
|
||||
/* change device setting */
|
||||
struct efm32_acmp_control_t *control;
|
||||
|
||||
@@ -257,7 +260,9 @@ void rt_hw_acmp_init(void)
|
||||
acmp = rt_malloc(sizeof(struct efm32_acmp_device_t));
|
||||
if (acmp == RT_NULL)
|
||||
{
|
||||
#ifdef RT_ACMP_DEBUG
|
||||
rt_kprintf("no memory for ACMP0 driver\n");
|
||||
#endif
|
||||
return;
|
||||
}
|
||||
acmp->acmp_device = ACMP0;
|
||||
@@ -281,7 +286,9 @@ void rt_hw_acmp_init(void)
|
||||
acmp = rt_malloc(sizeof(struct efm32_acmp_device_t));
|
||||
if (acmp == RT_NULL)
|
||||
{
|
||||
#ifdef RT_ACMP_DEBUG
|
||||
rt_kprintf("no memory for ACMP1 driver\n");
|
||||
#endif
|
||||
return;
|
||||
}
|
||||
acmp->acmp_device = ACMP1;
|
||||
|
||||
Reference in New Issue
Block a user