CommonPIC32

Annotated include/cpu.h

154:c8a37eb47211
2021-12-14 Paul Boddie Fixed pin labels: RB10/PGEC3 should be RB10/PGED2.
paul@15 1
/*
paul@15 2
 * PIC32 microcontroller interrupt handling code.
paul@15 3
 *
paul@15 4
 * Copyright (C) 2017, 2018 Paul Boddie <paul@boddie.org.uk>
paul@15 5
 *
paul@15 6
 * This program is free software: you can redistribute it and/or modify
paul@15 7
 * it under the terms of the GNU General Public License as published by
paul@15 8
 * the Free Software Foundation, either version 3 of the License, or
paul@15 9
 * (at your option) any later version.
paul@15 10
 *
paul@15 11
 * This program is distributed in the hope that it will be useful,
paul@15 12
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
paul@15 13
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
paul@15 14
 * GNU General Public License for more details.
paul@15 15
 *
paul@15 16
 * You should have received a copy of the GNU General Public License
paul@15 17
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
paul@15 18
 */
paul@15 19
paul@0 20
#ifndef __CPU_H__
paul@0 21
#define __CPU_H__
paul@0 22
paul@0 23
#define CPU_INT_PRIORITY 3
paul@0 24
paul@0 25
#ifndef __ASSEMBLER__
paul@0 26
paul@0 27
/* Specific operations. */
paul@0 28
paul@0 29
void enable_interrupts(void);
paul@0 30
void handle_error_level(void);
paul@0 31
void init_interrupts(void);
paul@0 32
paul@0 33
#endif /* __ASSEMBLER__ */
paul@0 34
paul@0 35
#endif /* __CPU_H__ */