| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061 |
- /*
- * Copyright (c) 2006-2023, RT-Thread Development Team
- *
- * SPDX-License-Identifier: Apache-2.0
- *
- * Change Logs:
- * Date Author Notes
- * 2019-12-13 qiyongzhong first version
- */
- #include <at_device_n720.h>
- #define LOG_TAG "at.sample.n720"
- #include <at_log.h>
- #define N720_SAMPLE_DEIVCE_NAME "n720"
- #ifndef N720_SAMPLE_CLIENT_NAME
- #define N720_SAMPLE_CLIENT_NAME "uart4"
- #endif
- #ifndef N720_SAMPLE_POWER_PIN
- #define N720_SAMPLE_POWER_PIN 23
- #endif
- #ifndef N720_SAMPLE_STATUS_PIN
- #define N720_SAMPLE_STATUS_PIN -1
- #endif
- #ifndef N720_SAMPLE_WAKEUP_PIN
- #define N720_SAMPLE_WAKEUP_PIN -1
- #endif
- #ifndef N720_SAMPLE_RECV_BUFF_LEN
- #define N720_SAMPLE_RECV_BUFF_LEN 512
- #endif
- static struct at_device_n720 _dev =
- {
- N720_SAMPLE_DEIVCE_NAME,
- N720_SAMPLE_CLIENT_NAME,
- N720_SAMPLE_POWER_PIN,
- N720_SAMPLE_STATUS_PIN,
- N720_SAMPLE_WAKEUP_PIN,
- N720_SAMPLE_RECV_BUFF_LEN,
- RT_NULL,
- };
- static int n720_device_register(void)
- {
- struct at_device_n720 *n720 = &_dev;
- return at_device_register(&(n720->device),
- n720->device_name,
- n720->client_name,
- AT_DEVICE_CLASS_N720,
- (void *) n720);
- }
- INIT_APP_EXPORT(n720_device_register);
|