openmv/lib/alif/drivers/source/cmp.c
iabdalkader daf2bb30da misc: Restructure repo.
Signed-off-by: iabdalkader <i.abdalkader@gmail.com>
2025-04-13 08:28:34 +02:00

25 lines
791 B
C

/* Copyright (C) 2023 Alif Semiconductor - All Rights Reserved.
* Use, distribution and modification of this code is permitted under the
* terms stated in the Alif Semiconductor Software License Agreement
*
* You should have received a copy of the Alif Semiconductor Software
* License Agreement with this file. If not, please write to:
* contact@alifsemi.com, or visit: https://alifsemi.com/license
*
*/
#include "cmp.h"
/**
@fn void cmp_irq_handler(CMP_Type *cmp)
@brief Clear the interrupt status
@param[in] cmp Pointer to the CMP register map
@return none
*/
void cmp_irq_handler(CMP_Type *cmp)
{
/* clear the interrupt before re-starting */
if(cmp->CMP_INTERRUPT_STATUS == 1)
cmp->CMP_INTERRUPT_STATUS = CMP_INTERRUPT_CLEAR;
}