blob: 90741d0af9a9dd86047be5e29b41d5ff04a57168 [file] [log] [blame]
/**
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
#include <stddef.h>
#include "samd21_priv.h"
static Sercom *const samd21_sercoms[SERCOM_INST_NUM] = SERCOM_INSTS;
Sercom *
samd21_sercom(int inst_num)
{
if (inst_num < 0 || inst_num >= SERCOM_INST_NUM) {
return NULL;
}
return samd21_sercoms[inst_num];
}